[Dovecot] Combination of default domain and username character translation problem in POP3 server configuration
Hello,
I have a mail server running vm-pop3 and I am migrating it to Dovecot. I have a problem configuring Dovecot as a POP3 server only (I'm not interested in IMAP for now). I have two types of domains: one principal domain, whose users don't include the domain in the login process; and secondary domains, whose users include the domain part with the ! separator, instead of @ (i.e. prueba!mysecondarydomain.es). Because of that, I have set the following options in the configuration file:
auth_default_realm = myprincipaldomain.es auth_username_translation = !@
The combination of these two parameters produces the following effect when I login with an user of a secondary domain (I have no problem with principal domain authentication):
+OK Bienvenido al servidor de correo. user prueba!mysecondarydomain.es +OK pass prueba. -ERR Authentication failed. quit +OK Logging out
This is the resulting log:
Nov 19 09:58:51 prueba dovecot: auth(default): new auth connection: pid=21953 Nov 19 09:59:04 prueba dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=192.168.1.84 rip=192.168.17.13 resp=AHBydWViYSF0b2JhcnJhLmVzAHBydWViYS4= Nov 19 09:59:04 prueba dovecot: auth(default): passwd-file(prueba@mysecondarydomain.es@myprincipaldomain.es,192.168.17. 13): no passwd file: /etc/virtual/mysecondarydomain.es@myprincipaldomain.es/passwd Nov 19 09:59:05 prueba dovecot: auth(default): client out: FAIL 1 user=prueba@mysecondarydomain.es@myprincipaldomain.es
So, I think the problem is Dovecot tests if the default domain is needed before the character translation is done, so the character ! is not detected as a domain separator, so the default domain is always appended.
The question is how I could resolve this problem. I need these two operations to be done because there is a lot of users already working with this configuration.
Thank you in advance.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 19 Nov 2009, Vico wrote:
What's your configuration, dovecot -n ?
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSwUfPXWSIuGy1ktrAQJQdwgAgDXYD2a6/z/UERJDe77DFUVswu2/IEnv v5beC9I+/zXbSQxotLV1EWTXnOcmV/3OjHvqGzYcjWgOZauUCoq5s/kAhQPfptTA bPIvfyUE1I9SrsANzfkse5LfmzE8vXPqVkszSIRBY9sWDZCXL3VuWHufnWb+fRIz /y4nLz6/mo6ETMEK5kwI7B54pXcXINzo55dNJMIQXnl9w40cFTqkhKfCCYXHgx+o f03f/Qpz4DLo7Ap45/xaSWRj1Ve+6APxdhMicVt1rRx2DhrEbaDnNmd8z0tk9wsV 4UxUUyrNjQwYPj/0usu+069/dhzqGUiNshsop+2tYqogdWT6wlfBeQ== =zF+V -----END PGP SIGNATURE-----
Here is the configuration:
# 1.0.7: /etc/dovecot.conf protocols: pop3 listen: *:10100 login_dir: /var/run/dovecot/login login_executable: /usr/libexec/dovecot/pop3-login login_greeting: Bienvenido al servidor de correo. login_log_format_elements: user=<%u> method=%m rip=%r lip=%l %c domain=%d nombre=%d mail_location: mbox:~/mail:INBOX=/var/spool/virtual/%d/%n mail_debug: yes mail_executable: /usr/libexec/dovecot/pop3 mail_plugin_dir: /usr/lib/dovecot/pop3 auth default: default_realm: myprincipaldomain.es username_chars: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@! username_translation: !@ verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /etc/virtual/%d/passwd userdb: driver: static args: uid=500 gid=500 home=/var/spool/virtual/%d
-----Mensaje original----- De: Steffen Kaiser [mailto:skdovecot@smail.inf.fh-brs.de] Enviado el: jueves, 19 de noviembre de 2009 11:35 Para: dovecot@dovecot.org CC: dovecot@dovecot.org Asunto: Re: [Dovecot] Combination of default domain and username character translation problem in POP3 server configuration
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 19 Nov 2009, Vico wrote:
What's your configuration, dovecot -n ?
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSwUfPXWSIuGy1ktrAQJQdwgAgDXYD2a6/z/UERJDe77DFUVswu2/IEnv v5beC9I+/zXbSQxotLV1EWTXnOcmV/3OjHvqGzYcjWgOZauUCoq5s/kAhQPfptTA bPIvfyUE1I9SrsANzfkse5LfmzE8vXPqVkszSIRBY9sWDZCXL3VuWHufnWb+fRIz /y4nLz6/mo6ETMEK5kwI7B54pXcXINzo55dNJMIQXnl9w40cFTqkhKfCCYXHgx+o f03f/Qpz4DLo7Ap45/xaSWRj1Ve+6APxdhMicVt1rRx2DhrEbaDnNmd8z0tk9wsV 4UxUUyrNjQwYPj/0usu+069/dhzqGUiNshsop+2tYqogdWT6wlfBeQ== =zF+V -----END PGP SIGNATURE-----
participants (3)
-
Javier Vico Egea
-
Steffen Kaiser
-
Vico