From: Rocco Scappatura (no email)
Date: Tue Jun 19 2007 - 05:07:59 EDT
I'm trying to setup Maildrop filtering for many reasons (adding
disclaimer, put spam email in an ad hoc folder and so on).
I'm using a Postfix+MySQL+Courier-IMAP platform.
I'm using virtual user and maildrop. Herre the relative entry in the
master.cf file:
.
.
.
virtual unix - n n - - virtual
.
.
.
maildrop unix - n n - - pipe
.
.
.
I have put in '/etc/maildroprc' the lines below.
if( $SIZE < $SCANSPAMSIZE )
{
xfilter "/usr/bin/spamc -u $USER -s $SCANSPAMSIZE"
}
if (/^X-Spam-Status: *YES/:h)
{
exception {
to "$DEFAULT/.Spam/"
}
}
The problem is that when I receive an email for one of my mailbox, that
message is not scanned by maildrop:
Jun 18 08:37:12 dev postfix/smtpd[16012]: connect from
relay.sttspa.it[80.74.176.142] Jun 18 08:37:12 dev postfix/smtpd[16012]:
3593043E2:
client=relay.sttspa.it[80.74.176.142]
Jun 18 08:37:12 dev postfix/cleanup[16017]: 3593043E2:
message-id=<>
Jun 18 08:37:12 dev postfix/qmgr[29684]: 3593043E2: from=<xxx at yy>,
size=1522, nrcpt=1 (queue active) Jun 18 08:37:12 dev
postfix/smtpd[16012]: disconnect from relay.sttspa.it[80.74.176.142] Jun
18 08:37:12 dev postfix/virtual[16019]: 3593043E2:
to=<>, relay=virtual, delay=0, status=sent (delivered
to maildir) Jun 18 08:37:12 dev postfix/qmgr[29684]: 3593043E2: removed
It seems to me the problem is that the message is delivered to the
virtual mailbox before is scanned ("relay=virtual" on the 6th line
above).
Have anybody any idea of what it can be the mistake?
bye,
rocsca
|
|
|