Email being sent via smartroute even when is for local domain

hostpanel

New member
Joined
Nov 22, 2024
Messages
4
Hi everyone,


I'm facing an issue that is bothering me a lot, i'm migrating a customer from Zimbra to Directadmin.
I configured the smarthost following the docs https://docs.directadmin.com/other-hosting-services/exim/smarthost.html


The external delivery is working well BUT even when the delivery is the same domain he send it for the relay and then get it back to the server.
Is there any configuration where when the email is for local only he doesn't send it to the relay and delivery locally?

I appreciate any help.
 
Hello,

You might replace the following condition in your new routers:

Code:
    condition = ${if or { \
                    {bool{FORCED_MX_DNS_CHECK}} \
                    {!match_domain{$domain}{+local_domains}} \
                }}

by the single line:

Code:
domains = ! +local_domains
 
Back
Top