[exim] Outbound Mail routing

Inizio della pagina
Delete this message
Reply to this message
Autore: Robert Walker
Data:  
To: exim-users
Oggetto: [exim] Outbound Mail routing
Good Day,

I am trying to setup routing for only outbound emails for a single
domain on a shared hosting environment using exim for emails
(obviously).

The emails are to be filtered through a service called/with mimecast
and I have managed to have the inbound emails filtered to their
servers and then sent to the hosting server without any problems
however I have tried the configuration I quoted below from the cpanel
forums which created an infinite loop between mimecast and the hosting
server causing the emails to be rejected and the outbound emails still
was not sent via the mimecast service.

[QUOTE=cPanelTristan;877171]You could do the following. First, you
would need to create a file /etc/staticroutes and then input the
domains with the IPs they would be routing to off the server:

[code]domain.com1: mail.location1.com (the MX record pointing to the
off site server)
domain.com2: mail.location2.com (the MX record pointing to the off
site server)[/code]

[code]static_route:
driver = manualroute
transport = remote_smtp
route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}[/code]

[/QUOTE]

I have also tried the following 2 pieces of code that have failed to
have the outbound mail sent to the mimecast server to be sent out:

[code]smart_route:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}[/code]


and

[code] smart_route:
driver = manualroute
domains = domain.tld //obviously removed the domain address
transport = remote_smtp
route_list = * mail74.mimecast.co.za[/code]

The remote server with mimecast has been setup to accept connections
from the server via port 25 which I have tested through telnet.

If anyone has had to setup the same thing and could let me know where
I am going wrong and/or point me in the right direction that would be
great.

Thank you
- Robert Walker