On 19 Nov 2015, at 17:05, sfault@??? wrote:
> 1.All outgoing mails, that contain our domain example.com as recipient,
> should be allowed to be send to our smarthot
> 2.All outgoing mails, that do not contain our domain example.com as
> recipient, should be redirected
>
> The following router snippet works for the redirection task.
> After 5 days of research, try and error, Im still not able to add a
> dedicated router for the example.com domain or to
> write an exception rule for the catch all redirect below:
>
> catch_all_outgoing:
> driver = redirect
> data = collector@???
example_com:
driver = manualroute
domains = example.com
transport = remote_smtp
route_data = your.smart.host
everything_else:
driver = redirect
data = collector@???
domains = !example.com
You could vary the order, but the conditions mean email destined for example.com will only hit the first one, everything else the second.
Graeme