Some Postfix configuration guidelines
Posted by jpluimers on 2019/02/08
Not just for Postfix are the first two guidelines:
- Change one thing at a time
- Save known working configurations
For the latter, I’m using etckeeper
pushing to an external git repository hoster.
For Postfix are the others from [WayBack] Postfix Configuration Guidelines.
One tip that’s missing, but saved my life numerous of times:
In
/etc/postfix/main.cfg
do not use this line ever:
inet_interfaces = $myhostname
If the resolving (through DNS or hosts file) of
$myhostname
fails for any reason in the future, then Postfix will not start at all, but in stead emit a fatal error like this:
/usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for 127.0.0.2
Specify exact interfaces in stead, like any of these:
inet_interfaces = all
inet_interfaces = localhost
inet_interfaces = 192.168.24.68
–jeroen
Leave a Reply