On Fri, May 13, 2016 at 10:56:14AM +0200, Hans Ginzel wrote: > Does Postfix detect changes in /etc/resolv.conf to flush its dns caches etc, > please?
Postfix has no long-running processes that cache DNS data. By default each smtpd(8), smtp(8), lmtp(8), ... delivery agent processes 100 ($max_use) messages and exits after that or after 100s ($max_idle) of idle time. So while changes to /etc/resolv.conf are not detected instantly, they are detected in due course. (After at most 10000s or ~3 hours, but in practice considerably more quickly). You can always "postfix reload" if needed. Presumably your resolv.conf file is not changing constantly. Bear in mind also that you may need another copy in $queue_directory/etc/ if any processes are running with chroot enabled. -- Viktor.