Re: [exim] alias file syntax check

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: John W. Baxter
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] alias file syntax check
On 6/15/06 7:28 AM, "Christian Schmidt" <christian@???> wrote:

> Hello Tony,
>
> Tony Finch, 15.06.2006 (d.m.y):
>
>> On Thu, 15 Jun 2006, Chris Lightfoot wrote:
>>
>>> I would like to check the syntax of an alias file (as read
>>> by the redirect router) in a script, before replacing the
>>> live alias file which exim reads. I can't see an easy way
>>> to call exim to do this -- should I give up and just do a
>>> simple syntax check within my script, or have I missed
>>> something?
>>
>> You are right, there isn't a convenient way of doing this.
>
> Well, I would try it with a "tuned" startup script that does the
> following:
> 1. Check the syntax of the aliases file (maybe by invoking another
>    script)
> 2. Replace the "live" alias file with the checked one
> 3. fire up exim


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.

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

--John