On 2012-09-07 at 08:37 +0200, Robert Walker wrote: > I added the code that you supplied and it did forward the emails to > the mail server mail74.mimecast.co.za unfortunately to also forwarded > all the outbound emails for the rest of the domains on the server as > well which were rejected as those wee not authorized to send through > mail74.mimecast.co.za
I may have misunderstood what mails are expected to flow where, then. > Just a question, If I were to specify a new domain list at the start > of the exim.conf file like so: > > domainlist mimecast_domains = lsearch;/etc/mimecastdomains > > With the domain listed in the 'mimecastdomains' file and then change > the code you supplied to the following: > > smarthost: > driver = manualroute > domains = !+mimecast_domains > route_data = mail74.mimecast.co.za > transport = remote_smtp > no_more > > Would this then theoretically only route the outbound emails for the > domain listed in the 'mimecastdomains' file? You want to drop the "!" which is used for negation. "domains = +mimecast_domains". If you have that first, and then a dnslookup Router for "!+local_domains", then I think you'll get what you want. -Phil -- ## List details at https://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/
