changing_sender_address_in_postfix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

changing_sender_address_in_postfix [05.05.2015 17:45] – created Pascal Suterchanging_sender_address_in_postfix [05.05.2015 18:03] (current) Pascal Suter
Line 3: Line 3:
  
 luckily postfix provides smtp_generic_maps that do just that:  luckily postfix provides smtp_generic_maps that do just that: 
 +edit ''/etc/postfix/main.cf'' and add this line: 
 +  smtp_generic_maps = hash:/etc/postfix/generic
 +save and close and now open ''/etc/postfix/generic''
 +now to change the from header for root@myhost.mydomain.local to info@mypublicdomain.com enter a line like this to that file: 
 +  root@myhost.mydomain.local info@mypublicdomain.com
 +once again, save and close
 +now create the table using postmap: 
 +  postmap /etc/postfix/generic
 +and finally, restart postfix
 +  /etc/init.d/postfix restart
 +
  
  
  
  • changing_sender_address_in_postfix.1430840754.txt.gz
  • Last modified: 05.05.2015 17:45
  • by Pascal Suter