Auteur: Marc Sherman Datum: Aan: exim-users Onderwerp: Re: [exim] mysql list expansion and sending via isp smtp server
Bo Mellberg wrote: >
> lve_alla:
> driver = redirect
> domains = lundsvokalensemble.org
> condition = ${if eq{$local_part}{alla} {yes}{no}}
> data = ${lookup mysql{select emailaddress from lve.members where
> members.active = 1}}
You could replace the condition with:
local_parts = alle
> lve_test:
> driver = manualroute
> domains = lundsvokalensemble.org
> condition = ${if eqi{$local_part}{test} {yes}{no}}
> data = ${lookup mysql{select emailaddress from lve.members where
> members.first
> name = 'bosse'}}
> transport = remote_smtp
> route_list = !+local_domains smtp.bredband.net
>
> Exim wouldnt start, since "data" is not an option for this driver.
You're trying to do two unrelated things with one router. Leave the
lve_alla router unchanged, and instead modify your dnslookup router to
use the manualroute to your smarthost. That way all remote-bound
messages, including but not limited to those redirected by the lve_alla
router, will go out through the smarthost.