Re: [exim] Condition on router to check if the destination o…

Top Pagina
Delete this message
Reply to this message
Auteur: Peter Bowyer
Datum:  
Aan: exim users
Onderwerp: Re: [exim] Condition on router to check if the destination of a message is to the same server (is in local_domains)
2010/9/8 Vaggelis Koutroumpas <evans@???>:
> Hello,
>
> I've created two routers with exim filters to log all incoming and outgoing sizes of emails so with a php parser I parse the log and create stats per user and per domain for the traffic they do.
>
> I want to set up a condition on the routers so that they will ignore any email if it originates and is destined to the same server.
>
>
> How can I check that? I suppose I have to create a condition that checks the $domain or $sender_address_domain respectively if it is in local_domains, right?
>
>
> Any ideas how to proceed?


Re-use whatever condition you have on the router that deals with local
deliveries. If that's simply 'domains = +local_domains' then you're
good to go....

Peter