On May 12, 2011, at 8:08 PM, Wietse Venema wrote: > Jason Voorhees: >>> I suggest the documentation, instead: >>> >>> http://www.postfix.org/postconf.5.html#smtpd_proxy_filter >>> >> >> Thanks, I'm going to read it. >> >>> This can be anything that speaks SMTP. >>> >>> (Note that implementing one of the *_bcc options will be far easier) >>> >> >> I'm not pretty sure how to do that because I don't want to bcc all my >> e-mail to one address. > > /etc/postfix/main.cf: > recipient_bcc_maps = pcre:/etc/postfix/recipient_pcre > recipient_delimiter = + > > /etc/postfix/recipient_pcre: > # Send copy of mail for each u...@example.org recipient > # to archive+user=example....@example.com > /^(.*)@([^@]+)$/ archive+$1=$2...@example.com > > This sends a copy for each recipient to arch...@example.com, with > the original recipient encoded in the address extension. > > This question comes up every few months or so. > > Wietse > sorry to thread jump can the pcre map include multilines ? what Im looking at is a bcc to archive but ^not aliasusern...@example.com does it read line by line or can in include an if $user=fred dev/null else /^......
/^!aliasusername@([^@]+)$/ archive+$1=$2...@example.com /^(.*)@([^@]+)$/ archive+$1=$2...@example.com or /^aliasusername@([^@]+)$/ deny /^(.*)@([^@]+)$/ archive+$1=$2...@example.com -j