Le 23/12/2012 05:21, Joey J a écrit :
> Hello All,
>
> I have done this previously, but can't find any of my own documentation
> that I make.
>
> I want to configure a transport map, that delivers mail to my server (
> postfix acting as a gateway ) but also deliver every message to a mailbox.
>
> this is how we get mail if the server crashes.
>
no need for a transport. use
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc
recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc
recipient_delimiter = +
== recipient_bcc:
/(.*)@example\.com$/ [email protected]
this will copy mail for [email protected] to [email protected]
the extension allows you to retrieve the original recipient.
if you have multiple domains, you use something like:
/(.*)@(example\.com)$/ [email protected]
so as to retrieve the original recipient domain as well.