Skip to content

Instantly share code, notes, and snippets.

View AlexeyGogolev's full-sized avatar

Alexey Gogolev AlexeyGogolev

View GitHub Profile
@jcdarwin
jcdarwin / monit-and-gmail
Last active February 12, 2023 11:10
How to allow monit to use gmail as a smtp relay to send out alert emails
# visit https://accounts.google.com/DisplayUnlockCaptcha and click to allow access
# edit /etc/monit/monitrc to include the following
set mailserver smtp.gmail.com port 587
username "whoever@gmail.com" password "whatever"
using tlsv1
with timeout 30 seconds
# run the following to validate access