From 0baf7954c51d34a50c09cabf99e3cd3dc8fafecc Mon Sep 17 00:00:00 2001 From: bigpigeon Date: Fri, 2 Sep 2016 20:25:15 +0800 Subject: [PATCH] missing with relayhost (#303) * add AWS_SES_PORT env * issue: relayhost port --- target/start-mailserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 927af278..1f0b40b0 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -283,7 +283,7 @@ if [ ! -z "$AWS_SES_HOST" -a ! -z "$AWS_SES_USERPASS" ]; then echo "Setting up outgoing email via AWS SES host $AWS_SES_HOST:$AWS_SES_PORT" echo "[$AWS_SES_HOST]:$AWS_SES_PORT $AWS_SES_USERPASS" >>/etc/postfix/sasl_passwd postconf -e \ - "relayhost = [$AWS_SES_HOST]:25" \ + "relayhost = [$AWS_SES_HOST]:$AWS_SES_PORT" \ "smtp_sasl_auth_enable = yes" \ "smtp_sasl_security_options = noanonymous" \ "smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" \