OdooWiki OCA HUB

Server environment configuration for Office365

mail_environment_office365 folder_open OCA/server-env open_in_new
Tools License: AGPL-3

This module allows to configure Office365 outgoing servers with server-env.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Lets 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.

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/server-env.

terminal Installation and usage

OCA documentation · Odoo 17.0

Example 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.

info

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.