Differences
This shows you the differences between two versions of the page.
changing_sender_address_in_postfix [05.05.2015 17:45] – created Pascal Suter | changing_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 ''/ | ||
+ | smtp_generic_maps = hash:/ | ||
+ | save and close and now open ''/ | ||
+ | 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 / | ||
+ | and finally, restart postfix | ||
+ | / | ||
+ | |||