[Dovecot] Port variable in LMTP userdb lookups?

Timo Sirainen tss at iki.fi
Fri Nov 4 23:56:04 EET 2011


On Thu, 2011-10-20 at 12:38 +0300, Mark Zealey wrote:

> I'm currently changing some systems to use the redirector service, which 
> means that to get local deliveries going I need to get lmtp set up so it 
> can be redirected as well. This is working fine, however we have a 
> number of different ports running on our servers depending on which 
> brand a customer is using. When the time comes to do the user look up, 
> we use (port, user, domain) to do a unique database lookup which works 
> fine for everything (proxied pop, imap, lmtp & straight pop, imap) but 
> not straight lmtp - perhaps because it doesn't have a 2-stage login 
> process unlike the pop/imap protocols. Looking at the SQL query we are 
> issuing, the %a port variable is set to 0 even though the connection is 
> coming in from TCP. Is there a way to change this? We are running 
> dovecot 2.0.12 however looking through the changelogs I can't see this 
> would be fixed in the newest version.

A quick check in code shows that this is already supposed to work. Set
auth_debug=yes and see if LMTP's auth lookup sends lip, rip, lport and
rport fields to auth process?





More information about the dovecot mailing list