Configuring AWS SES for Postfix in Two Easy Steps

Ersin Guvenc - Aug 7 - - Dev Community

Postfix is ​​an open source email transport agent for Linux and Unix computer operating systems. AWS SES is a cheap, popular and secure way to send transactional emails.

In this article, we will connect your AWS SES account to Postfix and ensure that your emails are sent by AWS SES.

This article is powered by Olobase Fullstack Vue.js /Php Framework.

How to Create AWS SES Api Key / SMTP Credentials

Following link will show to you how to create an AWS SES api key-passwords.
https://www.youtube.com/watch?v=hCusJszAIW8

Open your main postfix configuration file with your favourite editor

vim /etc/postfix/main.cf
Enter fullscreen mode Exit fullscreen mode

Add following lines to your file

# start AWS settings
relayhost = [email-smtp.eu-west-1.amazonaws.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = static:USERNAME:PASSWORD
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
# end AWS settings
Enter fullscreen mode Exit fullscreen mode

Points to be considered

You should replace the eu-west-1 with your region
Replace USERNAME and PASSWORD values ​​with your AWS SES credentials.
Save your changes and exit.

Restart the postfix server.

service postfix restart
Enter fullscreen mode Exit fullscreen mode

That’s all, now the emails you send will be sent by AWS SES.

This article is powered by Olobase Fullstack Vue.js /Php Framework.

. . . . .
Terabox Video Player