Server environment configuration for Office365
This module allows to configure Office365 outgoing servers with server-env.
auto_awesome What this module does
AI-generated from the code · Odoo 17.0Lets administrators configure the Office365 outgoing mail server authentication through server environment variables instead of typing it in Odoo. It extends the existing mail server settings with one extra environment-driven field.
This module is a small technical add-on for companies that keep their Odoo configuration outside the database, in server environment files.
It works on the outgoing mail server settings (ir.mail_server). It adds the Office365 authentication option (smtp_authentication) to the list of fields that can be read from environment variables, on top of the fields already handled by the mail environment module.
In practice, an administrator can define the Office365 authentication method in the server environment configuration, and Odoo will use that value for the outgoing mail server instead of a value stored in the database. This keeps credentials and connection settings out of the Odoo database and makes them consistent across environments.
There are no new menus, screens, buttons, reports, scheduled jobs or business rules in this module. It only changes how an existing mail server setting is sourced. It depends on microsoft_outlook, mail_environment and server_environment_ir_config_parameter, so those must be installed for it to work.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/server-env.
terminal Installation and usage
OCA documentation · Odoo 17.0Configuration
Source · Odoo 17.0Example of config file :
[ir.config_parameter] microsoft_outlook_client_id = YOUR_OFFICE365_CLIENT_ID microsoft_outlook_client_secret = YOUR_OFFICE365_CLIENT_SECRET
[outgoing_mail.office365_smtp_server] smtp_host = smtp.office365.com smtp_port = 587 smtp_user = example@yourdomain.com smtp_encryption = starttls use_microsoft_outlook_service = True
These two are global parameters, in core they're configured in General Settings:
YOUR_OFFICE365_CLIENT_ID: Outlook Client Id'.YOUR_OFFICE365_CLIENT_SECRET: Outlook Client Secret'.
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.