Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
611 Zobrazení

Hello Odoo Community,


I'm encountering an issue with our Odoo 18 Community setup, and I hope to get some insights or solutions from those who might have faced something similar.


Setup Details:


Odoo Version: 18 Community

Server: Windows Server 2022

Email Service: Microsoft 365

Domain: https://OurDomain.org

Main Error: odoo.addons.mail.models.mail_mail: Ignoring invalid recipients for mail.mail


Issue: Emails are successfully sent to major providers like Outlook.com and Gmail.com, but fail when sent to certain third-party domains such as OurDomain.org and others. The logs show the following error:


Ignoring invalid recipients for mail.mail <...>: ['JohnDoe@OurDomain.org']


Relevant Log Entries:

Signup email sent but flagged as invalid:

2024-12-12 14:58:51,728 2584 INFO ourdatabase odoo.addons.auth_signup.models.res_users: Signup email sent for user <JohnDoe@OurDomain.org> to <JohnDoe@OurDomain.org>


Successful email sent:

2024-12-12 14:58:58,258 2584 INFO ourdatabase odoo.addons.mail.models.mail_mail: Mail with ID 51 and Message-Id '<...>' successfully sent

odoo.addons.auth_signup.models.res_users: Signup email sent for user <JohnDoe@gmail.com> to <JohnDoe@gmail.com>



What We Have Done:

Verified that the outgoing email server is correctly configured with all Azure prerequisites.

Confirmed that the web base URL is set to our external domain.

Ensured there are no typos or formatting issues with the email addresses.


Question: We need to know what the issue is here. Our configuration is clearly working, since we can send emails to Outlook.com, Gmail.com, etc. But cannot send emails to other domains. Is there a system parameter or a workaround to bypass this "Ignoring invalid recipients" error in Odoo? I've provided details for support, which outlines the issue in detail. Any guidance or suggestions would be greatly appreciated.

Avatar
Zrušit
Nejlepší odpověď

Update:


I think I figured this out.  Odoo, before it sends email to an SMTP server for transport is going to ensure the email addresses being used make sense.  I suspect this is done to reduce the amount of email through the incoming email connector.


In any case, it tries to resolve the email doman to make sure it even exists.  There are other rules which it applies to email to ensure the addresses are valid, but in this case (in my case) it appears that our DNS server was failing to resolve some MX queries.  It was responding with "FORMERR".  (dig MX user@theirdomain.com​)


For some reason one of our DNS servers doesn't like the request.  Upon further investigation, I found that this was/is a really old DNS server and I suspect it fails to conform to the DNS standards in one way or another.


To solve the issue, I stood up a brand new DNS server as a secondary to the older one and now odoo references that DNS server and my invalid recipient issue as gone away.

------

Experiencing the same issue.  Some emails it accepts and uses, others it says "invalid recipients" even though we can send messages to these folks with a regular email client.

Avatar
Zrušit

Updated answer