odoo / odoo/documentation

[15.0, 16.0] Removed mail default "From" feature? (params: mail.force.smtp.from, mail.dynamic.smtp.from)

Open
#5,895 1 comment 3 reactions 1 assignee View on GitHub

@tiku-odoo is already working on this.

Since Sep 22, 2023.

Dominant language
reStructuredText
Stars
1.3k
Forks
12.1k
PR merge metrics
No merged PRs in 30d

Description

Impacted versions: 15, 16

Documentation doesn't match the Odoo implementation/code anymore, since version 15.
This isn't an issue (ignore) for version 14, 13 (and maybe earlier).

According to documentation:

Both config params mail.force.smtp.from, mail.dynamic.smtp.from can be used to provide/override the outbound sender (From) address.

When obtaining and setup according to the documentation (links above), the outbound mails still result in error which the (documented) feature solved in version 14 and 13.

(example mail addresses non real-world):

SMTPRecipientsRefused: {'recipient@example.dev': (553, b'5.7.1 <sender@example.com>: Sender address rejected: not owned by user outbound@MTA-MAIL-PROVIDER.TLD')}

The implementation (code) exists in version 14, but not in version 15 and 16 (just search the params).
See code in version 14 (which doesn't exist in 15, 16):

  • Model: ir.mail_server
  • Function: _get_email_from

Currently: https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/models/ir_mail_server.py#L356

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.