LMTP delivery to Dovecot stops working in 3.1.4-1

Bug #1654453 reported by Michael Marley
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
postfix (Debian)
Fix Released
Unknown
postfix (Ubuntu)
Fix Released
Critical
LaMont Jones

Bug Description

After installing Postfix 3.1.4, email delivery to Dovecot stops working. In the Postfix log, I get:

Jan 5 19:50:45 michaelmarley postfix/smtpd[30558]: connect from <redacted>[<redacted>]
Jan 5 19:50:45 michaelmarley postfix/smtpd[30558]: B3A2C1801FA: client=<redacted>[<redacted>]
Jan 5 19:50:45 michaelmarley postfix/cleanup[30582]: B3A2C1801FA: message-id=<<redacted>>
Jan 5 19:50:45 michaelmarley postfix/qmgr[30460]: B3A2C1801FA: from=<<redacted>>, size=8706, nrcpt=1 (queue active)
Jan 5 19:50:45 michaelmarley postfix/smtp[30584]: fatal: unknown service: /var/spool/postfix/private/dovecot-lmtp/tcp
Jan 5 19:50:45 michaelmarley postfix/smtpd[30558]: disconnect from <redacted>[<redacted>] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jan 5 19:50:46 michaelmarley postfix/local[30583]: warning: private/lmtp socket: malformed response
Jan 5 19:50:46 michaelmarley postfix/master[30458]: warning: process /usr/lib/postfix/sbin/smtp pid 30584 exit status 1
Jan 5 19:50:46 michaelmarley postfix/master[30458]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
Jan 5 19:50:46 michaelmarley postfix/local[30583]: B3A2C1801FA: to=<<redacted>>, relay=none, delay=1.5, delays=0.44/0/0/1, dsn=4.3.0, status=deferred (unknown mail transport error)

If I re-make the removed lmtp->smtp symlink and revert the configuration change made in master.cf, email delivery works correctly again. It looks like the smtp binary might act differently based on if it is called as "smtp" or "lmtp".

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 1654453] [NEW] LMTP delivery to Dovecot stops working in 3.1.4-1

On Friday, January 06, 2017 01:04:21 AM you wrote:

What does the line for dovecot-lmtp in master.cf look like?

Scott K

Changed in postfix (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Marley (mamarley) wrote :

I don't have anything about dovecot-lmtp in master.cf. The only uncommented line I have about lmtp in master.cf is "lmtp unix - - n - - lmtp". In main.cf, I have "mailbox_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp".

Revision history for this message
Peter Kahl (peter-kahl) wrote :

I have the same problem.

My master.cf has no line mentioning "dovecot-lmtp".

My main.cf has line "mailbox_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp".

When upgrading Postfix, the process modified my "master.cf" from "lmtp unix - - n - - lmtp" to "lmtp unix - - n - - smtp".

Revision history for this message
LaMont Jones (lamont) wrote :

Is it possible that there is trailing whitespace on the lmtp line in master.cf? That would explain the issue.

Revision history for this message
LaMont Jones (lamont) wrote :

Based on the reported contents of the line, I'm assuming that's the case and uploading 3.1.4-2. If that doesn't fix it, please reopen this bug.

Changed in postfix (Ubuntu):
assignee: nobody → LaMont Jones (lamont)
importance: Undecided → Critical
status: Incomplete → Fix Committed
Revision history for this message
Michael Marley (mamarley) wrote :

No, there is no trailing whitespace on any of the lines related to lmtp in either of my configuration files.

Revision history for this message
Peter Kahl (peter-kahl) wrote :

No trailing whitespace.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 1654453] Re: LMTP delivery to Dovecot stops working in 3.1.4-1

On Friday, January 06, 2017 05:30:12 PM you wrote:
> No, there is no trailing whitespace on any of the lines related to lmtp
> in either of my configuration files.

The regex is improved in 3.1.4-2, so please check again once you've upgraded
to that version.

Scott K

Revision history for this message
Michael Marley (mamarley) wrote :

I just upgraded and still have exactly the same problem as before.

Changed in postfix (Ubuntu):
status: Fix Committed → Confirmed
Revision history for this message
LaMont Jones (lamont) wrote :

On Sat, Jan 07, 2017 at 01:26:41PM -0000, Michael Marley wrote:
> I just upgraded and still have exactly the same problem as before.

During the upgrade, did it say that it was changing master.cf as below?

In master.cf:
  using smtp binary for lmtp service (symlink removed)

In either case, please send me unredacted (other than any passwords) master.cf
and /var/log/apt/term.log from the upgrade?

lamont

Revision history for this message
Michael Marley (mamarley) wrote :

Here is the relevant section of term.log. It does say that it is removing the symlink and updating the configuration.

Revision history for this message
Michael Marley (mamarley) wrote :

Here is the master.cf file.

Revision history for this message
LaMont Jones (lamont) wrote :

3.1.4-3 should be uploaded this weekend, with the fix.

Changed in postfix (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
LaMont Jones (lamont) wrote :

@mamarley - A postfix package with the fix (for testing) is in ppa:lamont/postfix -- can you confirm that the bug is fixed with that version?

thanks

Revision history for this message
Michael Marley (mamarley) wrote :

Sure, but it appears to be FTBFS at the moment.

Changed in postfix (Debian):
status: Unknown → Fix Released
Revision history for this message
LaMont Jones (lamont) wrote :

There is a new test version in the ppa. This one built. :/

Revision history for this message
Michael Marley (mamarley) wrote :

That works, thanks!

Changed in postfix (Debian):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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 <email address hidden> Fri, 06 Jan 2017 08:41:36 -0700

Changed in postfix (Ubuntu):
status: Fix Committed → Fix Released
Changed in postfix (Debian):
status: Fix Committed → Fix Released
Revision history for this message
patrikx3 (patrikx3) wrote :

Hello! Cna you help how to install it?
I added:
 add-apt-repository ppa:lamont/postfix

The problem:
W: GPG error: http://ppa.launchpad.net/lamont/postfix/ubuntu zesty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CD264BE5EA87984F
E: The repository 'http://ppa.launchpad.net/lamont/postfix/ubuntu zesty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

How can I install so I can use postfix the last fix fo the fatal: unknown service: private/dovecot-lmtp/tcp?

THANKS!

Revision history for this message
l3188954@mvrht.com (l3188954) wrote :

When upgrading Postfix, I have this same problem. Upgrading process modified my "master.cf" from "lmtp unix - - - - - lmtp" to "lmtp unix - - y - - smtp".

I change again smtp -> lmtp : "lmtp unix - - y - - lmtp" and all began to work.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.