title: To configure Sendmail to send email through Amazon SES using STARTTLS
body: <p>I follow Amazon SES instruction on the following URL
  <a href="http://docs.aws.amazon.com/ses/lates.../sendmail.html" rel="nofollow">http://docs.aws.amazon.com/ses/lates.../sendmail.html</a>
  but got no luck.</p>
  
  <p>Since, FreeBSD has no /etc/mail/sendmail.mc, I use the following way to configure sendmail</p>
  
  <h1>make</h1>
  
  <p>edit the /etc/mail/{host}.mc to add Amazon's lines</p>
  
  <h1>make install &amp; make restart</h1>
  
  <p>I got 530 Authentication required from Amazon.</p>
  
  <p>By using command line guide on
  <a href="http://docs.aws.amazon.com/ses/lates...mand-line.html" rel="nofollow">http://docs.aws.amazon.com/ses/lates...mand-line.html</a>
  I am sure my username and password is correct.</p>
  
  <p>Then, I've googled for FreeBSD sendmail for related answers...I've found there are various ways, including to add TLS, or SASL...etc. But don't know which way will fix the problem.</p>
  
  <p>Is there any easy way and correct way to fix this problem? Thank you very much</p>
  
  <p>@Andrzej A. Filip, Thank you.
  I decide to give up. Just a note here. 
  I've tried to recompile sendmail with  security/cyrus-sasl2-saslauthd by using arved's suggestion, or using a secure tunnel, or re-edit the {host}.mc with different ways, Amazon SES command line test ( It works!!).</p>
  
  <p>Amazon SES documentation is not designed for FreeBSD, it just use Amazon Linux AMI as an example to indicate how to configure sendmail to relay to Amazon SES.</p>
  
  <p>In the beginning, I think it is an easy way to upgrade my old app, however, it takes too much time. For the time spent on this way, I can set up a new EC2 server and forward all the emails to the new server from the old app. So, I decide not to waste time on the path due to poor documentation.</p>
  
  <p>But thank you anyway to help me see the transaction log between my machine and Amazon SES. I would like to highlight this, because maybe someone will need the way to see how they are working.</p>