-
Notifications
You must be signed in to change notification settings - Fork 23.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STMP 'From:' and 'SMTP FROM:' headers not consistent #117095
Comments
It looks like there is an issue with the SMTP configuration in Odoo 16.0-20230317 (Community Edition). The SMTP server is configured with a custom domain and the mail.catchall.domain property is set to correspond with the SMTP server domain. However, when attempting to send an email, the SMTP server is refusing the request with the error message "5.5.1 The 'From:' header and the 'SMTP FROM:' envelope information are not consistent, DKIM signature would fail". This error suggests that the 'From:' header and the 'SMTP FROM:' envelope information are not matching, which is causing an issue with the DKIM signature. DKIM is a method for validating the authenticity of email messages. In this case, it appears that the SMTP server is detecting a mismatch between the 'From:' header and the 'SMTP FROM:' envelope information, which is causing the DKIM signature to fail. To resolve this issue, you should verify that the 'From:' header and the 'SMTP FROM:' envelope information are consistent with each other. You may need to update your email configuration settings in Odoo to ensure that both of these elements are correctly configured. You may also need to check with your email provider to ensure that they are correctly configured to support DKIM. |
This is a well-known issue with Odoo's default e-mail being incorrectly set up. By default Odoo tries to send e-mail that is originating from non-odoo domain (like gmail.com). This is obviously not the right way to do it. Fortunately even if Odoo's default configuration is wrong, the problem can be fixed with a configuration change. In order for this to work you need to configure Odoo to always use only one fixed e-mail (i.e. odoo@myodoodomain.com) Create e-mail account odoo@myodoodomain.com Set mail.catchall.domain to myodoodomain.com |
That is because your domain's SPF, DKIM and DMARC settings are not correctly set (just checked). (Drop me a private message and I'll be happy to help you to configure them. This is offtopic for this chain). |
I have personaly configured SPF, DKIM and DMARC for the domain and it works perfectly for other services with the same SMTP server. I'd be happy to get help, how can I contact you in DM ? |
Impacted versions: Odoo 16.0-20230317 (Edition Community)
Steps to reproduce:
mail.catchall.domain
property to correspond with SMTP server domain.Current behavior:
Mail not sent, SMTP refuse request with following error:
Expected behavior:
Mail correctly sent.
Screenshots :
The text was updated successfully, but these errors were encountered: