1) Without network connectivity, the file /etc/resolv.conf does not contain any useful information (just two comment lines).
2) After establishing network connectivity, the file /etc/resolv.conf contains 127.0.1.1 and a correct search path as received via DHCP.
3) Postfix copies the file /etc/resolv.conf to /var/spool/postfix/etc/resolv.conf upon startup. If postfix is started before the network is up, this file will not allow name resolution. Every other application uses /etc/resolv.conf and works fine.
Perhaps Network-Manager could restart postfix upon connection-up events? Can this be configured?
I might have found the reason for this behaviour:
1) Without network connectivity, the file /etc/resolv.conf does not contain any useful information (just two comment lines).
2) After establishing network connectivity, the file /etc/resolv.conf contains 127.0.1.1 and a correct search path as received via DHCP.
3) Postfix copies the file /etc/resolv.conf to /var/spool/ postfix/ etc/resolv. conf upon startup. If postfix is started before the network is up, this file will not allow name resolution. Every other application uses /etc/resolv.conf and works fine.
Perhaps Network-Manager could restart postfix upon connection-up events? Can this be configured?