@lbutlr: > if !/backup.*@/ > /^([^+_]*).*@(.*)/ backup+${1}.${2}@domain.tld > endif > > I currently have the above in recipient_bbc > > /etc/postfix/main.cf: > > recipient_bcc_maps =3D pcre:$config_directory/recipient_bcc.pcre > > And this works perfectly and stores a copy of all email (sent and = > received) in a backup account that is set to delete messages after 7 = > days. This allows me to recover messages which people have deleted or = > accidentally marked as spam. > > However, I would like to exclude a specific domain from this backup = > including all mail TO and FROM the domain.
if !/backup.*@/ if !/@example\.com$/ /^([^+_]*).*@(.*)/ backup+${1}.${2}@domain.tld endif endif However the first pattern doesn't seem robust to me. It excludes something that has 'backup' in the middle of the localpart. Wietse