Skip to main content

Exim config to route email to certain domains through another provider?

Comments

3 comments

  • cPanelLauren
    There are a great deal of threads on this subject already in the forums, for example:
    0
  • unco
    Hi Lauren, What I mean is to have @something.com be sent out through another server, even localhost. I do already have routing set up for entire domains to be routed out through a particular host or hosts, but, in this case it is the destination domain I want to route. If destined for something.com, send out through localhost or some other smarthost. Otherwise, send out through designated smarthost. I will do further research and try a few things. I'll let you know what I find. Thanks, B
    0
  • rackaid
    Within the confines of WHM's editor, I think you can use a static route. static_route: driver = manualroute transport = remote_smtp route_data = ${lookup{$domain}partial-lsearch{/etc/staticroutes}}
    Then in /etc/staticroutes you specify your route. bankdomain.com: SMARTHOST_IP You put this after the POSTMAILCOUNT section. See: EXIM relay only if recipient is at hotmail.com for more info.
    0

Please sign in to leave a comment.