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.
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.
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.
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
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.
Check out new user group experience and if you are a leader please create your group
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.