Current time: 05-03-2024, 06:27 AM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Replace courier with dovecot
Author Message
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #43
RE: [HowTo] Replace courier with dovecot
(03-08-2010 02:42 AM)JCD Wrote:  The ispcp-dovecot-mngr script works very well, thanks for your work!
But I discovered a malfunction. If one user tries to login using his username in mixed upper and lowercase the script throws an "User not found" error. Say he enters Foo@bar.org, but in the database the mail address is saved as foo@bar.org, he cannot login. Outlook, Thunderbird and Squirrelmail don't convert the username to lowercase. Roundcube does.

To fix this issue, the username should be converted into lowercase before the database lookup takes place. Simply add the following after line 46 and it works:
Code:
$username =~ tr/A-Z/a-z/;

If you do that you should change:

mail_location = maildir:/var/mail/virtual/%d/%n
to
mail_location = maildir:/var/mail/virtual/%Ld/%Ln

(this should be changed anyway ;-))
03-08-2010 07:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HowTo] Replace courier with dovecot - rbtux - 03-08-2010 07:31 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)