CentOS 8.x postfix replace addresses on outgoing email

From Notes_Wiki
Revision as of 12:59, 28 September 2021 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Replace addresses on outgoing email">CentOS 8.x postfix|postfix</yambe:breadcrumb> =CentOS 8.x postfix replace addresses on outgoing email= The below...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Replace addresses on outgoing email">CentOS 8.x postfix|postfix</yambe:breadcrumb>

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:

  1. Add below line in '/etc/postfix/main.cf'
    smtp_generic_maps = hash:/etc/postfix/generic
  2. Create the generic file '/etc/postfix/generic' with below content:
    @localdomain.local user@example.com
  3. Create hash postmap of generic using:
    cd /etc/postfix
    chmod 600 sasl_passwd
    postmap hash:/etc/postfix/sasl_passwd
  4. Restart the postfix services
    systemctl restart postfix


See related CentOS 8.x postfix rewrite sender address on outgoing email


Refer:



<yambe:breadcrumb self="Replace addresses on outgoing email">CentOS 8.x postfix|postfix</yambe:breadcrumb>