cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AK42
Level: Powered On

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

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.

 

4 REPLIES 4
Super User
Super User

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

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
Level: Powered On

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

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.

Super User
Super User

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

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
Level: Powered On

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

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.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,239)