Re: [exim] acl_smtp_data header_sender not using log_message

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Mike Sturdee
CC: exim-users
Sujet: Re: [exim] acl_smtp_data header_sender not using log_message
On Wed, 17 Nov 2004, Mike Sturdee wrote:

> I am trying to set a custom log message upon failing verification of the
> header_sender in the smtp_data acl, but when verification is deferred, it
> ignores mine and
> uses the "stock" error message.


> deny    !verify = header_sender
>    log_message = There must be a valid sender address in the headers: RCPTS
> $recipients
>    message     = There must be a valid sender address in the headers


Exim stops evaluation as soon as it knows the answer.
Put the log_message and message lines BEFORE the verify= line.

See the last part of section 38.10 in the manual.


-- 
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