So I've managed to get the combination of software packages listed above,
with one glitch. The most confusing part of all of this was getting maildrop
to play nice with vpopmail. Fortunately, I happened to stumble on a script
by Howard Jones
was pretty close to what I was trying to accomplish.
Rather than calling spamassassin via maildrop, as done in Howard's script,
qmail-scanner provides that function for me -- being called via QMAILQUEUE.
So I've modified his script to accommodate for the change, as provided
below. All of this works as you'd expect, unless email is marked as spam
for a non-existent mailbox/user.
SPAM flagged to [EMAIL PROTECTED] (deferral):
Clean to [EMAIL PROTECTED] (failure):
delivery 3269: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Why am I getting a deferral when the message is marked as SPAM, instead of
the correct response of a failure? The obvious annoyance here is that the
deferral ends up sitting in the queue for 'queuelifetime', repeatedly
failing to deliver before sending the bounce. At this point my mind is blank
and was hoping I could find some direction or opinions on how to get to the
bottom of this.
I hope I've made some sense -- been a long day.
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
BOUNCE="|/usr/bin/bouncesaying 'Sorry, no mailbox here by that name.
# Absense of this check resulted in deferred status in cases
# where spamassassin flagged email positive.
if ($RETURNCODE > 0)
if (/^X-Spam-Status: *Yes/)
# try filtering it using user-defined rules
# then try delivering it to a Spam folder
# to "$VPOP"
# ah well, I guess they'll just have to live with disappointment