{"id":2107,"date":"2020-04-15T01:00:00","date_gmt":"2020-04-15T01:00:00","guid":{"rendered":"http:\/\/inswwdev.azurewebsites.net\/au\/insights\/uncategorized\/evolution-mail-agent-with-ews-and-multi-factor-authentication\/"},"modified":"2024-12-13T02:23:36","modified_gmt":"2024-12-13T02:23:36","slug":"evolution-mail-agent-with-ews-and-multi-factor-authentication","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/au\/insights\/geek-speak\/professional-services\/evolution-mail-agent-with-ews-and-multi-factor-authentication\/","title":{"rendered":"Evolution Mail Agent with EWS and Multi Factor Authentication"},"content":{"rendered":"<p><span>I was perfectly happy running my Fedora-based Linux workstation until a few weeks ago. Our company is using Office 365 (who does not nowadays?) and I was just content with using Evolution with EWS.<\/span><\/p>\n<p><span>One sunny and hot afternoon, I received an email from the team informing them they are about to enable Multi-Factor Authentication for everything Microsoft. Even better \u2013 they decided to disable old school authentication method\u2026 to make our systems safer.<\/span><\/p>\n<p><span>I thought to myself \u2013 that\u2019s great\u2026 but \u2026 is my email agent (Evolution) going to fly with this new approach? Or am I (being OS minority) going to need to start using the web-based Outlook Web App (OWA).\u00a0 <\/span><\/p>\n<p><span>So\u2026 my email agent stopped working. Hang on. I am taking this back. It worked just fine but did not authenticate (for the reasons stated above).<\/span><\/p>\n<p><span>The following is the way to make your Evolution with EWS fly with MFA:<\/span><\/p>\n<p><span>1. Call your support\/Admin or whoever is responsible for the config of your Office 365\/Azure and has admin privileges<\/span><\/p>\n<p><span>2. Ask <strong>nicely<\/strong> for the following (if nicely does not cut it \u2013 do something about it):<\/span><\/p>\n<ul>\n<li><span>Azure Tenant ID<\/span><\/li>\n<li><span>Application ID created under the Application Registration of Azure Active Directory<\/span><\/li>\n<\/ul>\n<p><span>3. Once you have all those details, you can just get into it<\/span><\/p>\n<p><span>4. Given you still have your mailbox configured, go to Edit \u2192 Preferences. This will open Evolution Preferences:<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/22\/2021\/02\/insentra-seb-baszczyj-04152020-img1.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/14e5834025ea455dadbccf764dc641c1\" title=\"\"><\/p>\n<p><span>5. Double Click (or Edit) your account. This will open another window: \u2018Account Editor\u2019. Click on Receiving Email in the right pane of the window:<\/span><\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/22\/2021\/02\/insentra-seb-baszczyj-04152020-img2.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/60a6128016c2475b970fe2c2deafb885\" title=\"\"><\/span><\/p>\n<p><span>6. Make Sure to select OAuth2 (Office 365) as the Authentication.<\/span><\/p>\n<p><span>7. Select Override Office 365 OAuth2 settings and enter the Tenant ID and Application ID as provided by your Azure guru.<\/span><\/p>\n<p><span>8. In the Redirect URI, provide the following URL:<\/span><\/p>\n<p><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/login.microsoftonline.com\/common\/oauth2\/nativeclient\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/login.microsoftonline.com\/common\/oauth2\/nativeclient<\/a><\/span><\/p>\n<p><span>9. Click OK and you are done (given the Application ID was created properly and the Tenant ID is correct).<\/span><\/p>\n<p><span>10. The next time you will try to login you will see something like this:<\/span><\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/22\/2021\/02\/insentra-seb-baszczyj-04152020-img3.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/66f130b6d2bc4f238b43e56f173080db\" title=\"\"><\/span><\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/22\/2021\/02\/insentra-seb-baszczyj-04152020-img4.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/453cb3f2b56e43af9c1d01dd03538125\" title=\"\"><\/span><\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/22\/2021\/02\/insentra-seb-baszczyj-04152020-img5.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/7cab04f5d42f4d289e06ffc4e1eb8792\" title=\"\"><\/span><\/p>\n<p class=\"Standard\"><span>If by any chance your evolution hung, do yourself a favour, open the terminal and do:<\/span><\/p>\n<p class=\"Standard\"><span>sudo pkill -9 evolution<\/span><\/p>\n<p class=\"Standard\"><span>If you think Linux requires the same treatment as Windows \u2013 reboot your workstation.<\/span><\/p>\n<p class=\"Standard\"><span>Enjoy your Evolution with OAuth2 and MF \ud83d\ude42<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was perfectly happy running my Fedora-based Linux workstation until a few weeks ago. Our company is using Office 365 (who does not nowadays?) and I was just content with using Evolution with EWS. One sunny and hot afternoon, I received an email from the team informing them they are about to enable Multi-Factor Authentication&hellip; <a class=\"more-link\" href=\"https:\/\/www.insentragroup.com\/au\/insights\/geek-speak\/professional-services\/evolution-mail-agent-with-ews-and-multi-factor-authentication\/\">Continue reading <span class=\"screen-reader-text\">Evolution Mail Agent with EWS and Multi Factor Authentication<\/span><\/a><\/p>\n","protected":false},"author":67,"featured_media":2108,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[25],"tags":[],"class_list":["post-2107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-professional-services","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/2107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/comments?post=2107"}],"version-history":[{"count":1,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/2107\/revisions"}],"predecessor-version":[{"id":22755,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/2107\/revisions\/22755"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/media\/2108"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/media?parent=2107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/categories?post=2107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/tags?post=2107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}