On 1 Nov 2006, at 19:25, Martijn Grendelman wrote:
>>>> require verify = sender
>>>> log_message = DENY - Sender verification failed
>>>>
>>>> but this line is written for all messages that pass through
>>>
>>> Are you sure? log_message text is supposed to be written to the
>>> log only when an ACL verb denies access, or if all conditions of
>>> a warn statement are true (but since you put log_message after
>>> the condition, it won't be reached in that case; processing of a
>>> statement stops as soon as the outcome is known.)
>> No, I am sorry, I mixed things up, because I was writing this
>> message and changing my config at the same time.
>> In fact, I had
>> logwrite = DENY - Sender verification failed ($sender_address)
>> when I saw these messages in the log about sender addresses that
>> actually passed sender verification (or should have, anyway). I
>> changed it to log_message later.
>
>
> Let me rephrase my question.
>
> I would like to something like:
>
> require condition = ${...}
> logwrite = Failure message
Does
require condition
log_message = Failure message
Work ?
logwrite is more for debugging things than logging.
>
> but I want the log line to be written only when the ACL denies, so
> when the condition fails.
>
> Is that possible? If yes, how?
>
> Thanks,
> Martijn.
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/