ikearns wrote:
> Hi there
> 
> I am looking at modifying our current Exim (4.63) server to route all
> outbound emails, when sent from a specific sender address, to be delivered
> direct from the server by DNS MX lookup rather than smarthost or manualroute
> (which is our other ways of mail delivery)
> 
> Can anyone help me get started?

Before your smarthost and manualroute routers:

dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  condition = ${if match_ip{$sender_host_address}{iplsearch;/some/file}}
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more


and the transport:

remote_smtp:
  driver = smtp


The /some/file can contain ip's and CIDR net defintions.

Untested, but I think that'll do the job

Regards

D.

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to