[Prev][Next][Index][Thread]

Re: RELAYCLIENT, rcpthost,...



rcpthosts is to tell qmail-smtpd (not qmail-send)  which hosts it will
ACCEPT mail for.

RELAYCLIENT tells qmail-smtpd to ignore rcpthosts, and let the mail go
anywhere (relay).

So, you would set relay client to your local host name, and localhost, and
then set RELAYCLIENT for any hosts which will be sending mail via smtp to
the outside world.

You probably won't need to set relayclient unless you have a dumb MUA (eg.
a windows MUA), but unless you are planning on being spam relay #1, you
probably want rcpthosts.

On Mon, 2 Feb 1998, Mate Wierdl wrote:

> Date: Mon, 02 Feb 1998 22:21:49 -0600
> From: Mate Wierdl <mw@xxxxxxxxxxxxxxxxxxxxx>
> To: djb-qmail@xxxxxxxxxxxxxxxxxxxx
> Subject: RELAYCLIENT, rcpthost,...
> 
> Thanks to Russell, and Michael Samuel, I could now set up qmail to
> serve a small GNU/Linux lab.  But I now realize, I do not understand a
> most basic question.
> 
> Suppose I have 
> 
> 	$ cat rcpthosts
> 	localhost
> 	one.box.in.lab
> 
> where the IP number of one.box.in.lab is 1.2.3.4. Is this equivalent
> with setting, for tcpserver (running qmail-smtpd), the following rules:
> 
>      127.0.0.1:allow,RELAYCLIENT=""
>      1.2.3.4:allow,RELAYCLIENT=""
> 
> If not, what is equivalent?  (This setting happily accepts email
> messages from any host, though I thought tcpserver will accept
> connections only from the above IPs)
> What if I put a third line
> 
>      :deny
> 
> as well.  
> What does this do (to smtp connections)?  
> 
> What if my rules file is empty?  Does this mean all connections are
> allowed, or all connections are denied?
> 
> Is the only way to set RELAYCLIENT through tcprules?
> The only thing I found about RELAYCLIENT is
> 
> 	    Exception: If the environment variable RELAYCLIENT is
>             set, qmail-smtpd  will  ignore  rcpthosts,  and  will
>             append  the  value  of  RELAYCLIENT  to each incoming
>             recipient address.
> 
> Where is this stuff about RELAYCLIENT and such really explained?
> 
> Thx a lot
> Mate
> 

Michael Samuel,

Surf-Net City - Internet Cafe and Internet Service Providers
Phone: +61 3 9593-9977
E-Mail: <michael@xxxxxxxxxxxxxxxxxx>
WWW: http://www.surfnetcity.com.au/~michael/


References: