hi

i have a postfix set up with a bunch of virtual domains.
we've been using always_bcc to archive the mail, until one of the paranoid users asked us not to include his mail in the archive.

so i'm trying to do the same with recipient/sender maps:
----
recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc
sender_bcc_maps = pcre:/etc/postfix/sender_bcc
----
the contents of the two files are the same:
----
/^paranoid\.u...@my\.tld$)/ null
/.*/                            mailbac...@my.tld
----
null points to /dev/null in my aliases file.

if i enable only the recipient line, it works, his mail gets delivered to null and his mailbox. if i enable only the sender line, it works, mail sent from him, gets sent to null, and whoever.
BUT, if i enable both rules, both his sent and recieved emails get archived!

if i send mail to him it looks like this:
----
Mar 31 00:20:17 machine postfix/qmgr[32425]: AE8C0258C056: from=<thesen...@my.tld>, size=341, nrcpt=1 (queue active) Mar 31 00:20:19 machine postfix/smtpd[32435]: connect from localhost[127.0.0.1] Mar 31 00:20:19 machine postfix/smtpd[32435]: 68EED258C0C1: client=localhost[127.0.0.1] Mar 31 00:20:19 machine postfix/cleanup[32430]: 68EED258C0C1: message-id=<20090330222013.ae8c0258c...@mail.my.tld> Mar 31 00:20:19 machine postfix/qmgr[32425]: 68EED258C0C1: from=<thesen...@my.tld>, size=791, nrcpt=3 (queue active) Mar 31 00:20:19 machine postfix/smtpd[32435]: disconnect from localhost[127.0.0.1] Mar 31 00:20:19 machine amavis[31260]: (31260-09) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <thesen...@my.tld> -> <paranoid.u...@my.tld>, Message-ID: <20090330222013.ae8c0258c...@mail.my.tld>, mail_id: SQovFKE8WLMy, Hits: -100.418, size: 341, queued_as: 68EED258C0C1, 1956 ms Mar 31 00:20:19 machine postfix/smtp[32432]: AE8C0258C056: to=<paranoid.u...@my.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=8.2, delays=6.3/0/0/2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=31260-09, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 68EED258C0C1)
Mar 31 00:20:19 machine postfix/qmgr[32425]: AE8C0258C056: removed
Mar 31 00:20:19 machine postfix/local[32437]: 68EED258C0C1: to=<n...@mail.my.tld>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to file: /dev/null) Mar 31 00:20:19 machine postfix/virtual[32436]: 68EED258C0C1: to=<paranoid.u...@my.tld>, relay=virtual, delay=0.04, delays=0.01/0.01/0/0.03, dsn=2.0.0, status=sent (delivered to maildir) Mar 31 00:20:19 machine postfix/virtual[32436]: 68EED258C0C1: to=<mailbac...@my.tld>, relay=virtual, delay=0.05, delays=0.01/0.01/0/0.03, dsn=2.0.0, status=sent (delivered to maildir)
Mar 31 00:20:19 machine postfix/qmgr[32425]: 68EED258C0C1: removed
----
if he sends mail:
Mar 31 00:25:17 machine postfix/qmgr[32425]: D3871258C056: from=<paranoid.u...@my.tld>, size=341, nrcpt=1 (queue active) Mar 31 00:25:19 machine postfix/smtpd[32451]: connect from localhost[127.0.0.1] Mar 31 00:25:19 machine postfix/smtpd[32451]: F1719258C05F: client=localhost[127.0.0.1] Mar 31 00:25:19 machine postfix/cleanup[32446]: F1719258C05F: message-id=<20090330222510.d3871258c...@mail.my.tld> Mar 31 00:25:19 machine postfix/smtpd[32451]: disconnect from localhost[127.0.0.1] Mar 31 00:25:19 machine postfix/qmgr[32425]: F1719258C05F: from=<paranoid.u...@my.tld>, size=777, nrcpt=3 (queue active) Mar 31 00:25:19 machine postfix/local[32469]: F1719258C05F: to=<n...@mail.my.tld>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to file: /dev/null) Mar 31 00:25:20 machine amavis[31260]: (31260-10) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <paranoid.u...@my.tld> -> <therecipi...@my.tld>, Message-ID: <20090330222510.d3871258c...@mail.my.tld>, mail_id: Vnqab68tzpSu, Hits: -100.429, size: 341, queued_as: F1719258C05F, 2060 ms Mar 31 00:25:20 machine postfix/smtp[32447]: D3871258C056: to=<therecipi...@my.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=14, delays=12/0/0/2.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=31260-10, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F1719258C05F)
Mar 31 00:25:20 machine postfix/qmgr[32425]: D3871258C056: removed
Mar 31 00:25:20 machine postfix/virtual[32452]: F1719258C05F: to=<therecipi...@my.tld>, relay=virtual, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered to maildir) Mar 31 00:25:20 machine postfix/virtual[32452]: F1719258C05F: to=<mailbac...@my.tld>, relay=virtual, delay=0.04, delays=0.01/0/0/0.03, dsn=2.0.0, status=sent (delivered to maildir)
Mar 31 00:25:20 machine postfix/qmgr[32425]: F1719258C05F: removed
----
so it does do the forwarding to null as it should, but why on earth does it end up in the backup too?

anyone could hit me with a clue-by-four? [=


thanks in advance,
wd


Reply via email to