Skip to Content
Menú
This question has been flagged
2 Respostes
12701 Vistes

I have issues where e-mails sent from a company on the odoo online platform are systematically registered as spam from Outlook, Gmail, ...

I want to solve this issue without configuring an outgoing mail server like I asked here : how-to-set-up-e-mail-messaging-with-odoo-61796 

I guess it's a problem with the spf and DKIM records of my domain but I have yet to figure how to solve it.

This is the authentication of my e-mail : Authentication-Results: hotmail.com; spf=none (sender IP is 61.211.247.56) smtp.mailfrom=postmaster-odoo@my_company.odoo.com; dkim=none header.d=sharp-array.com; x-hmca=none header.id=m.deuse@sharp-array.com

Which in short means that postmaster-odoo@my_company.odoo.com wants to send e-mail as m.deuse@sharp-array.com

I believe since I don't have spf and DKIM records matching postmaster-odoo@my_company.odoo.com for the domain sharp-array.com, outlook and gmail believe I am trying to impersonate sharp-array and register me as spam.

Thus my question : How to set up spf and DKIM properly?

Avatar
Descartar
Autor Best Answer

After carefully reviewing it I think the best way to go about it is to add the spf record to my domain (sharp-array.com). The DKIM has to be set in the dns record but also on the server and I think this may not be possible in this case.

I modified my spf record made by outlook on my domain by appending "include:my_company.odoo.com" to the record. The final spf record looks like this : "v=spf1 include:my_company.odoo.com include:spf.protection.outlook.com -all"

After adding this to the dns of my domain my e-mail are not marked as spam anymore! Which is exactly what I wanted to achieve.

Avatar
Descartar
Best Answer

Hi,

Last year (2023-2024- I'm having this really bad, some arrive some not even at the same customer.

I was 100% sure my SPF and DKIM/DMARC are set correctly according to this odoo article.


Configure DNS records to send emails in Odoo — Odoo 17.0 documentation


But after analyzing dmarc reports I noticed that the SPF fails on the odoo mail with ip 51.15.34.108.

This IP address is not included in the include:_spf.odoo.com.


After some research (on a public site, but not on odoo) I found that for saas there's a different spfinclude:_spf.mailsaas10.odoo.com.


And this spf contains the ip address, and other, I mentioned above.


There is no documentation on Odoo that mentions that.


I'll be creating a ticket for this.


So my advice is to also include the include:_spf.mailsaas10.odoo.com in your spf but also the adviced because I noticed from the reports the mails get send at random from both includes.


That would explain why one of my customers get some invoices and others not, while I sent them in the same 15 minute timeframe.


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de maig 25
904
1
de jul. 21
4736
1
de jul. 23
1650
1
de maig 23
2052
2
de febr. 23
2953