I had a setup that BCCed all the mail on postfix to a backup account, sorted by original date and cleaned out after a couple of weeks.
I would like to change this to only bcc mail that is being delivered to local users. The current setup uses recipient_bcc_maps which I would have thought did what I wanted, but it actually does all outbound mail as well. The pcre file for the map is generated each date: #!/bin/bash JDATE=$(gdate +%j) cat << EOF > /etc/postfix/rbcc.pcre if !/backup.*@/ /^([^+_]*).*@([^.]*)/ backup+${JDATE}.\${1}-\${2}@southgaylord.com endif EOF So, what would I need to do/change so that message I send to this list )for example) are not archived, but the messages received from the list continue to be archived to the backup user? -- "He is not only dull himself; he is the cause of dullness in others." Samuel Johnson