Re: [exim] ACL/Router

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jakob Hirsch
Datum:  
To: exim
Betreff: Re: [exim] ACL/Router
Paulo Andre wrote:

> I have read in the manual that you can also put a filter in 'data'
> eg: data = #Exim filter\n\
>          if $h_to: contains {mysql query} then deliver 
> user3@??? endif

>
> Can a sql statement work in exim filter?


Don't know, but anyway, this is ugly and I would not use a filter for
something that can be done easily inside a router or with a ACL.

>     deny     message = user unknown
>              domains = acc.darkstar.nom.za
>               !sender_domains = +acc_domains   


Should work. But you want this only be done for special local parts, so
add a local_parts condition.