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