<br />
<b>Warning</b>:  Constant ABSPATH already defined in <b>/mnt/web/blog.justaguy.ca/wp-config.php</b> on line <b>21</b><br />
{"id":7,"date":"2012-05-11T14:54:35","date_gmt":"2012-05-11T19:54:35","guid":{"rendered":"http:\/\/blog.justaguy.ca\/?p=7"},"modified":"2012-06-08T09:45:25","modified_gmt":"2012-06-08T14:45:25","slug":"using-amazon-ses-with-postfix-without-stunnel","status":"publish","type":"post","link":"http:\/\/blog.justaguy.ca\/?p=7","title":{"rendered":"Using Amazon SES with Postfix without stunnel"},"content":{"rendered":"<p>A client recently decided to use Amazon&#8217;s Simple Email Service to send email from their website. All the articles I found to set that up involved configuring an stunnel connection to port 465 of the amazon relay host. That seems totally unnecessary to me. So here is what I did:<\/p>\n<p>I added the following to \/etc\/postfix\/main.cf<\/p>\n<p>elayhost = email-smtp.us-east-1.amazonaws.com:587<br \/>\nsmtp_sasl_auth_enable = yes<br \/>\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/password<br \/>\nsmtp_sasl_security_options =<br \/>\nsmtpd_sasl_path = smtpd<br \/>\nsmtp_sasl_type = cyrus<br \/>\nsmtp_tls_security_level = may<\/p>\n<p>Next you need to create the password file (\/etc\/postfix\/password) to enable authentication, the format is:<\/p>\n<p>email-smtp.us-east-1.amazonaws.com:587 SMTP_USERNAME:SMTP_PASSWORD<\/p>\n<p>The SMTP_USERNAME and PASSWORD can be obtained by creating them in The AWS console under SES\/SMTP.<\/p>\n<p>then create a hash out of it with:<\/p>\n<p>postmap hash \/etc\/postfix\/password &lt; \/etc\/postfix\/password<\/p>\n<p>restart postfix and your mail should now relay through SES<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A client recently decided to use Amazon&#8217;s Simple Email Service to send email from their website. All the articles I found to set that up involved configuring an stunnel connection to port 465 of the amazon relay host. That seems totally unnecessary to me. So here is what I did: I added the following to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[10,9,12,14,13,11],"_links":{"self":[{"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":2,"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":15,"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/15"}],"wp:attachment":[{"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.justaguy.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}