...
TBC. May involve re-generating certificates.
Postfix
Change the postfix configuration files
...
Update by editing:
- /etc/aliases If it is changed, run the
newalises
command. - /etc/mailname
- Do not restart or reload postfix until all files have been updated
- Change the hostname in /etc/postfix/header_checks. checks If the file doesn't exist, create it using the procedure at http://wiki.bluelightav.org/x/PAIW . Do not restart or reload postfix until all files have been updated.
...
- If it is changed, run the
postmap
command on it, in the /etc/postfix directory. - /etc/postfix/generic
...
- If it is changed, run the
postmap
command on it, in the /etc/postfix directory.
Update /etc/postfix/main.cf by (replacing <hostname> and <domain>):
postconf -e myhostname=<hostname>
postconf -e mydestination=<hostname>,localhost.<domain>,localhost
postconf -e 'smtp_header_checks = regexp:/etc/postfix/header_checks'
Restart postfix:
/etc/init.d/postfix reload
...