Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1200808

Bug#1070120: postfix: can't send mail due to obsolete /var/spool/postfix/etc/resolv.conf on new network

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.bugs.dist
Subject Bug#1070120: postfix: can't send mail due to obsolete /var/spool/postfix/etc/resolv.conf on new network
Date 2024-06-13 19:30 +0200
Message-ID <IOWqR-2HFS-3@gated-at.bofh.it> (permalink)
References <IyWOe-a4cu-29@gated-at.bofh.it> <IyX7z-a4ja-1@gated-at.bofh.it> <IyXhf-a4C0-7@gated-at.bofh.it> <IyWOe-a4cu-29@gated-at.bofh.it> <IyXhf-a4C0-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2024-04-30 14:59:29 +0000, Bastien Roucariès wrote:
> Le mardi 30 avril 2024, 14:52:46 UTC Vincent Lefevre a écrit :
> Hi,
> 
> > Control: tags -1 security
> > 
> > On 2024-04-30 16:33:14 +0200, Vincent Lefevre wrote:
> > > If I try to restart postfix, I get:
> > > 
> > > postfix/postfix-script: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
> 
> A solution may be to bind mount ro /etc/resolv.conf to
> /var/spool/postfix/etc/resolv.conf

Any news?

Note that even with a fixed network configuration, the current
setting is broken. It seems that postfix systematically rewrites
/var/spool/postfix/etc/resolv.conf at boot time, and it does that
too soon.

qaa:~> ll /var/spool/postfix/etc/resolv.conf
-rw-r--r-- 1 root root 65 2024-06-13 19:06:31 /var/spool/postfix/etc/resolv.conf
qaa:~> cat /var/spool/postfix/etc/resolv.conf
# Generated by NetworkManager
search home
nameserver 192.168.1.1

It misses the IPv6 addresses, which have been added 1 second later:

qaa:~> ll /etc/resolv.conf
-rw-r--r-- 1 root root 163 2024-06-13 19:06:32 /etc/resolv.conf
qaa:~> cat /etc/resolv.conf
# Generated by NetworkManager
search home
nameserver 192.168.1.1
nameserver fe80::8ef8:13ff:fe53:3884%wlp0s20f3
nameserver 2a01:cb19:8120:d600:8ef8:13ff:fe53:3884

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1070120: postfix: can't send mail due to obsolete /var/spool/postfix/etc/resolv.conf on new network Vincent Lefevre <vincent@vinc17.net> - 2024-06-13 19:30 +0200

csiph-web