Re: [exim] exim and firstname.lastname

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Pauli Suikka
CC: exim-users
Assumpte: Re: [exim] exim and firstname.lastname
On Thu, 2 Dec 2004, Pauli Suikka wrote:

> Uh sorry for inaccurate question. Aliases file works. But maintaining aliases
> file for ~1000 accounts is quite a job. Now I have shell script that generates
> aliases file.
>
> I am trying to get automatic gecos field recognition to work.


With 1000 accounts, you will get better performance if you use a shell
script (which can be run automatically as a cron job) to build an
indexed alias file of some sort, e.g. a cdb file. Linear searches can be
slow on large files.

There is no facility for automatic gecos field recognition in Exim. You
can lsearch the passwd file for the login id, but not for any other
field. So you have to extract the data into something that Exim can
search. Doing this blindly doing this seems a bad idea. Surely you would
want to weed out the gecos fields for entries such as bin, daemon, etc?

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book