[Dovecot] Dovecot and CAPITALISATION = grrrr ;-(
Hello,
As far as I'm aware, email is case insensitive ?
Dovecot however, seems to be taking offence at the fact that someone is sending mail to user@SOMEDOMAIN.XYZ.
Postfix has no issues handling it, it when it gets passed over to Dovecot LMTP that I get log lines such as :
Sep 17 13:48:22 ukc-vm02-mx01 dovecot: auth: passwd-file(user@SOMEDOMAIN.XYZ): unknown user
However user@somedomain.xyz *DOES* exist in the passwd file. Just not with a capitalised domain !
I am confused.
Ben
On 09/18/2013 09:43 AM, Ben wrote:
Hello,
As far as I'm aware, email is case insensitive ?
Dovecot however, seems to be taking offence at the fact that someone is sending mail to user@SOMEDOMAIN.XYZ.
Postfix has no issues handling it, it when it gets passed over to Dovecot LMTP that I get log lines such as :
Sep 17 13:48:22 ukc-vm02-mx01 dovecot: auth: passwd-file(user@SOMEDOMAIN.XYZ): unknown user
This is an IMAP username that seems to be formatted similar to an e-mail address because your setup is built like that. Usernames (IMAP or otherwise) and passwords are not part of any email spec, but checking them case-sensitive sounds like a good idea in general.
You should make sure that the username string used by dovecot-auth is formatted according to what your setup dictates (i.e. probably all lowercase). Probably you need something along the lines of:
userdb { driver = passwd-file args = username_format=%Lu /path/to/file }
See http://wiki2.dovecot.org/AuthDatabase/PasswdFile and http://wiki2.dovecot.org/Variables
Regards, Tom
On 18/09/2013 09:02, Tom Hendrikx wrote:
On 09/18/2013 09:43 AM, Ben wrote:
Hello,
As far as I'm aware, email is case insensitive ?
Dovecot however, seems to be taking offence at the fact that someone is sending mail to user@SOMEDOMAIN.XYZ.
Postfix has no issues handling it, it when it gets passed over to Dovecot LMTP that I get log lines such as :
Sep 17 13:48:22 ukc-vm02-mx01 dovecot: auth: passwd-file(user@SOMEDOMAIN.XYZ): unknown user
This is an IMAP username that seems to be formatted similar to an e-mail address because your setup is built like that. Usernames (IMAP or otherwise) and passwords are not part of any email spec, but checking them case-sensitive sounds like a good idea in general.
You should make sure that the username string used by dovecot-auth is formatted according to what your setup dictates (i.e. probably all lowercase). Probably you need something along the lines of:
userdb { driver = passwd-file args = username_format=%Lu /path/to/file }
See http://wiki2.dovecot.org/AuthDatabase/PasswdFile and http://wiki2.dovecot.org/Variables
Regards, Tom
Thanks Tom, will try !
On 18.9.2013, at 11.02, Tom Hendrikx tom@whyscream.net wrote:
On 09/18/2013 09:43 AM, Ben wrote:
Hello,
As far as I'm aware, email is case insensitive ?
Dovecot however, seems to be taking offence at the fact that someone is sending mail to user@SOMEDOMAIN.XYZ.
Postfix has no issues handling it, it when it gets passed over to Dovecot LMTP that I get log lines such as :
Sep 17 13:48:22 ukc-vm02-mx01 dovecot: auth: passwd-file(user@SOMEDOMAIN.XYZ): unknown user
This is an IMAP username that seems to be formatted similar to an e-mail address because your setup is built like that. Usernames (IMAP or otherwise) and passwords are not part of any email spec, but checking them case-sensitive sounds like a good idea in general.
You should make sure that the username string used by dovecot-auth is formatted according to what your setup dictates (i.e. probably all lowercase). Probably you need something along the lines of:
userdb { driver = passwd-file args = username_format=%Lu /path/to/file }
Easiest that works with all passdbs and userdbs is:
auth_username_format = %Lu
This has also been the default since .. v2.1 I think.
Am 18.09.2013 09:43, schrieb Ben:
As far as I'm aware, email is case insensitive?
yes, the localpart in theory is, but only fools would configure me@exacmple.com and ME@example.com for different users because it doe snot work in the real world
Dovecot however, seems to be taking offence at the fact that someone is sending mail to user@SOMEDOMAIN.XYZ. Postfix has no issues handling it, it when it gets passed over to Dovecot LMTP that I get log lines such as :
Sep 17 13:48:22 ukc-vm02-mx01 dovecot: auth: passwd-file(user@SOMEDOMAIN.XYZ): unknown user
However user@somedomain.xyz *DOES* exist in the passwd file. Just not with a capitalised domain ! I am confused
RTFM
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@% auth_username_translation = %@AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz
On 18/09/2013 09:23, Reindl Harald wrote:
Am 18.09.2013 09:43, schrieb Ben:
As far as I'm aware, email is case insensitive?
yes, the localpart in theory is, but only fools would configure me@exacmple.com and ME@example.com for different users because it doe snot work in the real world
Dovecot however, seems to be taking offence at the fact that someone is sending mail to user@SOMEDOMAIN.XYZ. Postfix has no issues handling it, it when it gets passed over to Dovecot LMTP that I get log lines such as :
Sep 17 13:48:22 ukc-vm02-mx01 dovecot: auth: passwd-file(user@SOMEDOMAIN.XYZ): unknown user
However user@somedomain.xyz *DOES* exist in the passwd file. Just not with a capitalised domain ! I am confused
RTFM
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@% auth_username_translation = %@AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz
If I knew what I was looking for in TFM, I would have R'd it ;-)
participants (5)
-
Ben
-
Benny Pedersen
-
Reindl Harald
-
Timo Sirainen
-
Tom Hendrikx