Skip to Content
Menu
This question has been flagged
4 Replies
4593 Views

Hello everyone!


I have a problem which ive been working on for days.

I am really hoping that someone could help me out.


I use Odoo SH and it is important that I can send e-mails with Office 365 in Odoo 15, but setting it up does not go smoothly.


I have currently created a relay in Exchange Online that contains the ip address of Odoo.
According to the following page, I need to use Microsoft's guide to properly use the relay:

https://www.odoo.com/documentation/saas-15.2/nl/applications/general/email_communication/email_servers.html


which redirects to Microsoft's link to create and use the relay:

https://docs.microsoft.com/nl-nl/Exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using- microsoft-365-or-office-365?redirectSourcePath=%252fen-us%252farticle%252fHow-to-set-up-a-multifunction-device-or-application-to-send-email-using-Office-365-69f58e99 -c550-4274-ad18-c805d654b4c4


The problem is that microsoft instructs to use the following information in my client (in this case Odoo.)


Server/smart host:
yourdomain-com.mail.protection.outlook.com


Port: Port 25
TLS/StartTLS: Enabled

But again in the link from Odoo it is stated that port 25 is blocked which is actually the case.


At this point, Odoo's page is contradicting itself.
It is very important to me that I can use the relay in this way and do not have to provide user credentials.
How can I solve this?

Avatar
Discard
Best Answer

Hi Guys,

We have prepared a guide on how to integrate the Odoo SH with Office 365 mail server ( https://ventor.tech/odoo/how-to-configure-emails ). It has been verified on some customers already, and all screenshots are made for Odoo 14 and 15 and latest version of Office 365.

Main point out configuration is sending of emails is done by the same mailbox like for receiving. Since it is mailbox but not SMTP relay, then we cannot specify anyone other than the owner of the mailbox as the sender (in current case info@your-domain.com), so we made a configuration where the sender is always the same. As a result all email recipients will see “Odoo User or Notification or etc.”<info@your-domain.com> instead “Odoo User or Notification or etc.”.
If it's compromise is right for you so you can see more details by link above. If it's really important to you that the sender looks indistinguishable from an ordinary person and has own email, then because of the aforementioned circumstances to do this you need change place of Odoo deploying or use other mail provider instead Office 365 Exchange.

Avatar
Discard
Author Best Answer

Hi Chris,

Thank you for your response.

Can i conclude that it is almost impossible to use Gsuite/Google or Office mail servers without any problems?

Because it seems like that when using Google, mails go to spam in Yahoo and Outlook.

Avatar
Discard
Best Answer

Unfortunately this is a hard restriction and you are correct that port 25 is deliberately blocked in Odoo.SH (as it is in some cloud providers also).
It's a shame Microsoft do not offer an SMTP relay on any port other than 25.
I would recommend moving to MailGun or SMTP2Go, both offer SMTP relay on a variety of ports and I have successfully used it on many Odoo installations.

Avatar
Discard
Best Answer

Hi Stan, regardless of the mail server choice, you'll still need to configure DNS entries to avoid going to SPAM.

This document may help you on how to do it: https://www.odoo.com/documentation/15.0/applications/general/email_communication/email_servers.html

All mail servers have entries in the DNS which receiving mail servers will look to see if the message comes from one of the authorized sender servers (mx entries), besides that, there are other entries that must exist in order to avoid most spam services.

Regards,

Avatar
Discard
Related Posts Replies Views Activity
0
May 22
1103
0
May 21
855
2
Jul 16
3860
0
Mar 15
2248
0
Mar 15
2433