From 8fcb10cc0a4258036a3a2ffedb483f39a71a4495 Mon Sep 17 00:00:00 2001 From: Randall Randall Date: Thu, 1 May 2014 22:14:04 +0000 Subject: [PATCH] don't reject alias-only domains --- scripts/mail.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mail.sh b/scripts/mail.sh index 88b214d2..9f9af39d 100755 --- a/scripts/mail.sh +++ b/scripts/mail.sh @@ -85,10 +85,10 @@ tools/editconf.py /etc/postfix/main.cf \ # Here's the path to the database. db_path=$STORAGE_ROOT/mail/users.sqlite -# SQL statement to check if we handle mail for a domain. +# SQL statement to check if we handle mail for a domain, either for users or aliases. cat > /etc/postfix/virtual-mailbox-domains.cf << EOF; dbpath=$db_path -query = SELECT 1 FROM users WHERE email LIKE '%%@%s' +query = SELECT 1 FROM users WHERE email LIKE '%%@%s' UNION SELECT 1 FROM aliases WHERE source LIKE '%%@%s' EOF # SQL statement to check if we handle mail for a user.