Postfix Always BCC no postfix, para regras espscificas.
This Postfix example involves using both the sender_bcc_maps and recipient_b
cc_maps
in such a way that says:
"If the sender is not in my domain" then bcc a copy to an address
--else--
"If the recipient is not in my domain" then bcc a copy to an address
--else--
Send the bcc copy to nobody (/dev/null)
Example configs:
--< main.cf >--
always_bcc =
recipient_bcc_maps = regexp:/etc/postfix/bcc_regexp
sender_bcc_maps = regexp:/etc/postfix/bcc_regexp
--< /etc/aliases or /etc/postfix/aliases >--
nobody: /dev/null
--< /etc/postfix/bcc_regexp >--
/@mydomain.com/ nobody@mydomain.com
/.*/ archive_address@mydomain.com
Note: If you use a content_filter, then specify receive_override_options
either in main.cf or master.com, or else you will get 2 bcc copies:
receive_override_options = no_address_mappings
Note: A drawback to using Postfix is that you will get useless
noise in the syslog file about any emails going to "nobody".
--
Greg
cc_maps
in such a way that says:
"If the sender is not in my domain" then bcc a copy to an address
--else--
"If the recipient is not in my domain" then bcc a copy to an address
--else--
Send the bcc copy to nobody (/dev/null)
Example configs:
--< main.cf >--
always_bcc =
recipient_bcc_maps = regexp:/etc/postfix/bcc_regexp
sender_bcc_maps = regexp:/etc/postfix/bcc_regexp
--< /etc/aliases or /etc/postfix/aliases >--
nobody: /dev/null
--< /etc/postfix/bcc_regexp >--
/@mydomain.com/ nobody@mydomain.com
/.*/ archive_address@mydomain.com
Note: If you use a content_filter, then specify receive_override_options
either in main.cf or master.com, or else you will get 2 bcc copies:
receive_override_options = no_address_mappings
Note: A drawback to using Postfix is that you will get useless
noise in the syslog file about any emails going to "nobody".
--
Greg