Making exim "assume" a host for logins

flamewalker

Verified User
Joined
Aug 21, 2007
Messages
64
http://help.directadmin.com/item.php?id=125

I ended up having to recompile from source, and modified the Makefile to add AUTH_DOVECOT=yes, then compiled.

Then modified the dovecot.conf and exim.conf files so exim uses dovecot for authentication.

http://wiki.dovecot.org/HowTo/EximAndDovecotSASL

Dovecot was then configured to "assume" a username is @mydomain.com if no domain is entered in the username. I added "auth_default_realm = mydomain.com" to /etc/dovecot.conf, and restarted exim and dovecot.

http://wiki.dovecot.org/MainConfig#A...tion_processes

Hope this helps someone else in the future. I know this is not necessarily a common thing to do, but may help someone else in the future who is trying to migrate email services from a legacy server! Our old in-house one did this with sendmail, so in order to not have to call a few hundred customers to change their username to add @mydomain.com to their username, I came up with this solution.

This solution allows users to log in to webmail, pop, or smtp with just their username, and it tries [email protected]. Our other hosted customers with their own domains will still have to log in with their full email address, but our primary email domain users won't

:D
 
Back
Top