mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
take into account public domain in pgsql-relay-domains.cf and /etc/postfix/pgsql-transport-maps.cf
This commit is contained in:
parent
39aeb81f9a
commit
3e0497ff59
1 changed files with 2 additions and 0 deletions
|
@ -345,6 +345,7 @@ password = mypassword
|
|||
dbname = simplelogin
|
||||
|
||||
query = SELECT domain FROM custom_domain WHERE domain='%s' AND verified=true
|
||||
UNION SELECT domain FROM public_domain WHERE domain='%s'
|
||||
UNION SELECT '%s' WHERE '%s' = 'mydomain.com' LIMIT 1;
|
||||
```
|
||||
|
||||
|
@ -360,6 +361,7 @@ dbname = simplelogin
|
|||
|
||||
# forward to smtp:127.0.0.1:20381 for custom domain AND email domain
|
||||
query = SELECT 'smtp:127.0.0.1:20381' FROM custom_domain WHERE domain = '%s' AND verified=true
|
||||
UNION SELECT 'smtp:127.0.0.1:2025' FROM public_domain WHERE domain = '%s'
|
||||
UNION SELECT 'smtp:127.0.0.1:20381' WHERE '%s' = 'mydomain.com' LIMIT 1;
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue