> -----Original Message-----
> From: Toph Kemmann [mailto:[EMAIL PROTECTED]]
>
> SMTP-Startscript:
>
> #!/bin/sh
> QMAILDUID=`id -u qmaild`
> NOFILESGID=`id -g qmaild`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> exec /usr/local/bin/softlimit -m 2000000 \
> /usr/local/bin/tcpserver -v -R -l 0 -x
> /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
>

after patching, change
/usr/local/bin/tcpserver -v -R -l 0 -x
to
/usr/local/bin/tcpserver -S -v -R -l 0 -x

The tcpserver-patch enables the -S switch that tells it to query mySQL.
After patching, you must create the
file /var/qmail/control/sql with the parameters as follows.

[bigd@penguin bigd]$ cat /var/qmail/control/sql
server localhost
port 3306
database vpopmail
table relay
user vpopmail
pass XXXXXXXXXX
time 1800

Get this patch:
https://matt.simerson.com/computing/qmail/ucspi-tcp-0.88-mysql.patch
Then,
# tar zxfv tcpserver-x.xx-tar.gz
# cd tcpserver*
# cp ../ucspi-tcp-0.88-mysql.patch ./
# patch -p0 < ucspi-tcp-0.88-mysql.patch
# ./configure && make && make install

It may have been -p1, I can't recall.

NOTE: before you can make install, you must stop qmail (ie qmailctl stop) or
else you cannot
overwrite the tcpserver binary while it is in use.

Good luck,

Dallas Engelken
NMGI
http://www.nmgi.com

Reply via email to