warwick emails post
continuous-integration/drone/push Build is passing Details

This commit is contained in:
James Ravenscroft 2022-07-16 11:47:48 +01:00
parent d265ddce8a
commit 8d4e4df749
11 changed files with 85 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,85 @@
---
title: "Connecting to University of Warwick Email server in Thunderbird via IMAP and OAuth as of July 2022"
date: 2022-07-16T10:55:51+01:00
draft: false
description: Warwick have phased out "legacy methods" for accessing emails but you can still use IMAP with OAuth
url: /2022/7/16//warwick-imap-2022
type: post
mp-syndicate-to:
- https://brid.gy/publish/mastodon
- https://brid.gy/publish/twitter
tags:
- personal
- phd
- linux
---
A few days ago I started getting "your credentials are invalid" messages from my existing email accounts when trying to connect to the University of Warwick email servers. I hadn't changed my configuration or my password so I assumed they had changed something their side. It turns out that [they have disabled what they call "legacy methods" for connecting to your email account](https://warwick.ac.uk/services/its/servicessupport/email/liveemail/faqs/clients/).
The advice is to "Please update to a client that supports more modern methods of authentication or use alternatively Webmail." which isn't all that helpful. Also IMAP is still modern and not considered 'legacy', that's why a lot of the big web mail providers like [Gmail](https://support.google.com/mail/answer/7126229?hl=en-GB), [proton mail](https://proton.me/support/imap-smtp-and-pop3-setup), [yahoo mail](https://help.yahoo.com/kb/mobile-mail/imap-server-settings-sln4075.html) and heck, even [Microsoft/hotmail](https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353) still support it. Anyway, I won't rant...
## How to set up a new thunderbird account with Warwick
1. Open up Thunderbird and go to Account Settings > Account Actions > Add Mail Account
![screenshot of the account add menu](images/account_actions_add_account.png)
2. In the following screen enter your name, university email address and the password you use to log in to outlook/your uni account. Then click on "configure manually" in the bottom left.
![screenshot of the add account form: enter a name, email address and password](images/enter_creds.png)
3. In the new form that expands enter the following details:
- ***Incoming Server:***
- **Hostname:** outlook.office365.com
- **Port:** 143
- **Connection Security:** STARTTLS
- **Authentication Method:** Leave this blank or 'Autodetect' for now
- **Username:** this is your ITS "U" number on your library card followed by @live.warwick.ac.uk - something like U1234567@live.warwick.ac.uk
- ***Outgoing Server:***
- **Hostname:** smtp.office365.com
- **Port:** 587
- **Connection Security:** STARTTLS
- **Authentication Method:** Leave as autodetect for now
- **Username:** this is your ITS "U" number on your library card followed by @live.warwick.ac.uk - something like U1234567@live.warwick.ac.uk
- Now click "Advanced Config" in the bottom right:
![screenshot of the form populated with example values. The Advanced Config link highlighted in red](images/server_connection_form.png)
4. You're going to get a pop-up/modal asking you if you're sure you want to close the dialog and create an account with the current settings - you can click "Ok"
![screenshot of the warning model. You can click "ok"](images/modal_account.png)
5. You should now see a full menu of settings relating to your account (and any other thunderbird accounts you have in the list on the left). From the Authentication method dropdown, select "OAuth2" (this wasn't in the list on the previous page and is the reason we had to go through the extra step with 'Advanced Config').
![screenshot of the full settings menu - select OAuth from the authentication method dropdown](images/full_settings_menu.png)
6. If you now click back into the main Inbox Tab your new account should be showing up. Click on the Inbox.
![Select the inboxes/Local Folders tab and click on the Inbox for your new account to start the security flow](images/inbox_view.png)
7. You should see a popup appear asking you to log in to your Warwick account
![Example of the oauth prompt you will see once you click into the inbox](images/oauth_prompt.png)
8. Next you'll get a password prompt from Microsoft login, - enter your ITS/Warwick password. If you have 2FA set up you may also need to enter a one time passcode at this stage.
9. We also need to set up the outgoing auth. Go back to Account Settings and scroll down to Outgoing Server (SMTP), from the list select your newly created warwick account and click "Edit"
![Screenshot of outgoing settings, select your account and click edit](images/edit_outgoing.png)
10. In the Connection Security dropdown select STARTTLS and in the Authentication method dropdown select OAuth2. Then hit OK
![Screenshot of the outgoing settings modal: select STARTTLS and OAuth2](images/outgoing_modal.png)
11. The first time you send an email you may have to go through the OAuth flow described in steps 7 and 8 again.
11. You're all set - if you click on the Inbox folder it should now start to populate with your emails.
## How to migrate a password authenticated IMAP account
If you were already using Thunderbird and it unceremoniously stopped working then you should open Account Settings from the menu and follow steps 5-11 above to change your auth method to use OAuth.