On Mon, Jun 04, 2001 at 03:11:36PM -0700, Ashe Coutts wrote:
> I have set up a qmail system (RedHat linux 7.1, kernel 2.4.5, xinetd, 
> qmail  1.03 RPMs, U of Wash pop3 and imap, etc.). with a domain name of 
>  sbcacademy.org (machine name mail.sbcacademy.org)  with the  following 
> configuration files: 
> 
> === start  /var/qmail/control/rcpthosts ======== 
> localhost 
> sbcacademy.org 
> mail.sbcacademy.org 
> === end  /var/qmail/control/rcpthosts ======== 
> 
> ======= start excerpt from /etc/hosts.allow ==== 
> ### The qmail outgoing/retrieval stuff 
> ipop3d, imapd  :  ALL 
> 
> ### The qmail selective relaying stuff 
> tcp-env  :  xx.yy.zz.    :  setenv RELAYCLIENT 
> tcp-env  :  aa.bb.cc.dd  :  setenv RELAYCLIENT 
> tcp-env  :  localhost      :  setenv RELAYCLIENT  
> ======= end excerpt from /etc/hosts.allow ==== 
> 
> The system "works" but will not receive mail from outside the select 
> few I 
> list in the /etc/hosts.allow file. 
> 
> I think I now understand what is going on but not why.  
> 

SNIP

Don't set RELAYCLIENT for anyone but hosts you can explicitly trust.
hosts.allow (if you insist on using inetd/xinetd) should be configured
to _allow_ connections from anywhere, but only to set RELAYCLIENT for
hosts you should relay for. Most definitely you do _not_ want to allow
relay to hotmail. ;) To set this up under inetd/xinetd, consult the man
pages for their respective programs. You might be better off to avoid
inetd/xinetd altogether, and use tcpserver instead. Great instructions
for qmail & tcpserver can be found in Life With Qmail (aka LWQ) at:

http://www.lifewithqmail.org/

HTH,

-- 
Greg White

Reply via email to