Postfix / Archive Mail duplicates

Michael Pacey michael at WD21.CO.UK
Mon Mar 22 00:32:48 GMT 2004


Hi,

I have set up MailScanner with Postfix (two instances of Postfix - one
incoming SMTP, one delivery) according to the documentation; I am using
MailScanner to archive SMTP mail from or to a specific user to an
archive mail account. So I have:

Archive Mail = /etc/MailScanner/rules/archive.rules

and archive.rules says:

FromorTo:       sales at wd41.co.uk       archive at wd41.co.uk

And indeed all mail from, or to, sales at wd41.co.uk is also going to
archive at wd41.co.uk.  wd41.co.uk is my test domain, my real one is wd21.

However, it arrives twice in the archive account (and only once in the
sales account). My log says (this is a manual run of check_mailscanner):

Mar 22 00:17:04 juan postfix/smtpd[2239]: connect from
unknown[192.168.0.11]
Mar 22 00:17:04 juan postfix/smtpd[2239]: 6D4723B325:
client=unknown[192.168.0.11]
Mar 22 00:17:04 juan postfix/cleanup[2241]: 6D4723B325:
message-id=<E1B5D8V-0003Cz-00 at kermit.wd21.co.uk>
Mar 22 00:17:04 juan postfix/nqmgr[1998]: 6D4723B325:
from=<mpacey at wd21.co.uk>, size=518, nrcpt=1 (queue active)
Mar 22 00:17:04 juan postfix/smtpd[2239]: disconnect from
unknown[192.168.0.11]
Mar 22 00:17:04 juan postfix/nqmgr[1998]: 6D4723B325:
to=<sales at wd41.co.uk>, relay=none, delay=0, status=deferred (deferred
transport)
Mar 22 00:29:12 juan MailScanner[2284]: MailScanner E-Mail Virus Scanner
version 4.28.5 starting...
Mar 22 00:29:14 juan MailScanner[2284]: Using locktype = flock
Mar 22 00:29:14 juan MailScanner[2284]: New Batch: Scanning 1 messages,
816 bytes
Mar 22 00:29:14 juan MailScanner[2284]: Virus and Content Scanning:
Starting
Mar 22 00:29:14 juan MailScanner[2284]: Requeue: 6D4723B325 to
AE7246E78D
Mar 22 00:29:14 juan MailScanner[2284]: Uninfected: Delivered 1 messages
Mar 22 00:29:14 juan postfix/nqmgr[2092]: AE7246E78D:
from=<mpacey at wd21.co.uk>, size=596, nrcpt=3 (queue active)
Mar 22 00:29:14 juan MailScanner[2284]: MailScanner child dying of old
age
Mar 22 00:29:14 juan postfix/local[2287]: AE7246E78D:
to=<archive at wd41.co.uk>, orig_to=<unknown>, relay=local, delay=730,
status=sent ("|procmail
 -a $EXTENSION")
Mar 22 00:29:14 juan postfix/local[2288]: AE7246E78D:
to=<sales at wd41.co.uk>, relay=local, delay=730, status=sent ("|procmail
-a $EXTENSION")
Mar 22 00:29:14 juan postfix/local[2290]: AE7246E78D:
to=<archive at wd41.co.uk>, orig_to=<unknown>, relay=local, delay=730,
status=sent ("|procmail
 -a $EXTENSION")


Notice how nrcpt has gone from 1 to 3 during Mailscanner's activity -
and the mail gets delivered twice to archive.

If I comment out the Archive Mail setting in Mailscanner, I just get one
mail to sales at wd41.co.uk; so there is no other setting which could be
causing the problem.

Any ideas why this is happening / how to fix it?

Thanks in advance!

--
Michael Pacey <michael at wd21.co.uk>



More information about the MailScanner mailing list