Explorar el Código

[Postfix] Fix transport map authentication with multiple identical nexthops

André Peters hace 7 años
padre
commit
4e7135a40e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      data/Dockerfiles/postfix/postfix.sh

+ 2 - 1
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 <<EOF > /opt/postfix/conf/sql/mysql_virtual_alias_domain_catchall_maps.cf