Allowing both @ and % in email user names

We are migrating from Eudora Internet Mail Server (EIMS) which allows users to authenticate with an account user name of either or

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?



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 and user%domain

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!

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=, lip=, 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).


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 :-(

If there anything more useful in /var/log/mail*log or /var/log/secure or authlog that indicates why this is failing?

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.

Hmm .. I am kind of out of ideas here, sorry. There isn't much we can do to debug issues internal to Dovecot :-(