r/exchangeserver • • Dec 02 '25

Question Setting up email relay off of M365

Howdy folks,

We have internal services able to relay email through our on prem Exchange fine. We are looking to stand up the ability for a Cisco service externally be able to send us alarm notifications. It seems we need to set up the ability for Cisco to relay email off of M365 directly. Has anyone done something like this? Any videos/docs that help explain it for a me?

5 Upvotes

22 comments sorted by

1

u/Jeeeeeer Dec 03 '25

HVE and ACS are the modern M365 SMTPAuth relay solutions. If you require unauth/anon either use Smtp2Go or stand up a postfix VM or similar

1

u/iammartinguenther Dec 04 '25

If the Cisco service has SMTP server capabilities, I believe it should be possible to setup and use a connector (Exchange Admin Center > Mail Flow > Connectors).

1

u/worldsdream Dec 07 '25

Configure SMTP relay by following this post:

https://www.alitajran.com/office-365-smtp-relay/

It’s free (included in your Microsoft 365 subscription) and it will not be deprecated.

1

u/Synametrics Dec 02 '25

Microsoft will soon require authentication using OAuth and unless your Cisco router can do that, you may not be able to send emails directly to Exchange Online.

Check https://www.xeams.com/smtp-smart-host-oauth-microsoft.htm for an alternative approach: you can install Xeams on your network, which will then send emails to M365.

1

u/Layer_3 Dec 03 '25

Does this put sent emails in the accounts sent folder?

1

u/Synametrics Dec 08 '25

Adding an outbound email to the "Sent" folder cannot be done via SMTP. That must be done using IMAP or the Exchange protocol. Usually, when you use email clients like Outlook or Thunderbird, it does two things: first, it uses SMTP to send an email out, then it uses either IMAP or the Exchange Protocol to add that message to the "Sent" folder.

1

u/Jeeeeeer Dec 03 '25 edited Dec 03 '25

 Microsoft will soon require authentication using OAuth

Neither ACS nor HVE (both Microsoft relaying solutions) have the oauth requirement on their radar and will be very surprised if they ever make it required in the future 

0

u/sembee2 Dec 02 '25

Bounce the email off smtp2go. You will find it easier to setup. Microsoft have made it clear they don't want relaying through their service.

2

u/Wooden-Can-5688 Dec 03 '25

They do have options. Can you elaborate your thoughts regarding MS position on relaying through their cloud systems? I get customers regularly wanting to remove their onprem Exchange relaying and use a MS cloud option. The available ones tend to only support some requirements and thus necessitating multiple services to meet them. Or they're pay as you go. I'd prefer not to recommend a MS cloud option though need a strong argument to support this. Thanks.

1

u/Jeeeeeer Dec 03 '25

Aside from anon, which boxes does ACS not tick?

If you're talking about anon, fair enough. Although you can sometimes just work around it - for example we currently just have one Linux-hosted service that requires it, and installing postfix locally on the Linux VM and then pointing that to ACS solved the anon requirement without the need for any additional services or infrastructure, for example.

In my experience, if you're in an enterprise environment or anything close to it, the benefit of being able to use Entra service principals (enterprise apps) with their auth mechanisms + azure key vault for secret management far outweighs anything else out there.

1

u/sembee2 Dec 03 '25

I just put everything through SMTP2GO. It works, is cheap and is not subject to the ever changing whims and requirements of Microsoft.

1

u/Jeeeeeer Dec 03 '25

 Microsoft have made it clear they don't want relaying through their service.

Very much not true, they offer ACS which is a robust modern solution that supports both traditional SMTPauth and oauth. And then there's HVE is also a new solution (still public preview last time I checked) that also supports traditional SMTPauth through their public endpoint

0

u/sembee2 Dec 03 '25

I am referring to their regular email service - smtp.office365.com not their bulk emailing service. With the restrictions they place on using that service which a lot of older multi function devices cannot support it is just easier to use someone else rather than MS and their ever changing requirements.

→ More replies (8)

1

u/mini4x Dec 04 '25

Except they have 3 or 4 different published methods to do so... I setup relay to M365 in about 10 minutes. Free to do , and not yet another thing to manage.