Methinks I spoke just a tad bit too soon earlier this evening. My problem
with not be able to relay mail from my mailing lists should be solved by
using TCPSERVER (http://www.palomine.net/qmail/selectiverelay.html) to set
the RELAYCLIENT environment variable, but I had some problems and have one
small problem left.
After I untarred ucspi-tcp I created the /etc/smtp.tcp as it instructed as
such
192.168.1.2:allow,RELAYCLIENT=""
127.0.0.1:allow,RELAYCLIENT=""
:allow
then I ran "tcprules tcp.smtp.cdb tcp.smtp.temp < tcp.smtp" without any
problem... then ran "tcpserver -x/etc/tcp.smtp.cdb -u501 -g501 0 smtp
/var/qmail/bin/qmail-smtpd &" and ran into my first problem. Like others, I
got "tcpserver: fatal: unable to bind: address already used". Was a little
stumped by what exactly that meant, so I visited the archives of this list
and started reading all the responses. Unlike most of the people who are
documented in the archives I'm not running inetd, but rather running xinetd
so I couldn't really comment out any line. Instead I had to remove the smtp
file from /etc/xinet.d/ and make sure QMail was off. Ran a quick check of
the system with ps ax and sure enough, nothing else was using port 25.
I then rebooted the system (just to be safe and sure) and shut down QMail
again, then reran the tcpserver command and this time received no errors.
Big smile on my face, but it was short lived because as soon as I restarted
QMail I tried to telnet to port 25 but could not connect.... hmmmm... so I
figured, instead of removing the SMTP file from /etc/xinet.d/ I guess I
should have just amended it somehow??
Now this is what I had running in xinetd... should I change this somehow and
replace it in /etc/xinetd/ or am I running down the wrong path??
service smtp
{
socket_type = stream
protocol = tcp
wait = no
user = qmaild
id = smtp
server = /var/qmail/bin/tcp-env
server_args = /var/qmail/bin/qmail-smtpd
log_on_success -= DURATION USERID PID HOST EXIT
log_on_failure -= USERID HOST ATTEMPT RECORD
}
Thanks
Anthony