On Fri, Aug 04, 2000 at 06:14:39PM +0100, Holborn BongMiester wrote:

> I guess I asked for that :) Been a bad day at work and I've been having
> helll with tcpserver and pop3d and qmail-smtpd.

My apologies.  I'm a tad short-tempered myself.

Anyway, tcpserver is quite easy.  I found it preferable to inetd by a
long shot.  And having the tcp program do the IP based stuff makes
perfect sense as the stuff qmail sees is too easily forged.  It only has
envelope information to work from, after all.

As a peace offering, here's my tcpserver setup:

/usr/local/bin/tcpserver -R -c 80 -q -p -x /etc/smtprules/tcp.smtp.cdb \
     -u79 -g1003 0 smtp /var/qmail/bin/qmail-smtpd  2>&1 &

There are several other options, all well documented on the ucspi-tcp
page.  Of course, the -u and -g options need to be changed to match the
correct UID/GID on your box.  And the -x option needs to point to your
tcprules file, the format of which is documented on the tcprules page at
the ucspi-tcp site.

A typical line looks like this:

123.45.67.89:allow,RELAYCLIENT=""

Ben
-- 
Ben Beuchler                                         [EMAIL PROTECTED]
MAILER-DAEMON                                         (612) 321-9290 x101
Bitstream Underground                                   www.bitstream.net

Reply via email to