I have a mail server set up on a Debian 7.2 machine running Dovecot 2.1.7 and Postfix 2.9.6. I have both Dovecot and Postfix set up to load virtual users from a database populated by Postfixadmin.
Currently the mailboxes are stored at /var/mail/example.com/username
for each user for each domain, and Dovecot (IMAP) requires the full [email protected]
to be given for authentication.
Would it be at all possible to add the ability to add alternative logins for certain e-mail addresses? Such as being able to login with admin
instead of [email protected]
?
Dovecot: Adding missing domain to login
Have you tried to use auth_default_realm configuration option to fill missing domain?
http://wiki2.dovecot.org/DomainLost
It's possible. I'm assuming that in this case, the mailbox will be at a different directory than for the domain users?
You would need to add that user to the userdatabase, and make sure that the MailLocation field points to the right place.
There's some more information about the userdatabase at the dovecot wiki.
This is the best solution I found so far.
As @AnFi mentioned, you have to append or edit /etc/dovecot/dovecot.conf file with
Please refer this like for more information https://docs.iredmail.org/authenticate.without.domain.name.html