Route via smarthost - also local domains

eitanc

Active Member
Jan 31, 2010
40
4
58
Hello,

I looking for a way to route all outbound emails via an external smarthost server, even for internal same-domain and local-domains deliveries.

I wish that any delivery, even between same domain mailboxes and between domains that all reside on the same server that exim is installed on - will be routed to an external email security service, so it will examine the emails and then route them as needed, even back to the origin server, where these local domains reside.

I googled about this but could not find a way to do it. Does anyone know a way to do it?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,259
313
Houston

eitanc

Active Member
Jan 31, 2010
40
4
58
Correct, all email sent from the origin server to email address of the same local email domain or other local email domains - is sent internally inside the same server, never routed via the smarthost. I wish for even this internal traffic to be delivered via the smarthost external IP. How can I do it?
 

eitanc

Active Member
Jan 31, 2010
40
4
58
Can you direct me what is the exact data you ask from and from where should I get it?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,259
313
Houston
Correct, all email sent from the origin server to email address of the same local email domain or other local email domains - is sent internally inside the same server, never routed via the smarthost. I wish for even this internal traffic to be delivered via the smarthost external IP. How can I do it?
Configuration you added in relation to this ^
 

eitanc

Active Member
Jan 31, 2010
40
4
58
I just added in the WHM web gui the address of the smarthost server, that's it.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,259
313
Houston

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,259
313
Houston
Yea, its a customization. Normally local deliveries aren't needed to go to the smarthost. Since they're entirely local. The exim documentation here:

7. The default configuration file is a great resource as well as the exim users mailing list here: Exim-users

There are a ton of other threads on setting up exim transports/routers in the forums as well .