Using Evolution with Office365 and Multi-Factor Authentication (Duo)

  1. Prerequisites:
    • For CentOS you'll need to have the following packages installed:
      • evolution
      • evolution-ews
    • For Ubuntu you'll need to have the following packages installed:
      • evolution
      • evolution-ews
  2. Configure an Account in Evolution:
    Start evolution, then click Edit --> Accounts --> Add --> Mail Account. You'll see a window like this:

    Click "Next". On the following screen, enter your name and e-mail address:

    Click "Next". On the next screen you'll need to:

    • Change the Server Type to "Exchange Web Services".

    • Change the Host URL to:
      https://outlook.office365.com/EWS/Exchange.asmx
      Note that the field will be pre-populated with an incorrect value that points to virginia.edu, not office365.com.

    • In the "Authentication" section, change the drop-down to select "OAuth2 (Office365)".

    • Put a check mark in the "Override Office365 OAuth2 settings" box.

    • Enter the appropriate values for "Tenant" and "Application ID". UVA users can find these values here, after logging in with NetBadge:

      https://web.phys.virginia.edu/Private/office365-mfa-ids.html

    Click "Next". On the following screen you might want to change the default interval for checking mail. The default is to check for new mail every 60 minutes, which might be too long for many people.

    Click "Next" or "Apply" on the remaining screens.

    If nothing happens after a minute or two, or if you get an error message saying "Failed to connect to account", close evolution and open it again. Eventually, evolution should present you with a pop-up window that asks for your Eservices password, followed by a second window for Duo authentication.