Re: [Exim] Want soft failure when a file lookup fails

Pàgina inicial
Delete this message
Reply to this message
Autor: robert rotman
Data:  
A: Sheldon Hearn
CC: exim-users
Assumpte: Re: [Exim] Want soft failure when a file lookup fails
On Thu, 12 Jul 2001, Sheldon Hearn wrote:

>
> Hi folks,
>
> I have the following smtp_banner option in my main Exim configuration
> section for exim-3.31:
>
> smtp_banner = $primary_hostname ESMTP Exim \
>   ${lookup{$sender_host_address} \
>     lsearch* {/usr/local/etc/exim/bannerversion} \
>     {${expand:$value}}}

>
> The bannerversion file contains this line:
>
> *: [Test release]\r\nYou probably shouldn't be using this service.
>
> If the bannerversion file is absent (perhaps in some small window period
> during an update operation), the lookup fails and all incoming SMTP
> connections receive a 421 error as documented.
>
> I could use ${exist:/usr/local/etc/exim/bannerversion} to provide a
> partial solution to the problem, but this only narrows the window.
> Between testing for the existence of the file and trying to read it, it
> could still go away.
>
> So, is there a way to ensure that a non-existent file for an lsearch is
> treated as if the lookup failed (in this case, null expansion)?
>


I don't understand your question?
an 4xx error is a good choice for your problem.
the remote MTA will try again!

if you dont want this a symbolic link might help.


robert