PowerMTA route mails through another SMTP server for a domain
If you want to route emils from PowerMTA though another SMTP server, you can use following config.
In this example, all outgoing emails to @outlook.com domain will get routed through Amazon SES.
Edit PowerMTA config file
1 |
vi /etc/pmta/config |
Add folowing
1 2 3 4 5 6 7 8 9 10 11 |
<domain outlook.com> queue-to amazon-ses.route </domain> <domain amazon-ses.route> auth-username USER_NAME_HERE auth-password PASSWORD_HERE route email-smtp.us-west-2.amazonaws.com:587 use-starttls yes require-starttls yes </domain> |
Restart PowerMTA
1 |
systemctl restart pmta |
See PowerMTA