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

This commit is contained in:
andre.peters committed 2017-12-17 17:45:12 +01:00
1 parent a771d66889
commit 52f4f850cf
1 file changed
+3
+3
View File
@@ -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