Add the passdb entry inside
protocol lmtp {
}
Aki
On 16/12/2019 10:32 Marc Roos < m.r...@f1-outsourcing.eu> wrote:
I added this:passdb {driver = passwdskip = authenticated}
Which enables indeed local delivery, I also noticed this. Maybe thepassword field check shoud not be done, when you enable skipauthentication?
Dec 16 10:26:37 svr1 dovecot: auth-worker(12046): Debug: passwd(test):lookupDec 16 10:26:37 svr1 dovecot: auth-worker(12046): passwd(test): invalidpassword field '*'
-----Original Message-----From: Aki Tuomi [mailto: aki.tu...@open-xchange.com]Sent: 16 December 2019 06:22To: Marc Roos; dovecotSubject: Re: Local lmtp proxy on backend server
On 15/12/2019 23:09 Marc Roos < m.r...@f1-outsourcing.eu> wrote:
I receive a local mail when I do a 'mail test' on a backend svr1withthis[0] configuration. However when I just add only oneconfigurationchange 'lmtp_proxy = yes' I am getting these errors[1]. I wouldexpectthis email to still be delivered locally, should this be working ordo Imisunderstand the lmtp proxy functionality?
[0]passdb {args =auth_verbose = defaultdefault_fields = proxy=y host=svr1deny = nodriver = pam
[1]Dec 15 23:28:48 svr1 dovecot: lmtp(9270): Debug: none: root=,index=,indexpvt=, control=, inbox=, alt=Dec 15 23:28:48 svr1 dovecot: lmtp(9270): Connect from localDec 15 23:28:48 svr1 dovecot: auth: Debug: master in:PASS#0111#011test#011service=lmtpDec 15 23:28:48 svr1 dovecot: auth: Debug: pam(test): passdbdoesn'tsupport credential lookupsDec 15 23:28:48 svr1 dovecot: auth: Debug: passdb out:FAIL#0111#011reason=Configured passdbs don't support credentialslookupsDec 15 23:28:48 svr1 dovecot: lmtp(9270): Debug: user test: AuthPASSlookup returned temporary failure: reason=Configured passdbs don'tsupport credentials lookupsDec 15 23:28:48 svr1 dovecot: lmtp(9270): Debug: auth PASS input:reason=Configured passdbs don't support credentials lookups
dovecot-pigeonhole-2.2.36-3.el7_7.1.x86_64dovecot-2.2.36-3.el7_7.1.x86_64
PAM does not support looking up users, so you cannot use it for LMTPproxying. Try adding
passdb {driver = passwdskip = authenticated}
after PAM block.---Aki Tuomi
--- Aki Tuomi