mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
don't reject alias-only domains
This commit is contained in:
parent
74ec3d9696
commit
8fcb10cc0a
@ -85,10 +85,10 @@ tools/editconf.py /etc/postfix/main.cf \
|
|||||||
# Here's the path to the database.
|
# Here's the path to the database.
|
||||||
db_path=$STORAGE_ROOT/mail/users.sqlite
|
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;
|
cat > /etc/postfix/virtual-mailbox-domains.cf << EOF;
|
||||||
dbpath=$db_path
|
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
|
EOF
|
||||||
|
|
||||||
# SQL statement to check if we handle mail for a user.
|
# SQL statement to check if we handle mail for a user.
|
||||||
|
Loading…
Reference in New Issue
Block a user