Difference between revisions of "CentOS 8.x postfix replace addresses on outgoing email"

From Notes_Wiki
(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...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb self="Replace addresses on outgoing email">CentOS 8.x postfix|postfix</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x email servers]] > [[CentOS 8.x postfix]] > [[CentOS 8.x postfix replace addresses on outgoing email]]
=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:
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:
Line 15: Line 13:
#:<pre>
#:<pre>
#::    cd /etc/postfix
#::    cd /etc/postfix
#::    chmod 600 sasl_passwd
#::    chmod 600 generic
#::    postmap hash:/etc/postfix/sasl_passwd
#::    postmap hash:/etc/postfix/generic
#:</pre>
#:</pre>
# Restart the postfix services
# Restart the postfix services
Line 33: Line 31:




<yambe:breadcrumb self="Replace addresses on outgoing email">CentOS 8.x postfix|postfix</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x email servers]] > [[CentOS 8.x postfix]] > [[CentOS 8.x postfix replace addresses on outgoing email]]

Latest revision as of 08:12, 16 June 2022

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:

  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 generic
    postmap hash:/etc/postfix/generic
  4. 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