O365 and EXIM - SMTP Namespace Sharing

WiNeOS

Verified User
Joined
Apr 3, 2006
Messages
14
SMTP Namespace sharing allow mailboxes in the cloud and on-premises to share the same address space such as @domain.com. At the end I need to distribute domain emails between the two servers... some emails are in exchange and another ones in exim.

I configured Exchange as an InternalRelay and create 2 conectors from and to my exim in DA. The MX records point to my Office365 Exchange account.
So any emails which are not slated for an address on the exchange server will then be directed to the smarthost (exim)

The problem is configuring exim for outgoing emails. When I attempt to send an email to the same domain from within the DA server, as the address is being treated as a local account, and is not being relayed out to the exchange server.

if I uncheck that option (https://help.directadmin.com/item.php?id=8). The problem comes when sending emails from accounts in Exim to exchange server accounts. To resolve this i suppose that I need to create a transport rule. Any help here?

Another option is if I configure DA for "Local Mail Server", sended emails from Exchange are rejected by exim (spf is correctly configured):
rejected RCPT <[email protected]>: We didn't send the message
rejected RCPT <[email protected]>: authentication required
rejected RCPT <[email protected]>: Sender verify failed

Related to this. I'm using SpamBlocker 4.5.23 and I saw that i need to modify this part but I'm not very fluent editing exim conf:

#COMMENT#43:
# ACCEPT EMAIL BEGINNING HERE
# accept if address is in a local domain as long as recipient can be verified
accept domains = +local_domains
endpass
message = UNKNOWN_USER
verify = recipient
#COMMENT#44
# accept if address is in a domain for which we relay as long as recipient
# can be verified
accept domains = +relay_domains
endpass
verify = recipient
#EDIT#45:
accept hosts = +relay_hosts
add_header = X-Relay-Host: $sender_host_address

accept hosts = +auth_relay_hosts
endpass
message = AUTH_REQUIRED
authenticated = *


What is the best¿? configure DA for local delivery or not? and how to configure this? Thanks for your help
 
I'm facing the same problem with similar solutions tested yet still no effect. I was thinking of some sort of connectors created in DA however I hve no Idea if this is possible to create or how to do it.
 
Back
Top