1
SmarterMail: How to get mails from Outlook.com with Microsofts modern authentication?
Question asked by Stefan Mössner - 9/11/2024 at 11:36 PM
Answered
Hi all,

Microsoft will stop the authentication with username and password for Outlook.com. You need now an application that is supporting Microsofts modern authentication.

I have an Outlook.com account and I configured SmarterMail to download the mail messages from Outlook.com with POP3s and username and password. And I'm able to send mails per SMTPs. This won't work anymore.

So, my question is how to configure SmarterMail with using Microsofts modern authentication to be able to get and send mails via Outlook.com in the future?

Thank you and kind regards.

11 Replies

Reply to Thread
0
Stefan Mössner Replied
Hi all,


In SmarterMail there's no OAuth2 option available. I can only activate APOP. But I don't find any hints regarding compatibility of Outlook.com with APOP.

Kind regards
0
Stefan Mössner Replied
And one more hint for you: I'm not talking about M365 with Entra ID where you have to set up an application for OAuth!
0
Andrew Barker Replied
Employee Post Marked As Answer
SmarterMail already uses OAuth2 when configuring a Microsoft 365 or Outlook.com account for Message Retrieval, Email Migration, or External SMTP. Is there something specific you feel is missing?
Andrew Barker Software Developer SmarterTools Inc. www.smartertools.com
0
Stefan Mössner Replied
Andrew,

and how to configure this? Or do I see this in he log files?

Thank you.
0
Stefan Mössner Replied
Looking in the POP retrieval log, I can see that the authentication is PLAIN and I think that will be a problem after 16.09.2024:

00:15:55.061 [69] [xxx; outlook.office365.com:xxx@live.de] Processing started... [Account Size: 4650449098]
00:15:55.125 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] Connection to 52.98.152.162 succeeded
00:15:55.128 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] CMD: CAPA
00:15:55.138 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] CMD: AUTH PLAIN
00:15:55.148 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] CMD: {{PLAIN AUTH STRING}}
00:15:55.522 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] CMD: STAT
00:15:55.601 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] CMD: STAT
00:15:55.632 [69] [xxx; outlook.office365.com:xxx@live.de] [outlook.office365.com:xxx@live.de] CMD: QUIT
00:15:55.677 [69] [xxx; outlook.office365.com:xxx@live.de] Processing completed.
0
Stefan Mössner Replied
I found out that you set up some profiles for mail services. One of them is "Outlook.de". I deleted my old POP3s connection and created a new one with this profile. Then I had to accept SmarterMail as application for having access to the mails.

With this profile SmarterMail is using IMAPs and so there's now a separate log file for the IMAP retrieval. And here I find the following message:

20:07:16.310 [109] [xxx; outlook.office365.com:xxx@live.de] Could not authenticate with the server.
After some more testing with the settings I found out that the password field is only viewable when you edit the server address. I wondered that I haven't to set a password in the settings first but after adding something to the server address this field is viewable and I can put in my password. But the IMAPs retrieval is not working,. 

And what about sending mails via SMTPs? There's no profile for SMTPs connections.
0
Andrew Barker Replied
Employee Post
When configuring Email Retrieval or Mailbox Migration for an M365 or Outlook.com account, we recommend using the pre-defined configurations for those services. That said, if you want to use POP specifically, you can select the Other configuration. Once you put in one of the known Microsoft mail server addresses - outlook.office365.com, imap-mail.outlook.com, or pop-mail.outlook.com - the modal should adjust to hidethe password field. When you click save, the configuration should proceed through Microsoft's OAuth process.

Setting up an SMTP account for M365 or Outlook.com is similar to the Other process above. Once you put in a known Microsoft mail server address - in this case, outlook.office365.com or smtp-mail.outlook.com - the modal should adjust to hide the password field. Clicking save will then proceed through the OAuth process.

If you are encountering an error after configuring an M365 or Outlook.com account for Email Retrieval or as an SMTP account, please open a ticket and we will help you investigate the issue.
Andrew Barker Software Developer SmarterTools Inc. www.smartertools.com
0
Stefan Mössner Replied
Andrew,

thank you.

The retrieval is now working but after changing the retrieval with using the pre-defined configuration "Outlook.de" which is using IMAP, it isn't possible to switch back to POP retrieval. The authentication doesn't work.

SMTP is working, too. In the log file I see:

21:51:50.755 [92954264] RSP: 250-AUTH LOGIN XOAUTH2
So I think, that this is working as you described.

One disadvantage of IMAP is that the original send timestamp is overwritten by the timestamp of the mail retrieval.
0
Stefan Mössner Replied
I don't like the IMAP retrieval. It's creating more folders because it doesn't assign the folders "Deleted", "Archive", "Sent" etc. to the the corresponding folders in SmarterMail. And IMAP is synchronizing all folders and not only the inbox which is enough for me because I'm writing my mails in the webmail UI of SmarterMail and relaying them via Outlook.com. So I don't need the folder "Sent", "Deleted", "Archive" etc. synchronized.

And I see in the log that SmarterMail always synchronizes one message in "Inbox" and one message in "Sent". but it really doesn't. Now I deleted all messages in all folders in Outlook.com. This solved this issue.

Is there an option to configure the IMAP synchronization regarding folder assingment and selecting the folders to be synchronized?

Or how can I configure the POP retrieval with modern authentication which is the better option for me? As I've written earlier the POP connection doesn't work although I come to the authorization of the SmarterMail app in Outlook.com. But when saving the POP settings in SmarterMail the test of the authentication fails.
0
Andrew Barker Replied
Employee Post
I wasn't able to replicate the behavior you described. I recommend opening a ticket so that we can help you look into this further.
Andrew Barker Software Developer SmarterTools Inc. www.smartertools.com
0
Stefan Mössner Replied
Again, I have the free edition running so I'm not able to open a ticket.

So, I'm asking once more: Is there an option to configure the IMAP synchronization regarding folder assingment and selecting the folders to be synchronized?

Or how can I configure the POP retrieval with modern authentication which is the better option for me? As I've written earlier the POP connection doesn't work although I come to the authorization of the SmarterMail app in Outlook.com. But when saving the POP settings in SmarterMail the test of the authentication fails.

Reply to Thread