OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: dcol on August 14, 2023, 11:51:20 pm

Title: Monit email not working
Post by: dcol on August 14, 2023, 11:51:20 pm
Running 23.7.1_3
I tried every email address I have, local and remote, and all I get is this

023-08-15T10:36:15-07:00   Error   monit   Aborting event   
2023-08-15T10:36:15-07:00   Error   monit   Mail: Delivery failed -- no mail server is available   
2023-08-15T10:36:15-07:00   Error   monit   Cannot open a connection to the mailserver 192.168.100.5:465
2023-08-15T10:36:15-07:00   Error   monit   Cannot connect to [192.168.100.5]:465 -- Connection timed out   

I cannot find any email service to work with Monit. Tried Gmail, Yahoo, Local emails. Nothing works.
Apparently you can no longer use Gmail or Yahoo due to new security on those sites, so I am stuck with using the local account. Not sure if I need a firewall rule to do this.

Monit itself works fine. Just won't send email messages from my main site.
I gave up and just disabled Monit. Not really useful if I can't get messages.

Any ideas on how to get it to work on the same machine as the email servers. Do I need a new firewall rule?
Title: Re: Monit email not working
Post by: dcol on August 16, 2023, 07:51:30 pm
Resolved by using outlook.com. Still would like to know how to use my local email.
Title: Re: Monit email not working
Post by: lilsense on August 16, 2023, 08:06:34 pm
I'd recommend looking into the firewall for monit. monit may be using an interface that's not allowed sending email  on the port.
Title: Re: Monit email not working
Post by: CJ on August 17, 2023, 02:11:42 pm
Also, just to check the basics, have you confirmed that there's something listening on 465 at 192.168.100.5?