title: How to setup Monit with Amazon SES
body: <p>I'm having a hard time setting up my monitrc file. I'm using Capistrano to setup Monit on Amazon EC2, using this tutorial as a guide:</p>
  
  <p><a href="http://railscasts.com/episodes/375-monit" rel="noreferrer">http://railscasts.com/episodes/375-monit</a></p>
  
  <pre><code>set daemon 30
  
  set logfile /home/deployer/apps/example/shared/log/monit.log
  set idfile /var/lib/monit/id
  set statefile /var/lib/monit/state
  
  set eventqueue
      basedir /var/lib/monit/events
      slots 100
  
  set mailserver email-smtp.us-east-1.amazonaws.com port 587
     username "amazon_username" password "amazon_password"
     using TLSV1
     with timeout 30 seconds
  
  set alert alerts@example.com
  
  set httpd port 2812
      allow admin: "admin_password"
  
  check system example_server
    if loadavg(5min) &gt; 2 for 2 cycles then alert
    if memory &gt; 95% for 2 cycles then alert
    if cpu(user) &gt; 75% for 2 cycles then alert
  
  include /etc/monit/conf.d/*
  </code></pre>
  
  <p>Looking at my logs, I'm getting the following error:</p>
  
  <blockquote>
    <p>Sendmail error: 554 Message rejected: Email address is not verified.</p>
  </blockquote>
  
  <p>I've tried other things like changing the port to 465, but with similar results.</p>
  
  <p>After googling around, I found this post:</p>
  
  <p><a href="http://syshen.cc/post/14394727394/node-js-upstart-monit-and-aws-ses" rel="noreferrer">http://syshen.cc/post/14394727394/node-js-upstart-monit-and-aws-ses</a></p>
  
  <p>It describes how to set up the sender:</p>
  
  <blockquote>
    <p>To specify the sender by just “set mail {from: your-name@example.com}”.</p>
  </blockquote>
  
  <p>But this syntax is nowhere to be found in the Monit documentation.</p>
  
  <p>Any help would greatly be appreciated. Been pulling my hair out on this for a while.</p>