Re: [exim] Router conditional on source IP

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Bowyer
Datum:  
To: exim users
Betreff: Re: [exim] Router conditional on source IP
On 04/10/05, Jason L Tibbitts III <tibbs@???> wrote:
> In Exim 4.52, is there any way to have different routers used
> depending on whether the mail came from localhost or some remote IP?
>
> I need to make sure that system reports and such generated locally on
> a host are sent out for alias expansion and not delivered locally,
> while mail coming in from the network that has already undergone
> filtering and alias expansion is delivered normally.


You could test $sender_host_address in a router condition, such that
the router only triggers if the sender host is localhost...

eg

somerouter:
...
condition = ${if eq {$sender_host_address}{127.0.0.1}}
...

Adjust to suit.

Peter

--
Peter Bowyer
Email: peter@???
Tel: +44 1296 768003
VoIP: sip:peter@???