Re: [exim] alias file syntax check

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Chris Lightfoot
Fecha:  
A: John W. Baxter
Cc: exim-users
Asunto: Re: [exim] alias file syntax check
On Thu, Jun 15, 2006 at 11:53:06AM -0700, John W. Baxter wrote:
    [...]

> Or, alternatively, build the aliases file in a program which gets its data
> from some convenient database and leaves the syntax errors out of the
> generated file.


yeah, that might be nice, but we want to store the alias
files in revision control so that we have a useful change
history. We could build a database to do this, but CVS is
*right there*....

> Testing would be on a non-live server, I would think.


well, if you want to do the testing, it's relatively easy
-- stick all the alias files (in this case it's one per
domain) in a temporary directory, make a copy of the exim
configuration file which refers to that temporary
directory rather than the proper copy of it, then run
    exim -C /path/to/new/exim4.conf -bt ...
for each address defined in each of the alias files and
barf if any of the addresses are undeliverable. However,
I'm not sufficiently bothered to implement that.


--
``Last year, there were 45,000 fewer victims of crime
-- help us make it more this year.'' (advertisement by Birmingham Police)