CentOS 8.x postfix replace addresses on outgoing email
From Notes_Wiki
Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x postfix > CentOS 8.x postfix replace addresses on outgoing email
The below steps can be used to replace addresses (any address from, to, cc, etc.) on outgoing email. To replace addresses anywhere in email use:
- Add below line in '/etc/postfix/main.cf'
- smtp_generic_maps = hash:/etc/postfix/generic
- Create the generic file '/etc/postfix/generic' with below content:
- @localdomain.local user@example.com
- Create hash postmap of generic using:
- cd /etc/postfix
- chmod 600 sasl_passwd
- postmap hash:/etc/postfix/sasl_passwd
- Restart the postfix services
- systemctl restart postfix
See related CentOS 8.x postfix rewrite sender address on outgoing email
Refer:
Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x postfix > CentOS 8.x postfix replace addresses on outgoing email