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

master
andre.peters 2017-12-17 17:45:12 +01:00
parent a771d66889
commit 52f4f850cf
1 changed files with 3 additions and 0 deletions

View File

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