System Administration & Network Administration
email amazon-ses
Updated Sat, 28 May 2022 04:22:38 GMT

How can I make Amazon SES the default method of sending mail from my server?

I'd like to start using Amazon SES for all emails from our server. We have a few freelance designers with PHP hosting, some Django/Python web apps and also some system utilities which send emails.

So I'd like to have PHP's mail function, the command line mail command and our python apps all be able to use it, preferably without having to set them all up in their own way.

I think what I need is to have something like Postfix running on localhost and using SES for it's delivery but I don't know how to do that.

Amazon's docs state I need to setup my mail transfer agent (MTA) so that it invokes the script. I have the script but I'm not sure how to achieve this.

Am I on the right track? If so, how can I configure Postfix to use that script?


Amazon just released SMTP access to SES. I whipped up a quick howto for it this morning:

Comments (1)

  • +0 – Having no luck with sender_dependent_relayhost... all email is bypassing stunnel, any suggestions? :) — Mar 27, 2012 at 17:07