2
0
André Peters 7 жил өмнө
parent
commit
0553dc5959

+ 2 - 2
data/Dockerfiles/postfix/postfix.sh

@@ -39,7 +39,7 @@ query = SELECT IF(EXISTS(
           SELECT CONCAT('%u', '@', target_domain) FROM alias_domain
           SELECT CONCAT('%u', '@', target_domain) FROM alias_domain
             WHERE alias_domain='%d'
             WHERE alias_domain='%d'
         )
         )
-      ) AND json_extract(attributes, '$.tls_enforce_in') LIKE '%1%' AND mailbox.active = '1'
+      ) AND json_extract(attributes, '$.tls_enforce_in') LIKE '%%1%%' AND mailbox.active = '1'
   ), 'reject_plaintext_session', NULL) AS 'tls_enforce_in';
   ), 'reject_plaintext_session', NULL) AS 'tls_enforce_in';
 EOF
 EOF
 
 
@@ -58,7 +58,7 @@ query = SELECT GROUP_CONCAT(transport SEPARATOR '') AS transport_maps
               WHERE alias_domain = '%d'
               WHERE alias_domain = '%d'
           )
           )
         )
         )
-        AND json_extract(attributes, '$.tls_enforce_out') LIKE '%1%'
+        AND json_extract(attributes, '$.tls_enforce_out') LIKE '%%1%%'
         AND mailbox.active = '1'
         AND mailbox.active = '1'
     ), 'smtp_enforced_tls:', 'smtp:') AS 'transport'
     ), 'smtp_enforced_tls:', 'smtp:') AS 'transport'
     UNION ALL
     UNION ALL