After systemd integration enabled, Postfix will no longer send mail on startup
Bug #1627117 reported by
Michael Marley
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
This occurs because /etc/resolv.conf gets copied to /var/spool/
Changed in postfix (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
Changed in postfix (Ubuntu): | |
status: | Triaged → Fix Committed |
tags: | added: patch server-next |
To post a comment you must log in.
Hi,
thank you for reporting this issue and the pre-analysis.
I wonder why the After=network. target in the service isn't protecting this enough.
Since you already checked so much, could you outline which script is doing the copy of resolv.conf on postfix initialization?
That should be the one that would be supposed to run "later" once all of the network is ready.
Also finally since you are referring to systemd - are you testing Xenial or Yakkety?
I prepped already a bit of a trivial repro case:
lxc launch images: ubuntu/ yakkety/ amd64 test-pf postfix/ etc/ postfix/ etc/resolv. conf
lxc exec test-pf apt-get update
# choose the simple local only config
lxc exec test-pf apt-get install postfix
lxc exec test-pf reboot
lxc exec test-pf ls -laF /var/spool/
lxc exec test-pf cat /var/spool/
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
lxc exec test-pf cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.0.4.1
search lxd
With that I see the "old" content of resolv.conf prior to it being updated.
Is that enough in your opinion as recreation of the case?