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 August 15, 2024 08:08
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 "[email protected]" password "whatever"
using tlsv1
with timeout 30 seconds
# run the following to validate access