Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Make Dovecot Strip Realm
11-18-2013, 12:45 PM
Post: #1
How To Make Dovecot Strip Realm
Easily the most common mail configuration error I've seen is for users to send user@eskimo.com as their username instead of just user.

Until recently this has been resolved by the user changing their configuration, however, recently I had an ATT mobile customer whose phone automatically attached the realm and apparently provided no option to send just the username on an imap or pop-3 login.

I Googled for a solution but didn't find a reasonable one. One person went so far as to make a patch to Dovecot but it also stripped the realm off in other contexts where it wasn't desirable to do so.

I found the solution, in all places, in Dovecot docs. Simply making the following change in 10-auth.conf:

Change: auth_username_format = %Lu
To: auth_username_format = %Ln

The 'L' tells Dovecot to fold the login to lower case, the 'u' is the full username including the domain, the 'n' is just the username.
Quote
12-31-2013, 09:35 PM
Post: #2
RE: How To Make Dovecot Strip Realm
wow, an opensource type of project that has decent documentation! Smile
i'll check it out to see if they have anything on doing an in place replacement of uw-imap.
Quote
01-07-2014, 05:23 AM
Post: #3
RE: How To Make Dovecot Strip Realm
This is exactly what I did with it, replace uw-imap.

The only problem I ran into is with mailbox path mapping. Uw-imap exposes the entire users home directory whereas Dovecot only exposes
the mail directory.

For uw-imap clients had to configure a path of "/mail" into their e-mail clients. With Dovecot it was necessary to remove the path or just change it to "".

Dovecot behaves better than uw-imap in so many ways. The biggest is that it handles multiple simultaneous sessions. It also supports both pop and imap, so the Qualcomm popper we used to run is no longer necessary.

Where uw-imap makes a copy of the mailbox and works out of that, Dovecot memory maps it. For large mailboxes like we have here, this is much more efficient.
Quote


Forum Jump:


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