Hello everyone,
I’m dealing with a specific configuration and hope someone can assist me. Here’s my situation:
Does anyone have experience with a similar setup or a better alternative? Thanks in advance for your input!
I’m dealing with a specific configuration and hope someone can assist me. Here’s my situation:
- Mail Settings:
- [email protected] is handled by Microsoft 365 (Outlook).
- [email protected] is handled by my own mail server (DirectAdmin/Exim).
- DNS Configuration:
- There is a single MX record pointing to Microsoft 365.
domein.nl. 3600 MX 0 domein-nl.mail.protection.outlook.com.
- SPF, DKIM, and DMARC are configured for both Microsoft 365 and my own server..
selector1._domainkey 3600 CNAME selector1-Domein-nl._domainkey.Domein.onmicrosoft.com. selector2._domainkey 3600 CNAME selector2-Domein-nl._domainkey.Domein.onmicrosoft.com. domein.nl. 3600 TXT "v=spf1 a mx ip4:MIJNIP include:spf.protection.outlook.com include:SERVER_HOSTNAME ~all" x._domainkey 3600 TXT "v=DKIM1; k=rsa; p=MYKEY"
- There is a single MX record pointing to Microsoft 365.
- Problem:
- When below option is checked and I send an email from [email protected] to [email protected], the delivery fails. This happens because Exim first looks locally for the destination (local_domains) and doesn’t find a match for domein.nl, causing the delivery to fail.
- When i turn this option off, i can send mails from [email protected] to [email protected]. But not from [email protected] to [email protected]
- When below option is checked and I send an email from [email protected] to [email protected], the delivery fails. This happens because Exim first looks locally for the destination (local_domains) and doesn’t find a match for domein.nl, causing the delivery to fail.
- What I’ve Tried:
- I’ve created two connectors in Exchange 365 (Connector 1: from the server to Microsoft, Connector 2: from Microsoft to the server).
- Question:
- What is the best way to configure Exim to:
- Process local emails correctly.
- Route emails to Microsoft 365 (such as [email protected]) properly when sent from [email protected].
- What is the best way to configure Exim to:
Does anyone have experience with a similar setup or a better alternative? Thanks in advance for your input!