Re: [exim] event_action: one wish and one question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] event_action: one wish and one question
On 15/06/15 11:46, Marcin Mirosław wrote:
> I wrongly configured event_action, I used too levels of brackets:
> event_action = ${if eq {msg:delivery}{$event_name} { {${lookup
> pgsql{SQL_POCZTA_WYCH}}} } }
>
> I added those line in transport. And then in main log I got:
> 2015-06-14 23:47:32 1Z4FfI-00048y-FX == aaaaaa@???
> R=dnslookup_batv T=external_smtp_batv defer (2): No such file or directory
>
> I spent a couple of minutes to find out what was the reason of this.
> Could it be possible to add some more information to logged information
> that this error comes from event_action?


I'll have a think on that.

> I'd like to use more than one action in event_action (I'd like to insert
> tuple into database and add line to log, probably using
> perl{Exim::log_write}). What is correct syntax to have multiple actions
> in event_action?


Use an acl expansion, and do whatever sequence you want in the acl.
--
Cheers,
Jeremy