Submitted by stan on Fri, 12/12/2014 - 09:30
We are migrating from Eudora Internet Mail Server (EIMS) which allows users to authenticate with an account user name of either name%domain.com or name@domain.com
Sadly, we have no idea which users are using which authentication format.
It would save a huge amount of customer and tech support disruption during our transition if we could figure a way for Virtualmin Postfix to accept either of the two formats. Possible?
Status:
Active
Comments
Submitted by JamieCameron on Fri, 12/12/2014 - 10:54 Comment #1
Virtualmin does support multiple username formats, such can be set at System Settings -> Server Templates -> Default Settings -> Mail for domain -> Format for usernames that include domain.
However, only one format is supported for each user - there is no way to create a user that can do an SMTP/IMAP login as both user@domain.com and user%domain
Submitted by stan on Wed, 12/24/2014 - 11:14 Comment #2
Jamie, this is great news that Virtualmin will support multiple user name formats! Eudora Internet Mail Server has reached End of Life according to developer Glen Anderson and many EIMS admins are looking for suitable alternatives and migration strategies. If my migration goes well, I will report our success with Virtualmin on the EIMS discussion list.
I understand that the same user cannot use multiple formats and accept that. It is great that the overall option is available to us, thank you!
Submitted by tomwiebe on Sun, 01/04/2015 - 22:25 Comment #3
Hi, I'm Stan's sysadmin. We're in the process of migrating his email to virtualmin using the suggestion above but, unfortunately, users with the username%domain setting in their server template are allowing login to usermin but, not to email. Getting the following error (after a lengthy delay):
An error occurred listing mail in this folder : Failed to login to POP3 server : [AUTHENTICATIONFAILED] Authentication failed.
The only error in the mail.log is:
Jan 4 22:06:55 eagle dovecot: imap-login: Disconnected (auth failed, 1 attempts in 10 secs): user=<tom%mailtest>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<PeeQ0d8LHwB/AAAB>
If I switch to user.domain or user@domain.dom formats, accounts created with those logins do work correctly.
Server is Ubuntu 14.04.1, latest and greatest Virtualmin Pro (1.730, installed today. Problem existed under the previous version as well)
I have used user%domain logins with virtualmin in the past on Ubuntu but, some time ago (I think with a 10.04 LTS server).
Tom
Submitted by JamieCameron on Mon, 01/05/2015 - 00:27 Comment #4
Looks like Dovecot doesn't handle % characters in usernames as expected. There must be some config option to allow this, but I wasn't able to find it :-(
Submitted by tomwiebe on Mon, 01/05/2015 - 10:07 Comment #5
Hmm. The dovecot wiki explicitly states that "nothing breaks" if using a % in usernames.
http://wiki2.dovecot.org/VirtualUsers
Submitted by JamieCameron on Mon, 01/05/2015 - 16:03 Comment #6
If there anything more useful in /var/log/mail*log or /var/log/secure or authlog that indicates why this is failing?
Submitted by tomwiebe on Fri, 01/09/2015 - 17:55 Comment #7
Hi Jamie,
Nothing is recorded in /var/log/auth.log and, there is no secure log (I don't believe Ubuntu uses that?). Unfortunately, nothing much in the way of useful information for debugging.
Submitted by JamieCameron on Sat, 01/10/2015 - 18:45 Comment #8
Hmm .. I am kind of out of ideas here, sorry. There isn't much we can do to debug issues internal to Dovecot :-(