Configuring AWS SES for Postfix in Two Easy Steps

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 …


This content originally appeared on DEV Community and was authored by Ersin Guvenc

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

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

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

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.


This content originally appeared on DEV Community and was authored by Ersin Guvenc


Print Share Comment Cite Upload Translate Updates
APA

Ersin Guvenc | Sciencx (2024-08-07T16:28:41+00:00) Configuring AWS SES for Postfix in Two Easy Steps. Retrieved from https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/

MLA
" » Configuring AWS SES for Postfix in Two Easy Steps." Ersin Guvenc | Sciencx - Wednesday August 7, 2024, https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/
HARVARD
Ersin Guvenc | Sciencx Wednesday August 7, 2024 » Configuring AWS SES for Postfix in Two Easy Steps., viewed ,<https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/>
VANCOUVER
Ersin Guvenc | Sciencx - » Configuring AWS SES for Postfix in Two Easy Steps. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/
CHICAGO
" » Configuring AWS SES for Postfix in Two Easy Steps." Ersin Guvenc | Sciencx - Accessed . https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/
IEEE
" » Configuring AWS SES for Postfix in Two Easy Steps." Ersin Guvenc | Sciencx [Online]. Available: https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/. [Accessed: ]
rf:citation
» Configuring AWS SES for Postfix in Two Easy Steps | Ersin Guvenc | Sciencx | https://www.scien.cx/2024/08/07/configuring-aws-ses-for-postfix-in-two-easy-steps/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.