Hello,
I've been trying to add some stuff to my exim.conf and am having trouble with some syntax. I spent quite a bit of time changing it, checking, reverting, changing, checking, reverting, but after a few hours it started to get monotonous.
I simply have a file /etc/newdomains
I want to check and see if the current domain thats sending is any of the domains in this list.
I currently have the line
transport=${if eq {$sender_address_domain} {DOMAINNAME}{remote_smtp_filter} {remote_smtp}}

to check just one domain

but it needs to be more like...

domainlist newdomains = lsearch;/etc/newdomains
transport=${lookup{$sender_address_domain} lsearch {$newdomains} {function1} {function2} }

but that wont work, nor will

transport=${lookup{$sender_address_domain} lsearch {/etc/newdomains} {function1} {function2} }

To check them all...
Any help on this would be greatly appreciated. Thanks!