General Vision
- Before you start:
- Install the required packages
- Edit the postfix configuration with SMTP settings and insert this lines on the botton of the /etc/postfix/main.cf file (On Ubuntu, just change the .crt directory)
- Create the sasl_passwd file with SMTP username and password
- Change the permition and generate the password file for postfix
- Restart postfix
- Check if email are sent
- Cool, It’s done
(I hope so)
Works on Centos, Amazon Linux and Ubuntu
Execute all steps on root account
Before you start:
Generate your SMTP username and password ( AWS SES ; Gmail, will need App password
Verify the domain and email addresses
Check if your certificate exists
-
Centos or Amazon Linux: /etc/pki/tls/certs/ca-bundle.crt
-
Ubuntu: /etc/ssl/certs/ca-certificates.crt
This tutorial was made for us-east region, just change the endpoint for other regions
Install the required packages
Centos or Amazon Linux
Ubuntu
Edit the postfix configuration with SMTP settings and insert this lines on the botton of the /etc/postfix/main.cf file (On Ubuntu, just change the .crt directory)
Gmail
AWS SES
Create the sasl_passwd file with SMTP username and password
Gmail
AWS SES
Change the permition and generate the password file for postfix
Restart postfix
Check if email are sent
- You can check your log for more information
( /var/log/maillog )
Gmail
AWS SES
Cool, It’s done (I hope so)
If you have some question or update about this procedure, please contact me.