Difference between revisions of "CentOS 8.x Zimbra forward a copy of all incoming and outgoing emails to audit email ID"
From Notes_Wiki
(Created page with "Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x Zimbra > CentOS 8.x Zimbra forward a copy of all incoming and outgoing emails to audit email ID For auditing or security compliance purposes, it might be required to forward a copy of all incoming / outgoing emails to a particular audit email ID. To configure such forwarding use below steps: # Create '<tt>/opt/zimbra/conf/sender_bcc</tt>' with domains and email ID list...") |
m |
||
Line 18: | Line 18: | ||
#:: postmap /opt/zimbra/conf/recipient_bcc | #:: postmap /opt/zimbra/conf/recipient_bcc | ||
#:</pre> | #:</pre> | ||
# Update email configuration to use sender_bcc and recipient_bcc files created above | # Update email configuration to use sender_bcc and recipient_bcc files created above at path '<tt>/opt/zimbra/common/conf/main.cf</tt>' | ||
#:<pre> | #:<pre> | ||
#:: sender_bcc_maps = lmdb:/opt/zimbra/conf/sender_bcc | #:: sender_bcc_maps = lmdb:/opt/zimbra/conf/sender_bcc |
Latest revision as of 09:53, 9 April 2024
Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x Zimbra > CentOS 8.x Zimbra forward a copy of all incoming and outgoing emails to audit email ID
For auditing or security compliance purposes, it might be required to forward a copy of all incoming / outgoing emails to a particular audit email ID. To configure such forwarding use below steps:
- Create '/opt/zimbra/conf/sender_bcc' with domains and email ID list where a copy of all outgoing mails of domain will be forwarded to given email ID:
- @example.com audit@example.com
- @rnd.com audit@example.com
- Similarly create '/opt/zimbra/conf/recipient_bcc' with domains and email ID list where a copy of all incoming emails of domain will be forwarded to given email ID:
- @example.com audit@example.com
- @rnd.com audit@example.com
- Build the maps
- su - zimbra
- postmap /opt/zimbra/conf/sender_bcc
- postmap /opt/zimbra/conf/recipient_bcc
- Update email configuration to use sender_bcc and recipient_bcc files created above at path '/opt/zimbra/common/conf/main.cf'
- sender_bcc_maps = lmdb:/opt/zimbra/conf/sender_bcc
- recipient_bcc_maps = lmdb:/opt/zimbra/conf/recipient_bcc
- Update ownership on files to zimbra:zimbra
- chown zimbra:zimbra /opt/zimbra/conf/sender_bcc* /opt/zimbra/conf/recipient_bcc*
- Reload postfix configuration
- su - zimbra
- postfix reload
- zmmtactl restart
Ref:
- https://wiki.zimbra.com/wiki/Email_redirection
- https://www.huuphan.com/2017/08/create-auto-bcc-for-sender-mails-zimbra.html
- https://www.huuphan.com/2017/08/create-auto-bcc-for-recipient-mails-zimbra.html
Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x Zimbra > CentOS 8.x Zimbra forward a copy of all incoming and outgoing emails to audit email ID