[Date Prev][Date Next] [Chronological] [Thread] [Top]

reordering email aliases ?


I'm facing a cosmetic problem with email aliases.

Some users has aliases for their email adresses some has not.

For example a professor named Jean Dupont has two valid email adresses :

dupontj@domain.tld         ( which is  unixlogin@domain.tld )
j.dupont@domain.tld ( which is the alias that point to duponj@domain.tld )

Students have only one email adress of the form : unixlogin@domain.tld

In many applications we use LDAP to fetch the user's email address and other data.

The problem is sometime we get unixlogin@domain.tld and sometime we get emailalias@domain.tld

I would like to do the following :

if a user has an alias of the form emailalias@domain.tld then display it first

Is it possible to reorder my LDAP database to do so ?

Thanks a lot  !