Qmail
[Top] [All Lists]

SMTP_AUTH + RBLs

To: "qmail list" <qmail@list.cr.yp.to>
Subject: SMTP_AUTH + RBLs
From: "Steve Brown" <sbrown25@gmail.com>
Date: Fri, 9 Mar 2007 11:10:48 -0600
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ATqXrXeeNlS907d4F6KmzJd6G9bVHO4ONGvlS1pKWC6jY74kTZBk03YV7HRo+qkMB6kxVnilYaS0ur6fhHV41dqLaKnCfk84u8sr9t6r2kSz5Gx9XGmP2Fb39skC6B1sChfzEpsrKtmNFJMFMDoN30m4QNW1nAQJEGkC2tFh6N8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OBdZ4IhJZgx9+4lirnwce0BEoghR+pn1nAuwO4AV8qCw35ueYb73bD65lsqWgDmalmBnDugLMT4/5dtJDPzO9w2Iwpb9yG0VMlfSI4IJHvBE58BWABItJHdk2BZYao0vBkVOVASlVqsWc1M1aFGXPtj3KPOaYSkBwbicKLOkCQg=
Domainkey-status: good (test mode)
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
My setup:

netqmail-1.05
vpopmail

# cat /service/qmail-smtpd/run
#!/bin/sh
PATH=/pub/mail/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

QMAILQUEUE='/pub/mail/qmail/bin/qmail-qscanq-spamd'     # Spam AND
Virus filtering
export QMAILQUEUE

QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /pub/mail/qmail/control/concurrencyincoming`
LOCAL=`head -1 /pub/mail/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 /pub/mail/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 60000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 12.190.41.4 smtp \
/usr/local/bin/rblsmtpd -rzen.spamhaus.org -rlist.dsbl.org \
/usr/local/bin/fixcrio \
/pub/mail/qmail/bin/qmail-smtpd \
/pub/mail/vpopmail/bin/vchkpw /usr/bin/true 2>&1

# cat /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
12.190.41.4:allow,RELAYCLIENT=""

I've got a user that cannot send mail from home.  They are on a DSL
line that has been listed in Spamhaus Policy Black List, probably
because its in a dynamic IP block.  zen.spamhaus.org consults this
list, so when the user tries to connect, there are logs returning a
451 when querying the Spamhaus.

All this is well and good, but my question is, shouldn't the user be
allowed to relay based on the fact that he has an authenticated SMTP
session?  I thought that once the user is authenticated by vchkpw, the
appropriate env vars are set so that relaying wouldn't be an issue?
Obviously this is not the case, so is there a more appropriate way to
handle this scenario than what I am currently doing?

I realize that I could resolve this issue by choosing a different RBL,
but I view that as a workaround, not a solution.

Thanks,
Steve

<Prev in Thread] Current Thread [Next in Thread>