Auteur: Zbigniew Szalbot Datum: Aan: exim-users Onderwerp: Re: [exim] a no-local-delivery router for a specified host
Hello,
>> If so, can you give me any hints how to write a router which for one
>> defined host never checks if the email is to be delivered locally?
>
> new_router:
> driver = dnslookup
> condition = ${if match_ip{$sender_host_address}{1.2.3.4}}
> transport = <your remote_smtp transport>
>
> Or something similar - put this above the 'expensive' routers. Bad
> things will happen if your assertion that 'this host's mail is always
> remote' fails.
Thank you very much! This was exactly what was needed! As you say, it
leads to chaos if the delivery ougth to be local but luckily I have means
ensuring this never happens.