Monit alerts sent from a Dreamhost email account
2010/09/01 Leave a comment
This little snippet of configuration took way to long to figure out so I’m sharing it in hopes of saving others the trouble. If you are using monit and trying to send alerts from a Dreamhost email account you will need to use the following settings.
set mailserver mail.your.host.name port 465username "monit@your.host.name"password "password"using SSLV3with timeout 15 secondsset alert alerts@your.host.namewith mail-format { from: monit@your.host.name }
It turns out that monit and Dreamhost don’t get along on the default port 587. The solution according to Dreamhost is to use port 465. This works as long as you use SSLv3 instead of TLSv1. The other important part of this configuration is making sure you set the from address in your mail format. Otherwise monit tries to send from monit@<hostname> which in most cases is not a fully qualified name and will cause Dreamhost to fail.
