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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to create conne...
Power Automate
Unanswered

Unable to create connection to SMTP server (on-prem Exchange)

(0) ShareShare
ReportReport
Posted on by 26

Hello. I am trying to use on-prem Exchange server for email notifications from a flow.  However, when I try to create a connection to an SMTP server (providing the public IP of the on-prem Exchange server, credentials, port, and SSL option), it fails with the error "Something went wrong. Please try again later." It doesn't tell me why it fails. I have referenced  the article (https://docs.microsoft.com/en-us/power-automate/limits-and-config) and added the IP addresses to be allowed for SMTP traffic in our firewall.

 

What else do I need to do to make this connection? Once I make the connection, would I be able to select the sender email address to send from?

 

I am able to use my Office 365 account to send email from the flow but I do not want the notifications to come from my address hence this attempt to use an on-prem Exchange server.

 

Thanks.

 

Categories:
I have the same question (0)
  • Gristy Profile Picture
    2,429 on at

    Most people create a service account and use that to send emails, you can also create a shared mailbox if it is only for emails and grant yourself permission to send from that and use that in your flow.

     

    For your other question if you do it get working, it will send email as the mailbox you have authenticated with in the connection.

  • AK42 Profile Picture
    26 on at

    Thank you. I am currently using my Office 365 login and my mailbox to test the flow. However, I am trying to set up the same flow for a client that doesn't have Office 365 (but has on-prem Exchange). We will be purchasing a license for the client to have access to Power Automate but we are trying to avoid setting up a mailbox with it for the same domain because we already have on-prem Exchange and did not want to set up a hybrid environment. Therefore, I would like to use the on-prem Exchange as the SMTP server to send email from .... if it is possible.

  • Gristy Profile Picture
    2,429 on at

    i dont think you roffice 365 login will login to the on prem exchange, will need to be a user with a mailbox locally i suspect.

     

    perhaps your best bet is to add a exchange online license to that account and just use the onmicrosoft.com domain

  • AK42 Profile Picture
    26 on at

    I do have a domain account for the client's network. We are trying to use the client's primary or secondary domain name for the sender rather than onmicrosoft.com.

  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @AK42.

     

    if your client runs Exchange on-premise, just don't use Power Automate.

    You can create a so called transport agent to send notifications.

     

    Regards,

    Victor

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard