Συντάκτης: W B Hacker Ημερομηνία: Προς: exim users Αντικείμενο: Re: [exim] How to invoke an Exim Filter from an alias file?
Florian Laws wrote:
> Philip Hazel wrote:
>
>
>>>I there a way to "invoke" an Exim Filter File from an alias file?
>>
>>No, but you can call it from a redirect router.
>
>
> Oh, I meant that the redirect router should pull it from the alias file. :)
*snip*
No need to set up a 'filter'.
What you want to do works fine in an ordinary router/transport 'set'
that seeks info from <wherever Exim has been told to look for it>
Here is an 'in production' example that might be more easily adapted.
We use it where an ordinary-looking $local_part *happens* to actually be a
mailing list for which the MLM needs a kick-start from a script.
Note that this happens to use an 'accept' in the router and a 'pipe' in the
transport, neither a filter nor a redirect. There are usually several ways to
get to Rome with Exim.
+ml_domains is a 'dsearch-built' adaptable domainlist of the form:
# ROUTE_3A ECARTIS: Handle Ecartis 'master/catchall'.
#
ecartis:
driver = accept
domains = <specific domain> : +ml_domains
# some flexibility here... could also be a lookup or an SQL select
local_parts = ecartis
transport = ecartis_pipe