OPNsense Forum

English Forums => 26.1, 26,4 Series => Topic started by: Blackdragon83 on April 22, 2026, 03:40:28 AM

Title: Monit and STARTTLS Issue
Post by: Blackdragon83 on April 22, 2026, 03:40:28 AM
Hello everyone,

I'm trying to set up a reporting system using Monit, with email alerts forwarded through my Hotmail account. However, the setup isn't working, and I'm receiving the following error:

SMTP: Mailserver response error -- 451 5.7.3 STARTTLS is required to send mail [DX0P273CA0003.AREP273.PROD.OUTLOOK.COM 2026-04-21T17:04:23.671Z 08DE9DD04CF197D8]

STARTTLS is mandatory for authentication, but it seems Monit isn't initiating a TLS connection properly. Has anyone successfully configured Monit to send emails via Hotmail/Outlook.com? If so, could you share the correct SMTP settings or any workarounds?

Title: Re: Monit and STARTTLS Issue
Post by: lnet.admin on April 22, 2026, 07:52:00 PM
Mine works with SSL Version set to AUTO
Title: Re: Monit and STARTTLS Issue
Post by: viragomann on April 22, 2026, 11:34:32 PM
I guess, "Mail Server SSL Connection" doesn't do STARTTLS, it rather just let Monit connect via SSL (usually port 465).
So maybe Monit connects successfully if you remove this check.

Or you can try port 465. Don't know, if Office 365 supports this.
Title: Re: Monit and STARTTLS Issue
Post by: Blackdragon83 on April 23, 2026, 07:19:05 AM
Quote from: lnet.admin on April 22, 2026, 07:52:00 PMMine works with SSL Version set to AUTO

are you using MS email domain? if so could you please share the setting
Title: Re: Monit and STARTTLS Issue
Post by: Blackdragon83 on April 23, 2026, 07:21:18 AM
Quote from: viragomann on April 22, 2026, 11:34:32 PMI guess, "Mail Server SSL Connection" doesn't do STARTTLS, it rather just let Monit connect via SSL (usually port 465).
So maybe Monit connects successfully if you remove this check.

Or you can try port 465. Don't know, if Office 365 supports this.

i have tried that it did not work! im not sure if Monit is design to support such connection, although gmail adopt the same yet it can be connected that what i have seen in youtube!
Title: Re: Monit and STARTTLS Issue
Post by: viragomann on April 23, 2026, 10:13:00 AM
Yes, I use Monit with SSL on port 465 (SMTPS) with my mail provider and it works.
But most of the big ones only support port 587 with STARTTLS and have on opt-in for SMTPS if at all.
Title: Re: Monit and STARTTLS Issue
Post by: Blackdragon83 on April 23, 2026, 05:10:57 PM
thank you all, i guess this is something to be consider for the next update adopting STARTTLS in Monit