[Dovecot] POP3 Proxy : user format not accepted
Hello,
I want to use Dovecot as a POP3 proxy (http://wiki.dovecot.org/HowTo/ImapProxy). All is working fine on my sample platform, except that I have plenty (several thousands) of users that login using local_part#domain, instead of local_part@domain, which is an old setting on my POP3 server. And in that case, Dovecot returns 'Authentication failed'.
Here is my proxy table :
mysql> select * from tbl_proxy; +--------------------+-------------+--------------------+ | user | host | destuser | +--------------------+-------------+--------------------+ | christian@mydom.fr | 10.10.100.1 | christian@mydom.fr | | christian#mydom.fr | 10.10.100.1 | christian@mydom.fr | +--------------------+-------------+--------------------+
If I login on the Dovecot proxy with the '@' version, everything is fine :
root : ~> telnet 10.10.100.24 110 Trying 10.10.100.24... Connected to 10.10.100.24 (10.10.100.24). Escape character is '^]'. +OK Dovecot ready. user christian@mydom.fr +OK pass azerty42 +OK christian#mydom.fr has 3 messages (3561 octets)
And MySQL logs show the query :
121030 12:55:28 3 Query SELECT NULL AS password, host, destuser, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS proxy, 'Y' AS nopassword FROM tbl_proxy WHERE user = 'christian@mydom.fr'
If I login on the Dovecot proxy with the '#' version, it fails :
root : ~> telnet 10.10.100.24 110 Trying 10.10.100.24... Connected to 10.10.100.24 (10.10.100.24). Escape character is '^]'. +OK Dovecot ready. user christian#mydom.fr +OK pass azerty42 -ERR Authentication failed.
And nothing shows up the the MySQL logs.
If I login directly on the POP server with the same credentials, no problem :
root : ~> telnet 10.10.100.1 110 Trying 10.10.100.1... Connected to 10.10.100.1 (10.10.100.1). Escape character is '^]'. +OK Welcome to POP3 Server V 2.06. Authenticate yourself. user christian#mydom.fr +OK Password required for christian#mydom.fr pass azerty42 +OK christian#mydom.fr has 3 messages (3561 octets)
Any idea ? Is the '#' not internally supported in the user login by Dovecot ?
Thanks in advance.
Christian
Indeed, I set its value to empty to allow all characters and it now works.
Thanks a lot Timo.
De : Timo Sirainen tss@iki.fi À : Christian Gregoire cgregoir99@yahoo.com; Dovecot Mailing List dovecot@dovecot.org Envoyé le : Mardi 30 octobre 2012 14h08 Objet : Re: [Dovecot] POP3 Proxy : user format not accepted
On 30.10.2012, at 14.01, Christian Gregoire wrote:
Any idea ? Is the '#' not internally supported in the user login by Dovecot ?
See auth_username_chars setting.
participants (2)
-
Christian Gregoire
-
Timo Sirainen