Hello,

Vpopmail, Qmail, Qmail Scanner.  Sorry for the cross-list-post, but I'm not
sure who to ask for this one, as I'm not sure which software isn't doing
what I want!

I've recently installed the chkuser patch found here:
http://www.interazioni.it/qmail/#qmail-smtpd

I tried the Bill Shupp one, but it didn't patch right, even on a vanilla
Qmail 1.03.

I've got a good compile and replaced qmail-smptd, and I'm calling it the
exact same way I was before, which is through djb's service.

------------------------------------------------
[EMAIL PROTECTED] russ]# more /service/qmail-smtpd/run
#!/bin/sh
# when QMAILQUEUE is set, all mail will be sent to the nominated script
QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
then
    echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
    echo /var/qmail/supervise/qmail-smtpd/run
    exit 1
fi

if [ ! -f /var/qmail/control/rcpthosts ]; then
    echo "No /var/qmail/control/rcpthosts!"
    echo "Refusing to start SMTP listener because it'll create an open
relay"
    exit 1
fi

exec /usr/local/bin/softlimit -m 15000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" \
-x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" -c100 0 smtp rblsmtpd \
/var/qmail/bin/qmail-smtpd 2>&1

------------------------------------------------

When I set my /home/vpopmail/domains/mydomain.dom/.qmail-default file to
this contents:

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

I get bounces, which are accepted, then bounced back, without the "chkuser"
tag on the bounce line.  Not sure if I'm doing this telnet conversation
right, but this is what happens when I try to test by telnet:

------------------------------------------------
[EMAIL PROTECTED] telnet domain.com 25
Trying xx.xx.xx.xx...
Connected to domain.com.
Escape character is '^]'.
220 domain.com ESMTP
HELO
250 domain.com
MAIL
250 ok
MAIL FROM <[EMAIL PROTECTED]>
250 ok
RCPT TO <[EMAIL PROTECTED]>
250 ok
------------------------------------------------

I'm expecting it to stop me at the RCPT TO line when there is no such user
or forward as "[EMAIL PROTECTED]".

Any other suggestions on what gives?

[EMAIL PROTECTED] /home/vpopmail/bin/vpasswd -v
version: 5.3.27

Here's my exact qmail install info:

------------------------------------------------
tar -xzpf qmail-1.03.tar.gz
tar -xzpf qmail-verh-0.06.tar.gz
cp outgoing/*.c qmail-1.03
cp qmail-verh-0.06/q*.diff qmail-1.03
cp doublebounce-trim.patch qmail-1.03
cp qmail-1.03-mfcheck.3.patch qmail-1.03
cp nullenvsender-recipcount.patch qmail-1.03
cp sendmail-flagf.patch qmail-1.03
cp qmail-maildir++.patch qmail-1.03
cp qmail-queue.patch qmail-1.03
cp qmail-smtpd-chkusr-1.0.patch qmail-1.03

cd qmail-1.03

patch < doublebounce-trim.patch
patch < qmail-remote.diff
patch < qmail-local.diff
patch < nullenvsender-recipcount.patch
patch < sendmail-flagf.patch
patch < qmail-maildir++.patch
patch < qmail-queue.patch
patch < qmail-1.03-mfcheck.3.patch
patch qmail-smtpd.c qmail-smtpd-chkusr-1.0.patch

make

# stop your qmail server
qmailctl stop
# recompile qmail
make setup check
chown qmaild /var/qmail/bin/qmail-smtpd
chgrp nofiles /var/qmail/bin/qmail-smtpd
chmod 6555 /var/qmail/bin/qmail-smtpd
------------------------------------------------

Here's my qmail-scanner install info:

------------------------------------------------
tar -xzpf q-s-1.20st-20040105.tgz
cd qmail-scanner-1.20st
#useradd qscand
./configure \
  --admin virusadmin --domain domain.dom \
  --scanners clamscan,verbose_spamassassin \
  --debug no \
  --sa-quarantine 10 \
  --sa-delete 20 \
  --sa-reject no \
  --install

/var/qmail/bin/qmail-scanner-queue.pl -g
/var/qmail/bin/qmail-scanner-queue.pl -z
------------------------------------------------

Here's my vpopmail install info:

------------------------------------------------
tar -xzpf vpopmail-5.3.27.tar.gz
cd vpopmail-5.3.27

./configure \
--enable-roaming-users=y \
--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp \
--enable-tcprules-prog=/usr/local/bin/tcprules \
--enable-relay-clear-minutes=180 \
--enable-auth-logging=y \
--enable-logging=p \
--enable-learn-passwords=y \
--enable-clear-passwd=y \
--enable-mysql=y \
--enable-incdir=/usr/include/mysql \
--enable-libdir=/usr/lib/mysql \
--enable-mysql-logging=y \
--enable-valias=y \
--enable-mysql-limits=n \
--enable-many-domains=n  \
--enable-qmail-ext=y \
--enable-defaultquota=5000

make
make install-strip
------------------------------------------------

Any ideas or suggestions on getting QS to drop misaddressed email at SMTP
would be very appreciated.  The Shupp patch seems to say that mysql vpopmail
installs need different info to be able to do this, but that patch didn't
work for me and I'm not clear as to whether I *must* use it or not.  I'm
getting 86% spam through this server, and 90% of the spam is misaddressed.
Clamscanning and SpamAssassin'ing, with RBL checks, on all those emails that
aren't going anywhere, is not cool.

Thanks for your help,

Russell Mann


Reply via email to