Odoo mail servers without Gmail or Outlook OAuth
Odoo sends email through outgoing mail servers, and reads it through incoming mail servers – for example, to create leads, helpdesk tickets, or replies to conversations. Microsoft 365 and Gmail require OAuth for both. Odoo 14 and earlier don’t support OAuth, and Odoo 15 and later only support it after you register your own app with Google or Microsoft and enter its credentials in Odoo.
With Auth-Email, every Odoo version can use ordinary mail server settings with a password instead, with nothing to register.
Before you start: link the mailbox in your Auth-Email dashboard, and choose a password for it. That is the password you’ll enter in Odoo – not your mailbox password.
For a shared address such as sales@ or support@, see account delegation and shared mailboxes.
Step 1: Add an outgoing mail server
Mail server settings are only visible in Odoo’s developer mode. To turn it on, go to Settings, scroll down to Developer Tools, and click Activate the developer mode.
- Go to
Settings > Technical > Email > Outgoing Mail Servers, and click New (or Create) - Enter the following details. Show the settings for an account provided by Outlook:
- Name (or Description in older versions): A name to identify the server (e.g., “Auth-Email”)
- FROM Filtering (Odoo 15 and later): The linked mailbox’s email address (e.g.,
you@outlook.com) - Priority: A low number (e.g.,
1), so that Odoo uses this server first - Authenticate with (Odoo 15 and later):
Username– not Gmail OAuth Authentication or Outlook OAuth Authentication - SMTP Server:
outlook.auth-email.com - SMTP Port:
465 - Connection Encryption (or Connection Security):
SSL/TLS - Username: The linked mailbox’s email address
- Password: The password you chose in Auth-Email
- Click Test Connection, and then save
Make sure Odoo sends from an allowed address
Odoo sends many emails from the address of the user or contact who wrote them, and notifications from a notifications@ address on your domain. Microsoft 365 and Gmail only accept messages from the linked mailbox, or from addresses that it is allowed to send as. There are two ways to handle this:
- Send everything from one address: In Odoo 15 and later, when an email’s From address doesn’t match any server’s FROM Filtering, Odoo sends it from its default From address instead, keeping the author’s name. Make this the linked mailbox: in Odoo 17 and later, set the Default From Alias of your alias domain (
Settings > Technical > Email > Alias Domains); in Odoo 15 and 16, set themail.default.fromandmail.catchall.domainsystem parameters (Settings > Technical > Parameters > System Parameters). For example,crmandexample.comfor crm@example.com - Send from each user’s own address: Link each user’s mailbox to Auth-Email, and add an outgoing mail server for each one, with FROM Filtering set to that user’s address
Odoo 14 and earlier don’t have FROM Filtering, so emails keep their author’s address. Either give the linked mailbox permission to send as each user (with Microsoft 365, the Send As permission), or link each user’s mailbox.
Step 2: Add an incoming mail server (optional)
Skip this step if you only need Odoo to send email. To read a mailbox:
- Go to
Settings > Technical > Email > Incoming Mail Servers, and click New (or Create) - Enter:
- Name: A name to identify the server (e.g., “Sales inbox”)
- Server Type:
IMAP Server(orPOP Server) - Server Name:
outlook.auth-email.com - Port:
993for IMAP, or995for POP - SSL/TLS: Ticked
- Username: The linked mailbox’s email address
- Password: The password you chose in Auth-Email
- Actions to Perform on Incoming Mails: Choose what to create from each email (e.g., a lead or a ticket)
- Click Test & Confirm, and then Fetch Now to check that email arrives
Odoo checks incoming servers on a schedule, using the Mail: Fetchmail Service scheduled action.
Troubleshooting
- “Authentication failed” or “Connection Test Failed”: check that the username is the full email address, and that the password is the one you chose in Auth-Email (not your mailbox password)
- Connection times out: check that Connection Encryption is SSL/TLS with port
465, and that your Odoo server can make outgoing connections on that port. Some hosting providers block outgoing email ports “Sender address rejected” or “SendAsDenied”: Odoo is sending from an address that the linked mailbox isn’t allowed to use – see make sure Odoo sends from an allowed address
Large mailings: Odoo’s email marketing can send a lot of email at once. Check that your Auth-Email plan and your email provider’s sending limits suit your mailing sizes
For other errors, such as Microsoft 365 reporting that SMTP AUTH is disabled, see fixing common errors. Your account’s connection page in the Auth-Email dashboard also shows whether Odoo has connected, and explains any error it received. Still stuck? Email us – we’ll help you get it working.
Related articles
Try Auth-Email with Odoo
Link your mailbox, add it as an outgoing mail server, and test the connection – nothing to register with Google or Microsoft.
Start your free trial →No credit card needed. Check that it works, including sending yourself test messages, before you pay.