Hi there guys,
I'm having some problems whith relaying control in qmail.
when using Sendmail 8.9.3 there's a file /etc/mail/access
that you put the hosts/networks you want to sendmail relay.
after editing the file you issue the command
[root@localhost]# makemap hash access<access
this command generates a file called /etc/mail/access.db and the new
relay
rules are activated restarting sendmail.
But in qmail, i'm a little bit confused, as i read in Dave Sill's Life
with Qmail,
"If you follow the installation instructions in this document, selective
relaying will be enabled by default. To give a client relay access, add
an entry to
/etc/tcp.smtp like:
IP address of client:allow,RELAYCLIENT=""
Then rebuild the SMTP access database by doing:
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp*
OK, but I don't have /etc/tcp.smtp
I only have the file /etc/tcprules.d/qmail-smtp and
/etc/tcprules.d/qmail-smtp.cdb
[root@localhost]# more /etc/tcprules.d/qmail-smtp
127.0.0.1:allow,RELAYCLIENT=""
192.168.15.200:allow,RELAYCLIENT=""
[root@localhost]# ps ax|grep qmail-smtp.cdb
877 pts/0 S 0:00 tcpserver -v -c40 -x
/etc/tcprules.d/qmail-smtpd.cdb -u100 -g502 0 smtp qmail-smtpd
I understand that qmail-smtpd is using the file qmail-smtpd.cdb for
relay control, right?
So i decided to test in another IP. The IP was 192.168.15.201, and i
sent a message trough qmail host sucessfully.
What I don't understand is:
How come I could send mail from a different IP listed in qmail-smtp if
/etc/tcprules.d/qmail-smtp is set for allowing relay to loopback and my
machine only?
How can I correct this situation?
Am I missing something crucial?
Thanks in advance and best regards
Gustavo Schroeder
System Administrator