How do I run qmail-smtpd under tcpserver?
I’d like better logging and load control than I get with inetd. Answer: First, install the tcpserver program, part of the ucspi-tcp package, available separately. Second, remove the smtp line from /etc/inetd.conf, and put the line tcpserver -u 7770 -g 2108 0 smtp /var/qmail/bin/qmail-smtpd & into your system startup files. Replace 7770 with your qmaild uid, and replace 2108 with your nofiles gid. Don’t forget the &. The change will take effect at your next reboot. By default, tcpserver allows at most 40 simultaneous qmail-smtpd processes. To raise this limit to 400, use tcpserver -c 400. To keep track of who’s connecting and for how long, run (on two lines) tcpserver -v -u 7770 -g 2108 0 smtp /var/qmail/bin/qmail-smtpd \ 2>&1 | /var/qmail/bin/splogger smtpd 3 & 5.2.