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.

I can appreciate that relaying is a bad idea but fail to see how to
set up the qmail so anyone can at least send mail to a user on
the qmail system. Receiving from anywhere would be our problem
and would not be relaying anything beyond us.

As is, ONLY mail coming from our system (xx.yy.zz.) or our county
education email server (aa.bb.cc.dd) is received.

In testing from an outside hotmail account I was seeing the following in
/var/log/messages:

======= Start excerpt from /var/log/messages =====
Jun 4 09:13:19 mail xinetd[492]: refused connect from
209.185.241.98
Jun 4 09:19:57 mail xinetd[492]: refused connect from
209.185.241.80
======= End from /var/log/messages =====

So I entered this next line in /etc/hosts.allow:
"tcp-env : 209.185.241. : setenv RELAYCLIENT"
and viola - in comes a message from the hotmail account to one of
our users.

I want qmail to accept email from other email users/systems in the world
as other email systems I've set up do WITHOUT having to explicitly enter
every email system I want to receive mail from.

Can qmail allow for this and still prevent relay abuse or are the two somehow tied together??

I have read what I could on the lists regarding what I'm trying to accomplish (FAQ, "The qmail newbie's guide to relaying", "Selective relaing with tcpserver and qmail-smtpd", etc.) and realize that this topic is almost a dead horse BUT I'm still unable to understand what is required to do what I wish so thanks in advance to any suggestions and/or recommendations any of you may offer.

"Experience is not what happens to you, it
 is what you do with what happens to you"
       -- Aldous Huxley (1894-1963)

   Ashe Coutts ([EMAIL PROTECTED])
   805.963.4338 Ext 300
   Fax 805.884.1557


Reply via email to