Auto saved by Logseq

This commit is contained in:
matze 2023-02-20 15:03:00 +01:00
parent 61f153974d
commit ac648926af

View File

@ -168,4 +168,17 @@
query = SELECT domain FROM custom_domain WHERE domain='%s' AND verified=true
UNION SELECT '%s' WHERE '%s' = 'mydomain.com' LIMIT 1;
```
- ``/etc/postfix/pgsql-transport-maps.cf``
```
# postgres config
hosts = localhost
user = simplelogin
password = !oG3^fx!UMn%bazokfs9MSJoiD
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:20381' WHERE '%s' = 'mydomain.com' LIMIT 1;
```