Re: [exim] Router to handle message based on MX

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Doug
CC: exim-users
Subject: Re: [exim] Router to handle message based on MX
On Wed, 2 Feb 2005, Doug wrote:
>
> This will halt a problem we currently have whereby some locally generated
> email stays local without ever going out to be scanned.


I don't think you need to look at the message header or the DNS.
How about:

# main configuration

ACL_NOT_SCANNED = acl_c0

hostlist asav_hosts = *.asav.example

# ...

begin acl

# ...

  warn
    set ACL_NOT_SCANNED = yes
    hosts = +asav_hosts
    set ACL_NOT_SCANNED = no


# ...

begin routers

# firts router sends it to the AS/AV company if it didn't come from there.
# you might want to change +local_domains if not all your domains are
# handled by the AS/AV company

to_asav:
driver = manualroute
no_verify
domains = +local_domains
condition = $ACL_NOT_SCANNED
route_data = whatever.asav.example
host_find_failed = defer

# followed by the rest of your routers

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}