0

I'm on CentOS 8 and I kind of set up a server with postfix to relay to AWS SES, and I'm wondering if it would be possible to add more credentials than the one in this guide? Maybe add another line on /etc/postfix/sasl_passwd?

This is the first time I have configured/touched postfix so any tips may help.

Gwynn
  • 3
  • 5
  • You can add more lines to `sasl_passwd` but will need to have some transport logic for postfix to know which to use in each situation. – tater Sep 18 '20 at 06:35
  • I see, is there any way to achieve that? Does that look normally like an if statement? – Gwynn Sep 18 '20 at 08:28
  • Look at the `/etc/postfix/transport` file. It depends what you are actually trying to do. – tater Sep 18 '20 at 10:49
  • So if I add a line like `example.com smtp:email-smtp.us-west-2.amazonaws.com:587` and `example2.com smtp:email-smtp.us-east-1.amazonaws.com:587` How will the transport handle the credentials? I was told to use `relayhost` and `postmap` to set this up but I'm still getting confused. – Gwynn Sep 20 '20 at 10:47

0 Answers0