SOLVED

SMTP relay o365 (Send email from application or device to o365 in hybrid mode)

%3CLINGO-SUB%20id%3D%22lingo-sub-1430095%22%20slang%3D%22fr-FR%22%3ESMTP%20relay%20o365%20(Send%20email%20from%20application%20or%20device%20to%20o365%20in%20hybrid%20mode)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1430095%22%20slang%3D%22fr-FR%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3Ecan%20i%20send%20email%20to%20o365%20with%20direct%20send%20method%20in%20hybrid%20configuration%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20mail%20its%20send%20to%20local%20user%20in%20domain%20o365%20%3CSTRONG%3Ebut%20not%20send%20to%20external%20user%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20exchange%20server%202013%20hybrid%20with%20o365%20and%20the%20MX%20is%20on%20o365%20(the%20traffic%20mail%20work%20correctly)%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20put%20the%20public%20%40ip%20address%20in%20receive%20connector%20..%26nbsp%3Bthe%20mail%20its%20send%20to%20local%20user%20in%20domain%20o365%20%3CSTRONG%3Ebut%20not%20send%20to%20external%20user%20from%20application%20when%20I%20want%20to%20send%20notification%20to%20external%20user%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20want%20to%20modify%20all%20notification%20in%20exchange%20to%20o365%20%2C%20after%20that%20we%20remove%20the%20exchange%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20read%20this%20article%20and%20i%20configure%20the%203rd%20option%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fmail-flow-best-practices%2Fhow-to-set-up-a-multifunction-device-or-application-to-send-email-using-office-3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fmail-flow-best-practices%2Fhow-to-set-up-a-multifunction-device-or-application-to-send-email-using-office-3%3C%2FA%3E%3C%2FP%3E%3CP%3Ethank%20you%20for%20help%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1430095%22%20slang%3D%22fr-FR%22%3E%3CLINGO-LABEL%3EHybrid%20exchange%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1430429%22%20slang%3D%22en-US%22%3ERe%3A%20SMTP%20relay%20o365%20(Send%20email%20from%20application%20or%20device%20to%20o365%20in%20hybrid%20mode)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1430429%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F469815%22%20target%3D%22_blank%22%3E%40Kais_mbarki%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20in%20an%20Exchange%20Hybrid%20environment%2C%20the%20preferred%20method%20to%20SMTP%20relay%20is%20through%20the%20Exchange%20Hybrid%20server%20itself.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20note%20that%20you%20are%20planning%20to%20remove%20your%20Exchange%20server%3F%20%26nbsp%3BIf%20you%20do%20this%2C%20and%20continue%20synchronising%20your%20AD%20to%20Azure%20AD%2C%20then%20you%20will%20be%20putting%20yourself%20in%20a%20position%20where%20you%20are%20not%20supported%20by%20Microsoft.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20would%20recommend%20keeping%20at%20least%20one%20Exchange%20Server%20to%20act%20as%20Management%20Server%20and%20SMTP%20relay.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432123%22%20slang%3D%22en-US%22%3ERe%3A%20SMTP%20relay%20o365%20(Send%20email%20from%20application%20or%20device%20to%20o365%20in%20hybrid%20mode)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432123%22%20slang%3D%22en-US%22%3EAlthough%20I%20do%20agree%20with%20you%20Peter%20on%20leaving%20the%20last%20Exchange%20server%20in%20place%2C%20the%20option%20stated%20by%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F469815%22%20target%3D%22_blank%22%3E%40Kais_mbarki%3C%2FA%3E%20should%20work.%3CBR%20%2F%3ERequirements%20are%20creating%20a%20connector%20in%20EXO%20from%20his%20WAN%20IP%20(or%20option%20e-mail%20server%20of%20your%20org%20in%20the%20EXO%20ECP)%20to%20Office%20365%20and%20adding%20a%20whitelist%20entry%20for%20the%20IP%20in%20EXO%20as%20well.%3CBR%20%2F%3EIf%20you%20then%20specify%20your%20Office%20365%20%22MX%20record%22%20so%20your-domain-com.onmicrosoft.com%20in%20the%20app%20as%20the%20mail%20server%20with%20port%20set%20to%2025%20and%20SSL%20to%20ON%20it%20should%20work.%3CBR%20%2F%3EI%20have%20several%20clients%20who%20are%20using%20Office%20365%20as%20a%20relay%20server%20this%20way.%3CBR%20%2F%3EBy%20the%20way%2C%20I%20wouldn't%20suggest%20using%20the%20authentication%20method%20anymore%20because%20basic%20auth%20support%20will%20be%20discontinued%20in%20the%20future.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432564%22%20slang%3D%22en-US%22%3ERe%3A%20SMTP%20relay%20o365%20(Send%20email%20from%20application%20or%20device%20to%20o365%20in%20hybrid%20mode)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432564%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F399562%22%20target%3D%22_blank%22%3E%40PvB91%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20agree%20it%20should%20work.%20%26nbsp%3BHave%20done%20so%20many%20times%20this%20way%20myself.%20%26nbsp%3BI%20have%20found%20this%20method%20can%20be%20inconsistent%20and%20unreliable%20at%20times%20however.%20%26nbsp%3BBut%20yes%2C%20it%20does%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1440179%22%20slang%3D%22en-US%22%3ERe%3A%20SMTP%20relay%20o365%20(Send%20email%20from%20application%20or%20device%20to%20o365%20in%20hybrid%20mode)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1440179%22%20slang%3D%22en-US%22%3EThank%20you%2C%3CBR%20%2F%3Eit%20worked%20following%20the%20change%20from%20organization%20type%20connectors%20to%20mail%20server%20type%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello,

can i send email to o365 with direct send method in hybrid configuration ?

 

the mail its send to local user in domaine o365 but not send to external user 

I have an exchange server 2013 hybrid with o365 and the MX is on o365 ( the traffic mail work correctly ) 

i put the  public @ip adresse in receive connector .. the mail its send to local user in domaine o365 but not send to external user from application when i want send notification to externe user 

we want to modify all notification in exchange to o365 , after that we remove the exchange 

 

 

i read this article and i configure the 3rd option 

https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-dev...

thank you for help 

4 Replies
Highlighted

@Kais_mbarki 

 

Hi, in an Exchange Hybrid environment, the preferred method to SMTP relay is through the Exchange Hybrid server itself. 

 

I note that you are planning to remove your Exchange server?  If you do this, and continue synchronising your AD to Azure AD, then you will be putting yourself in a position where you are not supported by Microsoft.

 

So I would recommend keeping at least one Exchange Server to act as Management Server and SMTP relay.

Highlighted
Best Response confirmed by Kais_mbarki (Occasional Contributor)
Solution
Although I do agree with you Peter on leaving the last Exchange server in place, the option stated by @Kais_mbarki should work.
Requirements are creating a connector in EXO from his WAN IP (or option e-mail server of your org in the EXO ECP) to Office 365 and adding a whitelist entry for the IP in EXO as well.
If you then specify your Office 365 "MX record" so your-domain-com.onmicrosoft.com in the app as the mail server with port set to 25 and SSL to ON it should work.
I have several clients who are using Office 365 as a relay server this way.
By the way, I wouldn't suggest using the authentication method anymore because basic auth support will be discontinued in the future.
Highlighted

@PvB91 

 

I do agree it should work.  Have done so many times this way myself.  I have found this method can be inconsistent and unreliable at times however.  But yes, it does work.

Highlighted
Thank you,
it worked following the change from organization type connectors to mail server type