Re: [exim] Where event msg:fail:delivery appears?

Inizio della pagina
Delete this message
Reply to this message
Autore: Jeremy Harris
Data:  
To: exim-users
Oggetto: Re: [exim] Where event msg:fail:delivery appears?
On 28/03/17 15:45, marcin@??? wrote:
> msg:fail:delivery      after    main        per recipient

>
> Do I correctly understand that action which uses msg:fail:delivery
> should be defined at main config level? I'm asking because I suspect
> that it's happens at transport level.


It uses the transport definition. I'll fix the docs.

> Additional question, how create pretty config for more than one type of
> event? I mean I'd like to to some action when msg:delivery happens and
> msg:rcpt:defer.


I do things like:

log_deliv:
  warn  condition =     ${if eq {tls:cert} {$event_name}}
         acl =          cert_chk


  warn  condition =     ${if eq {tcp:connect}{$event_name}}
        condition =     ${if bool{$lookup_dnssec_authenticated}}
        logwrite =      $host: TLSA \
                            ${lookup dnsdb {defer_never,tlsa=\
                                _$host_port._tcp.$host} \
                            {$value}{none}}
  accept


...

 transport_xxx:
    event_action =        ${acl {log_deliv}}