Re: [exim] smarthosts & sender_verification

Top Page
Delete this message
Reply to this message
Author: exim-users
Date:  
To: Chris Knipe
CC: exim-users
Subject: Re: [exim] smarthosts & sender_verification
Chris Knipe schrieb:

> Lo all,
>
> We use allot of smarthosts to relay all our incoming / outgoing mail
> through dedicated servers (mostly for spam / virus / etc).
>
> Sometimes, not all of the servers will be available, they might for
> example be in the process of restarting due to a policy change in the
> configuration.
>
> Is there a way to use a smarthost as a email "gateway", but to NOT use
> the smarthost as a gateway for sender verification?
>
> Basically, something like
>
> routers:
> spam_gateway:
> driver = manualroute
> condition = "${if eq {$interface_port}{10025} {0}{1}}"
> transport = spam
> route_list = "* spam.host.name byname"
> self = send
>
> sender_verify:
> driver = dnslookup
> domains = !+local_domains
> ignore_target_hosts =
> 0.0.0.0/8:10.0.0.0/8:172.16.0.0/12:192.168.0.0/16:127.0.0.0/8: \
>
> 169.254.0.0/16:192.0.2.0/24:192.88.99.0/24:224.0.0.0/4:240.0.0.0/4
> no_more
> transport = remote_smtp
>
> So based on the above, I want all actual MAIL to go to spam_gateway, but
> I want to use dnslookup for sender_verification....


Hi Chris,

just add no_verify to your spam_gateway router and verify_only to your
sender_verify router. That should do the trick.

HTH,
Patrick