[Dovecot] login with alias

Andrew Basterfield bob at cemetery.homeunix.org
Sun Oct 24 22:37:36 EEST 2004

On Sun, 24 Oct 2004 00:44:24 +0300
Gasha <cirvis at konts.lv> wrote:

> Hi all,
> i'm setting up mail server and here is the question:
> if, for example "firstname.lastname at domain.com" is e-mail address,
> then
> how can i setup login as "firstname.lastname" and "password" not only 
> "firstname".
> Of course, users want all things simple. But i don't want to use login
> names longer than 8 chars.
> Any ideas? Or should i try to create users as "firstname.lastname" in 
> /etc/passwd file ??

You could put both firstname and firstname.lastname as separate entries in /etc/passwd but with the same password/uid/gid/etc in both entries.

Always put in firstname before firstname.lastname so getpwnam() and getpwuid() always returns firstname. This is what NetBSD does with the 'toor' user (which is root but with bourne shell instead of 'c' shell).

Hope this helps


More information about the dovecot mailing list