[exim] Smarthost both complete domain or per specific email …

Top Page
Delete this message
Reply to this message
Author: Hermes Mauricio López
Date:  
To: exim-users
Subject: [exim] Smarthost both complete domain or per specific email address
Hello there, I have been digging around how to forward email to second
email server, I have had success on either relaying for a complete
domain with this instruction:

route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}

or per specific email with this one:

route_data = ${lookup{$local_part@$domain}lsearch{/etc/staticroutes}}

However what I need is to be able to use both at same time, so that my
staticroutes file could be like this:

user@??? 1.2.3.4
domain2.com            2.3.4.5


I have tried with: "partial-lsearch", ";" and "+" combinations of both
instructions, but so far nothing has worked for me.

Would you mind giving me a hint of what am I missing?

Thank you in advance.

Hermes.