3 years ago (!) I aksed about this and finally I implemented it today:
# NEW passdb { driver = passwd # firstname.lastname@charite.de:password:uid:gid:(gecos):home:(shell):user=realloginname args = /usr/local/etc/dovecot.login_via_email }
If you're only using it as a passdb, you don't need the uid/gid/home. So an example field would be:
firstname.lastname@charite.de:password::::::user=realloginname
But now I'm encountering problems with users writing
Firstname.Lastname@charite.de instead of firstname.lastname@charite.de (capitalized first letters)
How can I "normalize" the usernames by lowercasing them?
The coolest solution would be to strip realms AND force lowercasing of usernames in one pass
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de