[Bug 1649453] Re: systemd starts postfix before resolver

2017-06-26 Thread Scott Thatcher
And I note I didn't do a very good job of adding those X's. Oh well.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2017-06-26 Thread Scott Thatcher
Sorry to jump on this six-month-old bug, but it seems to be describing
exactly what's still going wrong for me. When I reboot my system running
Postfix, no mail is sent, and I get the following output when I run
"mailq":

-Queue ID-  --Size-- Arrival Time -Sender/Recipient---
47F291B6B   511 Mon Jun 26 10:53:26  thatcher@
(Host or domain name not found. Name service error for name=mail.X 
type=MX: Host not found, try again)
 thatc...@truman.edu

-- 0 Kbytes in 1 Request.

I put the X's in for privacy, although I don't know that it matters if
you need to see the addresses. All runs normally if I restart Postfix
after the system has finished booting.

Here is the result from the same command run by the original submitter
of this bug:

postfix.service +11ms
└─network-online.target @28.091s
  └─NetworkManager-wait-online.service @19.357s +8.733s
└─NetworkManager.service @17.565s +1.791s
  └─dbus.service @14.834s
└─basic.target @14.725s
  └─sockets.target @14.725s
└─snapd.socket @14.687s +37ms
  └─sysinit.target @14.686s
└─apparmor.service @13.847s +839ms
  └─local-fs.target @13.846s
└─run-user-121.mount @23.286s
  └─local-fs-pre.target @4.172s
└─systemd-remount-fs.service @4.119s +36ms
  └─system.slice @1.804s
└─-.slice @1.610s
systemd-resolved.service +680ms
└─network.target @20.229s
  └─wpa_supplicant.service @32.364s +374ms
└─basic.target @14.725s
  └─sockets.target @14.725s
└─snapd.socket @14.687s +37ms
  └─sysinit.target @14.686s
└─apparmor.service @13.847s +839ms
  └─local-fs.target @13.846s
└─run-user-121.mount @23.286s
  └─local-fs-pre.target @4.172s
└─systemd-remount-fs.service @4.119s +36ms
  └─system.slice @1.804s
└─-.slice @1.610s

I don't really understand everything about this output, but it looks
like Postfix is still starting before systemd-resolved.service.

This problem first showed up in Yackety, and I've been keeping on top of
updates since that point. It was certainly not resolved after January.
I've now updated to Zesty using the upgrade tool (not a fresh install),
where the behavior persists.

I did try purging and reinstalling Postscript, but that didn't help. I'm
happy to provide any other diagnostic information you might like, and
thanks for your work on this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1649453] Re: systemd starts postfix before resolver

2017-01-09 Thread Launchpad Bug Tracker
This bug was fixed in the package postfix - 3.1.4-2

---
postfix (3.1.4-2) unstable; urgency=medium

  * Update postfix Suggestions.
  * Update postfix-sqlite postinst/prerm to reflect that addmap is idempotent.
  * Restore so.1.0.1 symlinks for map libraries and change how new entries are
added.  Closes: #850400
  * Be more aggressive in retiring usage of lmtp binary.  Closes: #850430
LP: #1654453
  * Check symlinks separately in postfix-script, to allow library symlinks. 
This will go away once the symlinks are dropped again.

 -- LaMont Jones   Fri, 06 Jan 2017 08:41:36 -0700

** Changed in: postfix (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2017-01-07 Thread Scott Kitterman
Now that the upload I had pending is done, I did look into this a bit
further.

By adding the After=network-online.target override, when I look at the
output of systemd-analyze critical-chain with and without an equivalent
Wants= postfix is starting after network-online.target.

I didn't look explicitly at the different with/without for systemd-
resolved (since it's not active on my test system), but I don't see what
difference it makes.

I'm inclined to leave it as is pending some explanation of what
practical difference adding the Wants= would have.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1649453] Re: systemd starts postfix before resolver

2017-01-04 Thread Scott Kitterman
On Wednesday, January 04, 2017 07:28:27 AM you wrote:
> Thanks. OOI, does it really hurt to have the After=systemd-
> resolved.service even for cases where it's not strictly needed?

Probably not.  We've got a huge stack of changes queued, of which this is a 
small part.  I'll look at this for the next upload, but I don't want to delay 
the current one for further tweaking.

Scott K

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2017-01-03 Thread Martin Pitt
Thanks. OOI, does it really hurt to have the After=systemd-
resolved.service even for cases where it's not strictly needed?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1649453] Re: systemd starts postfix before resolver

2017-01-03 Thread Scott Kitterman
On Tuesday, January 03, 2017 08:43:15 PM you wrote:
> @Scott:
> https://git.launchpad.net/postfix/commit/?h=stable/v3.1=1a190cf17cc02
> looks rather complicated and also creates an unmanaged config file. Why
> not just always add those After= to the .service? If resolved is not
> enabled, then After=systemd-resolved is a no-op (it's only ordering, not
> a dependency -- that would be Requires= or Wants=).
> 
> Also, not sure why you added network-online.target, but if you actually
> do want to wait for the network then you also need a corresponding Wants
> =network-online.target (see man systemd.special).

Thanks. It depends on how postfix is configured (via Debconf) if these are 
needed or not.  I think ordering is all we need since, in some cases we've 
seen issues with the current service file.  In some configurations neither 
network-online.targe nor systemd-resolved are needed.

I did, in a later commit, remove the config file on purge, so that's
fixed.

Scott K

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2017-01-03 Thread Martin Pitt
@Scott:
https://git.launchpad.net/postfix/commit/?h=stable/v3.1=1a190cf17cc02
looks rather complicated and also creates an unmanaged config file. Why
not just always add those After= to the .service? If resolved is not
enabled, then After=systemd-resolved is a no-op (it's only ordering, not
a dependency -- that would be Requires= or Wants=).

Also, not sure why you added network-online.target, but if you actually
do want to wait for the network then you also need a corresponding Wants
=network-online.target (see man systemd.special).

** No longer affects: systemd (Ubuntu)

** Tags added: resolved

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2017-01-02 Thread Greg Black
OK. Thanks for the update.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1649453] Re: systemd starts postfix before resolver

2017-01-02 Thread Scott Kitterman
On Tuesday, January 03, 2017 12:34:12 AM you wrote:
> Any idea when the fix will appear in updates for yakkety?

We plan on an upload to Debian in the next day or two.  It'll follow into 
Ubuntu shortly there after.  A Yakkety SRU is work for someone involved in 
Ubuntu to do, so no.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2017-01-02 Thread Greg Black
Any idea when the fix will appear in updates for yakkety?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2016-12-30 Thread Scott Kitterman
** Changed in: postfix (Ubuntu)
   Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2016-12-23 Thread Scott Kitterman
** Changed in: postfix (Ubuntu)
   Importance: Undecided => High

** Changed in: postfix (Ubuntu)
 Assignee: (unassigned) => Scott Kitterman (kitterman)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1649453] Re: systemd starts postfix before resolver

2016-12-19 Thread Scott Kitterman
On Tuesday, December 20, 2016 12:21:51 AM you wrote:
> This is probably also an issue on Debian, would you be willing to file a
> bug there? Against postfix specifically.

There's no need.  I'm already looking at it.

Scott K

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2016-12-19 Thread Nish Aravamudan
This is probably also an issue on Debian, would you be willing to file a
bug there? Against postfix specifically.

** Changed in: postfix (Ubuntu)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1649453] Re: systemd starts postfix before resolver

2016-12-14 Thread Greg Black
** Also affects: postfix (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649453

Title:
  systemd starts postfix before resolver

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1649453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs