I've read the relaying doc at
http://www.palomine.net/qmail/selectiverelay.html, but still I can't get
relaying based on ip going..
This is how I startup qmail, so it works with qmailmrtg -
env - PATH="/var/qmail/bin:/usr/local/bin" \
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 2850 -g 32750 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
env - PATH="/var/qmail/bin:/usr/local/bin" \
qmail-start ./Maildir/ | /usr/local/bin/setuidgid qmaill \
/usr/local/bin/multilog t n100 s1000000 /var/log/qmail &
from the document mentioned above it seems like all u need to do is to add
this "-x /etc/tcp.smtp.cdb" to tcpserver for qmail-smtpd & to make sure u
have a properly formatted tcp.smtp.cdb file..
This is what my tcp.smtp.cdb looks like -
10.1.0.28.:allow,RELAYCLIENT=""
:allow
I've ran "tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp"
too..
hmm still it doesn't override the rcpthosts file.. I try to control it
via inetd but that doesn't sound like a good idea..
thanxs for the help.. :)