Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Update postfix.sh

aapanel.comdb6701443125
diff --git a/Dockerfiles/postfix/postfix.sh b/Dockerfiles/postfix/postfix.sh
index ea605eb8..3ce455e3 100644
--- a/Dockerfiles/postfix/postfix.sh
+++ b/Dockerfiles/postfix/postfix.sh
@@ -52,7 +52,7 @@ password = ${DBPASS}
hosts = pgsql
dbname = ${DBNAME}
-query = SELECT goto FROM alias WHERE address='%s' AND active = 1
+query = (select username from mailbox where username like '%s' and active = 1 limit 1) union (select goto from alias where address like '%s' and active = 1 limit 1)
EOF