lwc:linux:postfix

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
lwc:linux:postfix [2025/09/16 08:27] John Harrisonlwc:linux:postfix [2025/10/20 15:40] (current) John Harrison
Line 24: Line 24:
 sudo postfix stop; sudo postfix start; sudo postfix reload sudo postfix stop; sudo postfix start; sudo postfix reload
 </code> </code>
 +=== Alternative allowing multiple from addresses to map to multiple to addresses (better than above solution?) ===
 +from [[https://serverfault.com/questions/147921/forcing-the-from-address-when-postfix-relays-over-smtp]] (example shown):
 +<code>
 +/etc/postfix/main.cf:
 +    smtp_generic_maps = hash:/etc/postfix/generic
 +
 +/etc/postfix/generic:
 +    user@localdomain.local      account@isp.example.com
 +    @localdomain.local          wholedomain@isp.example.com
 +Then do:
 +
 +sudo postmap /etc/postfix/generic
 +sudo /etc/init.d/postfix reload
 +</code>
 +
 === Remap root@localhost to another to address === === Remap root@localhost to another to address ===
   * add ''root:        <EMAILADDR>'' to ''/etc/aliases''   * add ''root:        <EMAILADDR>'' to ''/etc/aliases''
  • lwc/linux/postfix.txt
  • Last modified: 2025/10/20 15:40
  • by John Harrison