Cubbli and Office 365
Configuring Office365 to work with desktop applications and MFA can be complicated. They may not even work. Unless you really need a desktop email or calendar application, please consider just using Outlook the web application (OWA). Here's how to setup the OWA Outlook app.
As of February 5th, 2026, Microsoft has been committed to retiring the Exchange Web Services (EWS). At least Evolution has stopped working for a couple of users as of late (Oct 20th, 2026), so all of the information below may or may not work.
General settings for any email client
Your email client needs to support OAuth2 authentication. You need to use your own AD account instead of youraccount@ad.helsinki.fi and your own email address instead of your.address@helsinki.fi. O365 does not allow you to use any other than your own email address.
- When using Linux you need to have at least Cubbli 20 / Ubuntu 20.04 installation. Older distributions are unlikely to work.
- The authentication domain is ad.helsinki.fi and your account is of the form youraccount@ad.helsinki.fi, while the email domain is just your.address@helsinki.fi. You need to get both correctly entered.
- First, enable some MFA autentication methods for your user account. Here are our local wiki instructions (in Finnish). Here are your personal MFA settings at O365. If you MFA is not yet on for your O365 account these instructions are likely to still work, but without the extra authentication step.
- Set incoming mail settings (IMAP):
- User account: youraccount@ad.helsinki.fi
- IMAP Mail server: outlook.office365.com
- Connection security: SSL/TLS
- Authentication method: OAuth2
- Set outgoing mail settings (SMTP)
- User account: account@ad.helsinki.fi
- Your correct exact email address (O365 does not allow changing sender address): your.address@helsinki.fi
- SMTP server: smtp.office365.com
- Connection security: STARTTLS
- Authentication method: OAuth2
- The mail client will forward you to University of Helsinki Office 365 authentication server stshy.helsinki.fi for password authentication If you get forwarded anywhere else, something went wrong and you should not give your password.
- At this point you do the second authentication with the MFA authentication option you selected.
If your have an application that needs tenant id for ad.helsinki.fi it is 98ae7559-10dc-4288-8e2e-4593e62fe3ee.
Evolution
NOTE: these instructions have been created with the help of Gnome wiki: https://wiki.gnome.org/Apps/Evolution/EWS/OAuth2
You need evolution-ews plugin to be installed for this. It is installed by default in Cubbli.
Select Edit/Accounts and then Add / Mail account. Do not select the "Look up mail server details" button. It won't work.
Username: youraccount@ad.helsinki.fi (not firstname.lastname@ad.helsinki.fi)
Change "Server type" to "Exchange Web Services"
Use https://outlook.office365.com/EWS/Exchange.asmx as Host URL.
On Authentication, click the box "Override Office365 OAuth2 settings" and use 20460e5d-ce91-49af-a3a5-70b6be7486d1 as Application ID.
|
|
|
|---|---|---|
|
| At this point Evolution hung. After restart the process continued.
|
|
|
|
Thunderbird
Install Thunderbird:
Use Edit / Account settings button to edit your incoming and outgoing email settings.
Thunderbird IMAP and SMTP settings:
|
|
|---|
Thunderbird Multi Factor Authentication (MFA)
The windows will look slightly different depending if you are doing this in the University internal network or external Internet. You need to accept the MFA authentication in your phone.
Login to University first with password |
Approve sign-in request with your phone |
Give Thunderbid permissions to your email. |
|---|
Alpine (or Pine)
Cubbli 20 has a version of (Al)Pine which works with University O365 email by default. T
- If you have an old version of ~.pinerc rename or delete it first ($ mv ~/.pinerc ~/.pinerc_old (for example) or rm ~/.pinerc)
- make .pine-passfile ($ touch ~/.pine-passfile) to which your authentication token will be saved.
- start Alpine and follow instructions. It will ask you to create a password for the passfile and ask if you want to save the authentication information there. Say yes so you don't have to do the MFA every time you start Alpine. You just need to know the password that you gave earlier.
- Other than the above the procedure will go as pictured below.
When your INBOX is configured to access O365 Alpine login process looks like this. MFA login probably is simpler when Alpine is treated as a device.
|
|
|
|
|
|---|---|---|---|---|
|
|
|
|
|



















