web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot connect with IM...
Power Automate
Unanswered

Cannot connect with IMAP Server

(0) ShareShare
ReportReport
Posted on by 4

Hello team, i need your help with the next issue:

I need connect with my office for get mail messages, but when i try to connect with IMAP Activity always return "Error de autenticación en el servidor IMAP" i tried with both servers of Microsoft Documentation https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/email :

  • imap-mail.outlook.com (Outlook.com)
  • outlook.office365.com (Office365.com)

And both ports:

  • 143 (non-encrypted and TLS)
  • 993 (secure IMAP)

But the result its the same.

leydyzapata_0-1673922214563.png

=======================================================================

Error Detail:

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Error de autenticación en el servidor IMAP imap-mail.outlook.com. ---> MailKit.Security.AuthenticationException: LOGIN failed.
en MailKit.Net.Imap.ImapClient.<AuthenticateAsync>d__83.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapClient.Authenticate(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken)
en MailKit.MailService.Authenticate(Encoding encoding, String userName, String password, CancellationToken cancellationToken)
en Microsoft.Flow.RPA.Desktop.Modules.Email.Actions.EmailActions.RetrieveEmails(Variant imapServer, Variant username, Variant varPassword, Variant mailFolder, Variant fromContains, Variant toContains, Variant subjectContains, Variant bodyContains, Variant sentSince, Variant sentUpTo, Variant saveAttachmentsInto, Variant& retrievedEmails, Int32 serverPort, Boolean enableSsl, Int32 retrieveOnlyUnread, Boolean saveAttachments, Boolean markAsRead, Boolean acceptUntrustedCertificates)
--- Fin del seguimiento de la pila de la excepción interna ---
en Microsoft.Flow.RPA.Desktop.Modules.Email.Actions.RetrieveEmails.Execute(ActionContext context)
en Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

==============================================================================

 

Any solution for this problem?

 

Thanks.

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hello,

    Connecting with IMAP server is depreciated. Because of security reasons Microsoft depreciated it, you don't need 2fa to send/retrieve emails with it.

     

    You need to use the outlook functions from now on. This means that you need Outlook on your machine aswell.

    Setting it up is quite easy. Works almost the same as IMAP.

    1. Launch outlook

    2. Outlook activity

    3. Close outlook

     

    Goodluck

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Too easy:

     

    Kaif_Siddique_0-1673981115972.png

     

    Regards

    Kaif

  • leydyzapata Profile Picture
    4 on at

    Thank you for your responses.

    Only a question, can i connect to server exchange?

    I think that Launch Outlook Activity depends for Loguin Outlook desktop and when change machine we need this configuration.

    We search an internal activity.

     

    Thank you.

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hi,

     

    If I’m right, you cannot use Exhange aswell.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard