On Mon, Feb 19, 2001 at 06:02:41PM -0600, Bill Arends wrote:
> I have just installed tcpserver to stop my open relay problem. Everything
> works fine when I load tcpserver manually after the server boots.
> (./filename) command in the file is: (one line)
> tcpserver -x /etc/tcp.smtp.cdb -u 502 -g 501 0 smtp
> /var/qmail/bin/qmail-smtpd &
That looks correct to me.
> I have created a simple script in /etc/rc.d/init.d and -s linked that file
> to a file in /etc/rc.d/rc3.d.
> #!/bin/sh
> /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 502 -g 501 0 smtp
> /var/qmail/bin/qmail-smtp &
The above has an obvious error! Look closely at what you're telling
tcpserver to run....
BTW, here's my tcpserver init script, the run file for supervise
shamelessly snagged and modified from the wonderful "Life with qmail"
document at http://www.lifewithqmail.org/ :
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -u qmaild`
MAXSMTPD=`/bin/cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 2000000 /usr/local/bin/tcpserver \
-vPHR -c "$MAXSMTPD" -x /var/qmail/cdb/smtp.cdb \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp
/var/qmail/bin/qmail-smtpd 2>&1
When running the above script, be aware that concurrencyincoming is a
non-standard file, and you must create it with a value:
echo "20" > /var/qmail/control/concurrenyincoming
HTH,
--
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy