[NTLUG:Discuss] QMAIL and open relays.

Aaron Goldblatt aaron at goldblatt.net
Fri Nov 30 23:47:57 CST 2001


> In other words...what is the Qmail equivilent of Sendmail's
> /etc/mail/relay-domains

man qmail-control

/var/qmail/control/rcpthosts: allows you to specify what domains qmail 
accepts for
/var/qmail/control/locals: allows you to specify what domains qmail will 
attempt local delivery for

There are others.

The easiest what to control relay (where users from other computers may 
send messages via qmail that aren't destined for control/rcpthosts, 
control/locals, or control/virtualdomains) is with tcpserver.

/usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcprules/tcp.smtp.cdb -c 20 
-u 1004 -g 2108 0 smtp /var/qmail/bin/qmail-smtpd

All on one line, read the docs, don't drop it in.  See 
http://cr.yp.to/ucspi-tcp.html for more information on getting and 
installing tcpserver and its component programs.

Also, see http://www.lifewithqmail.org/ for examples on how to set up 
exactly this kind of system, using tcpserver (ucspi), daemontools, and 
qmail.

ag




More information about the Discuss mailing list