Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

monit syntax error on SSL

Tags:

monit

I am trying to use gmail as my mail server for alert messages in monit. I have these lines in monitrc:

set mailserver smtp.gmail.com
  port 587
  username "myusername" password "mypassword"
  using SSL

I always get the following error.

 /etc/monit/monitrc:59: Error: syntax error 'SSL'

I am using monit 5.6 and I copied the recipe from https://mmonit.com/wiki/Monit/Gmail

like image 225
A.K. Avatar asked May 31 '26 21:05

A.K.


2 Answers

This works fine with monit 5.20.

like image 64
A.K. Avatar answered Jun 04 '26 11:06

A.K.


It's probably a bug, i had it on version 5.2.5 (Centos 7 on Amazon Linux)

Please use the latest version (as of now 5.21.0) and it will work, as adviesd by the recipe.

like image 21
Federico Galli Avatar answered Jun 04 '26 12:06

Federico Galli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!