Email being sent via smartroute even when is for local domain

hostpanel

Verified User
Joined
Nov 22, 2024
Messages
5
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
 
Hu zEitEr, thank you for you reply.
But in this case, external delivery still working because the second part of the code, right?

transport = ${if eq{$domain}{$original_domain} \
{auth_relay} \
{auth_relay_forward} \
}
self = pass
route_list = * smtp.example.com
no_more
 
Back
Top