On 27.08.2025 02:04, Wietse Venema via Postfix-users wrote:
Matthew via Postfix-users:
*Aug 26 15:09:28 SMTP postfix[1037]: postfix/postlog: warning:
/var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
Aug 26 15:09:28 SMTP postfix/postfix-script[1037]: warning:
/var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ*

Please also check the timestamps of these files - is resolv.conf
in /var/spool/postfix more recent than the one in /etc?

If yes, what you're seeing is the remnants of previous postfix
packaging in debian, and my inability to imagine this particular
situation when trying to fix it, - this particular issue should
be fixed in the next version of postfix package in debian (already
fixed in unstable).  Once again, this is about a particular issue
when chroot copy of the file is more recent than the one in /etc.
If it's not the case, I'd love to see more details about your setup.

That would explain why DNS results are different for Postfix amd
for OS utilities. Turn off chroot and the problem goes away.

Looks like it's exactly as you suspected "is the file
/var/spool/postfix/etc/resolv.conf up-to-date BEFORE Postfix is
started?" it would appear not.

For completeness, as you requested:

     root@SMTP:~# postconf -F smtp/inet/chroot smtp/inet/chroot = y
     root@SMTP:~# postconf -F submissions/inet/chroot submissions/inet/chroot = 
y

Unfortunately this will most likely break (move) comments in master.cf.

Running Postfix chrooted on Linux is like fighting windmills. Don't
waste your time on that.

Can you file a request to Debian maintainers to make non-chroot
Postfix the default? Upstream Postfix turned off chroot a decade
ago (in 2015), and it's time that Debian catches up. Your struggles
are unnecessary, and they make Postfix adoption difficult.

https://bugs.debian.org/1084167 -- I asked for help with this issue,
and had no chance to resolve it before trixie (I'll probably have to
rewrite existing configuration mechanism entirely, also due to
https://bugs.debian.org/734401).

But this wont change this situation in any way, because it is an
upgrade from previous debian release and we have to keep existing
configuration.

Thanks,

/mjt
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to