Mail Outbound Static

mail_outbound_static
REPOSITORY
REPOSITORYOCA/mail
GIT
GIThttps://github.com/OCA/mail.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/mail/tree/19.0/mail_outbound_static
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, braintec AG, Adhoc SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, braintec AG, Adhoc SA
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, andrea
WEBSITE
WEBSITEhttps://github.com/OCA/mail
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:50
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module brings Odoo outbound emails in to strict compliance with
RFC-2822 by allowing for a dynamically configured From header, with the
sender's e-mail being appended into the proper Sender header instead. To
accomplish this we:

- Add a domain whitelist field in the mail server model. This one
  represent an allowed Domains list separated by commas. If there is not
  given SMTP server it will let us to search the proper mail server to
  be used to send the messages where the message 'From' email domain
  match with the domain whitelist. If there is not mail server that
  matches then will use the default mail server to send the message.
- Add a Email From field that will let us to email from a specific
  address taking into account this conditions:
  1)  If the sender domain match with the domain whitelist then the
      original message's 'From' will remain as it is and will not be
      changed because the mail server is able to send in the name of the
      sender domain.
  2)  If the original message's 'From' does not match with the domain
      whitelist then the email From is replaced with the Email From
      field value.
- Add compatibility to define the smtp information in Odoo config file.
  Both smtp_from and smtp_whitelist_domain values will be used if there
  is not mail server configured in the system.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (2)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, vals_list)
    @api.model_create_multi
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/mail
GIT
GIThttps://github.com/OCA/mail.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/mail/tree/18.0/mail_outbound_static
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, braintec AG, Adhoc SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, braintec AG, Adhoc SA
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Frédéric Garbely, oca-ci, andrea
WEBSITE
WEBSITEhttps://github.com/OCA/mail
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module brings Odoo outbound emails in to strict compliance with
RFC-2822 by allowing for a dynamically configured From header, with the
sender's e-mail being appended into the proper Sender header instead. To
accomplish this we:

- Add a domain whitelist field in the mail server model. This one
  represent an allowed Domains list separated by commas. If there is not
  given SMTP server it will let us to search the proper mail server to
  be used to send the messages where the message 'From' email domain
  match with the domain whitelist. If there is not mail server that
  matches then will use the default mail server to send the message.
- Add a Email From field that will let us to email from a specific
  address taking into account this conditions:
  1)  If the sender domain match with the domain whitelist then the
      original message's 'From' will remain as it is and will not be
      changed because the mail server is able to send in the name of the
      sender domain.
  2)  If the original message's 'From' does not match with the domain
      whitelist then the email From is replaced with the Email From
      field value.
- Add compatibility to define the smtp information in Odoo config file.
  Both smtp_from and smtp_whitelist_domain values will be used if there
  is not mail server configured in the system.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (2)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, vals_list)
    @api.model_create_multi
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/17.0/mail_outbound_static
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
COMMITTERS
COMMITTERSEnric Tobella, OCA-git-bot, Mohamed Osman, andrea, Rajkumar, Sodexis
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module brings Odoo outbound emails in to strict compliance with
RFC-2822 by allowing for a dynamically configured From header, with the
sender's e-mail being appended into the proper Sender header instead. To
accomplish this we:

- Add a domain whitelist field in the mail server model. This one
  represent an allowed Domains list separated by commas. If there is not
  given SMTP server it will let us to search the proper mail server to
  be used to send the messages where the message 'From' email domain
  match with the domain whitelist. If there is not mail server that
  matches then will use the default mail server to send the message.
- Add a Email From field that will let us to email from a specific
  address taking into account this conditions:
  1)  If the sender domain match with the domain whitelist then the
      original message's 'From' will remain as it is and will not be
      changed because the mail server is able to send in the name of the
      sender domain.
  2)  If the original message's 'From' does not match with the domain
      whitelist then the email From is replaced with the Email From
      field value.
- Add compatibility to define the smtp information in Odoo config file.
  Both smtp_from and smtp_whitelist_domain values will be used if there
  is not mail server configured in the system.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (2)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, vals_list)
    @api.model_create_multi
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/16.0/mail_outbound_static
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
COMMITTERS
COMMITTERSDaniel Reis, Weblate, OCA-git-bot, oca-ci, Aungkokolin1997, Alberto Re
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:54
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (2)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, vals_list)
    @api.model_create_multi
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/15.0/mail_outbound_static
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci, Maksym Yankin, Aungkokolin1997
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:40
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (2)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, values)
    @api.model
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/14.0/mail_outbound_static
VERSION
VERSION 2.0.1
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA
COMMITTERS
COMMITTERSDenis Roussel, oca-travis, Weblate, OCA-git-bot, Michael Tietz, oca-git-bot, Pierre Pizzetta
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (2)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, values)
    @api.model
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/13.0/mail_outbound_static
VERSION
VERSION 2.1.0
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA, Solvti sp. z o.o.
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, brain-tec AG, Adhoc SA, Solvti sp. z o.o.
COMMITTERS
COMMITTERSAlexandre Fayolle, Jairo Llopis, Katherine Zaoral, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Frédéric Garbely, oca-ci, Sergei Ruzki
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (3)
  • domain_whitelist Char
    help="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist."
  • reply_to_the_same_address Boolean
    help='If you have no catchall support for this server and will activate this option, Reply-To address will be the same as From address.'
  • smtp_from Char
    help="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change" string='Email From'
Public methods (6)
  • check_valid_domain_whitelist(self)
    @api.constrains('domain_whitelist')
  • check_valid_smtp_from(self)
    @api.constrains('smtp_from')
  • create(self, values)
    @api.model
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
  • unlink(self)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/12.0/mail_outbound_static
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSeLBati, GitHub, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (1)
  • smtp_from Char
    help='Set this in order to email from a specific address.' string='Email From'
Public methods (1)
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/11.0/mail_outbound_static
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSGitHub, oca-travis, OCA-git-bot, YogeshMahera-SerpentCS
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (1)
  • smtp_from Char
    help='Set this in order to email from a specific address.' string='Email From'
Public methods (1)
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/10.0/mail_outbound_static
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYDiscuss
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs, Trescloud
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs, Trescloud
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, Carlos Manuel
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
ir_mail_server_form IR Mail Server - From Address ir.mail_server xpath Inherits base.ir_mail_server_form
Models touched (1)

New fields (1)
  • smtp_from Char
    help='Set this in order to email from a specific address.' string='Email From'
Public methods (1)
  • send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)
    @api.model