Thanks for pointing me in the right direction! Great. I changed this;
smtp inet n - n - - smtpd -o cleanup_service_name=pre-cleanup -o receive_override_options=no_address_mappings That appears to do the trick! Now I have to check if I haven't broken anything else. But it all appears okay. Too bad this is done AFTER the amavisd-new filtering, and that the X-Original-To: still list the bogus address... I couldn't figure out a way to do this before the filtering took place. (I've tried through 'cleanup'.) Thanks! Tino -----Oorspronkelijk bericht----- Van: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] Namens Magnus Bäck Verzonden: donderdag 30 juli 2009 19:16 Aan: postfix-users@postfix.org Onderwerp: Re: How te prevent 'double archiving'? On Thursday, July 30, 2009 at 18:46 CEST, Tino Donderwinkel <t...@tino.nl> wrote: > I'm using the recipient_bcc_maps setting in main.cf to 'archive' all > e-mail to a separate mailbox: > > main.cf: > recipient_bcc_maps = pcre:/etc/postfix/archive.pcre > > archive.pcre: > if !/@archive\.bcc$/ > /^(.*)/ $...@archive.bcc > endif > > Our postfix installation uses the 'virtual' transport for all > messages. The users/aliases etc. are in a mysql database and we're > using amavisd-new for message hygiene. One 'problem' is that all mail > is 'archived' twice. Disable address rewriting either before or after the content filter. Right now recipient_bcc_maps is applied twice. Use receive_override_options. [...] -- Magnus Bäck mag...@dsek.lth.se