lmtp usernames with -

Lazy lazy404 at gmail.com
Fri Dec 19 08:14:20 UTC 2014


2014-12-19 8:27 GMT+01:00 Lazy <lazy404 at gmail.com>:
> Hello
>
> I have a problem with lmtp delivery to usernames with '-' char.
> Everythong after - is ignored.
>
> when delivering to test-test2 the error message is.
>
> User doesn't exist: test
>
> I suspect this is a sideefect of auth_username_format = %Lu
>  I have tried %Ln without success.
>
> Imap works without problems for those users.
>
> How can I disable this mapping for lmtp and use verbatim username for lookup.
>
> Thanks in advance for any answers.

We are using lmtp proxing but the username is passed verbatim to
backend by the director.

the recipient was test_user-test2

on director

Dec 19 09:03:36 thebe2b dovecot: lmtp(12272): Debug: auth input:
user=test_user proxy=y nopassword=<hidden> port=24 host=10.0.100.21
proxy_refresh=450

on backend
Dec 19 09:03:36 dovecot1 dovecot: auth: Debug: master in:
USER#0111#011test_user#011service=lmtp#011lip=10.0.100.21#011lport=24#011rip=10.0.100.3#011rport=40001

but in the director sends full login to lmtp backend
RCPT TO:<test_user-test2>

auth_username_chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@

so it contains the - char


Michal Grzedzicki


More information about the dovecot mailing list