Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Make Dovecot Strip Realm
Easily the most common mail configuration error I've seen is for users to send 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.

Messages In This Thread
How To Make Dovecot Strip Realm - Nanook - 11-18-2013, 12:45 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Make Windows 8 Less Ugly Nanook 0 9,599 04-16-2014, 08:10 AM
Last Post: Nanook

Forum Jump:

Users browsing this thread: 1 Guest(s)