I am trying to setup qmail to relay mail from my local domain to the rest of the internet using tcpserver's rules database. Here are the contents of the files I think are being used: /etc/tcp.smtp2 : 127.:allow,RELAYCLIENT="" 192.168.111.:allow,RELAYCLIENT="" 216.254.26.187:allow,RELAYCLIENT="" 216.254.26.188:allow,RELAYCLIENT="" 216.254.26.189:allow,RELAYCLIENT="" 216.254.26.186:allow,RELAYCLIENT="" 24.5.77.214:allow,RELAYCLIENT="" :allow /service/qmail-smtpd/run : #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` exec /usr/local/bin/softlimit -m 2000000 \ /usr/local/bin/tcpserver -x/etc/tcp.smtp2.cdb -v -p \ -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 When I run: # strings /etc/tcp.smtp2.cdb I get: 127.+RELAYCLIENT= 192.168.111.+RELAYCLIENT= 216.254.26.187+RELAYCLIENT= 216.254.26.188+RELAYCLIENT= 216.254.26.189+RELAYCLIENT= 216.254.26.186+RELAYCLIENT= 24.5.77.214+RELAYCLIENT= When I run: # tcprulescheck /etc/tcp.smtp2.cdb 127.0.0.1 I get: rule : allow connection Same result for any of the specific IPs also. According to what I have read, tcprulescheck should have spit out something indicating the use of rule 127. and an indication it is setting an environment variable. What am I doing wrong? Sorry if this should go to another list. --Tom Jackson
