From 0974a5fb605384930912aefb1dd6c6805f47858a Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Tue, 25 Dec 2018 15:02:50 +0100 Subject: [PATCH] Fix transport map authentication with multiple identical nexthops --- data/Dockerfiles/postfix/postfix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index 425d65ff..6ec5cc1d 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -120,7 +120,8 @@ dbname = ${DBNAME} query = SELECT CONCAT_WS(':', username, password) AS auth_data FROM transports WHERE nexthop = '%s' AND active = '1' - AND username != ''; + AND username != '' + LIMIT 1; EOF cat < /opt/postfix/conf/sql/mysql_virtual_alias_domain_catchall_maps.cf