Browse Source

[Postfix] Fix missing authentication data for relayhosts when sender domain is alias domain

andre.peters 8 năm trước cách đây
mục cha
commit
52f4f850cf
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      data/Dockerfiles/postfix/postfix.sh

+ 3 - 0
data/Dockerfiles/postfix/postfix.sh

@@ -83,6 +83,9 @@ query = SELECT CONCAT_WS(':', username, password) AS auth_data FROM relayhosts
   WHERE id IN (
     SELECT relayhost FROM domain
       WHERE CONCAT('@', domain) = '%s'
+      OR '%s' IN (
+        SELECT CONCAT('@', alias_domain) FROM alias_domain
+      )
   );
 EOF