Help ›

CiviCRM email and bounce processing with Office 365 or Gmail

CiviCRM sends receipts, mailings, and notifications through a single SMTP server, and reads mail accounts for bounce processing and email-to-activity filing. Both sign in with a username and password, but Microsoft 365 and Gmail require OAuth.

CiviCRM 5.33 and later include an OAuth Client extension for reading mail accounts, which needs your own app registered with Microsoft or Google, and sending with OAuth needs a further extension. With Auth-Email, CiviCRM can use its usual SMTP and IMAP settings with a password instead, on any version – on WordPress, Drupal, Joomla, Backdrop, or Standalone.

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 CiviCRM – not your mailbox password.

For a shared address such as info@, see account delegation and shared mailboxes.


Step 1: Set up outbound email

Show the settings for an account provided by Outlook:

  1. In CiviCRM, go to Administer > System Settings > Outbound Email (SMTP/Sendmail)
  2. For Select Mailer, choose SMTP, and enter:
    • SMTP Server: ssl://outlook.auth-email.com – the ssl:// prefix is needed so that CiviCRM connects securely
    • SMTP Port: 465
    • Authentication?: Yes
    • SMTP Username: The linked mailbox’s full email address (e.g., you@outlook.com)
    • SMTP Password: The password you chose in Auth-Email
  3. Choose Save & Send Test Email

The test message is sent from your site’s default From address, to your own CiviCRM contact’s email address.

Check your From addresses

Every From address that CiviCRM uses must be the linked mailbox, or an address that the mailbox is allowed to send as. Check these in Administer > Communications > Site From Email Addresses (called From Email Addresses in older versions), and in the From address of any mailings, receipts, and scheduled reminders.


Step 2: Set up mail accounts (optional)

Skip this step if you don’t use bounce processing or email-to-activity processing. Link the mailbox that CiviCRM should read in Auth-Email first – this is usually a different mailbox from the one you send from.

  1. Go to Administer > CiviMail > Mail Accounts, and choose Add Mail Account (or edit an existing one). If you’re offered a choice of provider, choose the ordinary option rather than Google or Microsoft – Auth-Email does the OAuth part on CiviCRM’s behalf
  2. Enter:
    • Name: A name to identify the account (e.g., “Bounces”)
    • Server: outlook.auth-email.com
    • Username: The linked mailbox’s full email address
    • Password: The password you chose in Auth-Email
    • Localpart: Leave blank, unless you use plus addressing (e.g., return+)
    • Email Domain: The domain of the mailbox (the part after the @)
    • Protocol: IMAP
    • Mail Folder: The folder to read (e.g., INBOX)
    • Use SSL?: Ticked
    • Used For?: Bounce Processing or Email-to-Activity Processing
  3. Choose Save & Test

CiviCRM reads these accounts on a schedule, using the Fetch Bounces and Process Inbound Emails scheduled jobs, so make sure these are enabled in Administer > System Settings > Scheduled Jobs.


Troubleshooting

  • “Your SMTP Username or Password are incorrect” or “Authentication 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)
  • “Failed to connect” or a connection timeout: check that the SMTP server starts with ssl:// and that the port is 465, and that your web server can make outgoing connections on that port
  • “Sender address rejected” or “SendAsDenied”: the From address must be the linked mailbox, or an address that the mailbox is allowed to send as – see check your From addresses

  • Large mailings: CiviMail 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, and use CiviMail’s throttling settings (Administer > CiviMail > Mailer Settings) to spread large mailings out

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 CiviCRM has connected, and explains any error it received. Still stuck? Email us – we’ll help you get it working.


Try Auth-Email with CiviCRM

Link your mailbox, update CiviCRM’s outbound email settings, and send a test email.

Start your free trial →

No credit card needed. Check that it works, including sending yourself test messages, before you pay.