On Thu, Jan 05, 2023 at 05:38:49PM +0100, Gerben Wierda wrote: > I am setting up a new server combination (postfix + dovecot). dovecot's auth > service works for postfix. Just lmtp does not and I need to find out why. I > don't see anything in the dovecot logging, but I see this on the postfix side > (debug) > > Jan 05 16:11:59 snape postfix/lmtp[127]: connection established > Jan 05 16:11:59 snape postfix/lmtp[127]: master_notify: status 0 > Jan 05 16:11:59 snape postfix/lmtp[127]: deliver_request_initial: send > initial response > Jan 05 16:11:59 snape postfix/lmtp[127]: send attr protocol = > delivery_request_protocol > Jan 05 16:16:59 snape postfix/lmtp[126]: smtp_get: timeout
The LMTP server did not respond with a 220 banner, and after 300s the Postfix lmtp delivery agent gave up. > Jan 05 16:16:59 snape postfix/lmtp[126]: send attr reason = conversation with > snape.rna.nl[private/lmtp] timed out while receiving the initial server > greeting > It seems dovecot doesn't react to whatever postfix is doing on the > socket. Another possibility is that the socket doesn't really work and > dovecot never gets a connection request. How can I debug this? > > Might I test if the socket is the problem by running lmtp on the > dovecot side on TCP on 127.0.0.1 and have postfix use that? Just to > see if it works? If so, how do I tell postfix to do that? In dovecot I > have added the tcp: > > service lmtp { > inet_listener lmtp { > address = 127.0.0.1 > port = 24 > } This is fine. > unix_listener /var/spool/postfix/private/lmtp { > mode = 0660 > user = postfix > group = postfix > } DO NOT do this! That socket is for the listen side of the qmgr<->lmtp communication. The Dovecot LMTP socket needs to be outside the Postfix-private namespace. -- Viktor.