add wildcard sending
This commit is contained in:
parent
438c4e3035
commit
2d91915d18
@ -8,7 +8,8 @@ create table if not exists virtual_domains (
|
||||
|
||||
create table if not exists virtual_users (
|
||||
email text primary key,
|
||||
domain_name text not null references virtual_domains(name)
|
||||
domain_name text not null references virtual_domains(name),
|
||||
wildcard_sender bool default false
|
||||
);
|
||||
|
||||
create table if not exists virtual_aliases (
|
||||
|
@ -2,4 +2,4 @@ hosts = {{ getenv "DB_HOST" }}
|
||||
user = {{ getenv "DB_USER" "email" }}
|
||||
password = {{ getenv "DB_PASSWORD" }}
|
||||
dbname = {{ getenv "DB_NAME" "email" }}
|
||||
query = SELECT email FROM virtual_users WHERE email='%u' UNION SELECT destination FROM virtual_aliases WHERE source='%u'
|
||||
query = SELECT email FROM virtual_users WHERE email='%u' UNION SELECT destination FROM virtual_aliases WHERE source='%u' UNION SELECT email FROM virtual_users WHERE wildcard_sender=true
|
||||
|
Loading…
Reference in New Issue
Block a user