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 |
++-++
| christ...@mydom.fr | 10.10.100.1 | christ...@mydom.fr |
| christian#mydom.fr | 10.10.100.1 | christ...@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 christ...@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 = 'christ...@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