Only use pgsql for local users

This commit is contained in:
Alex D. 2023-05-02 11:44:11 +00:00
parent b9c284e099
commit 2378b48aba
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@
. ../APKBUILD-config.template . ../APKBUILD-config.template
pkgver=2023.03.14.02 pkgver=2023.05.02.01
pkgrel=0 pkgrel=0
depends="postfix-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private" depends="postfix-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private"

View File

@ -2,4 +2,5 @@ hosts = postgresql.routinginfo.internal:7550
dbname = mail dbname = mail
user = postfix user = postfix
password = POSTGRESQL_PASSWORD password = POSTGRESQL_PASSWORD
query = SELECT target FROM aliases WHERE alias = '%u' AND '%d' = 'redxen.eu' AND active = '1' query = SELECT target FROM aliases WHERE alias = '%u' AND active = '1'
domain = redxen.eu

View File

@ -2,4 +2,5 @@ hosts = postgresql.routinginfo.internal:7550
dbname = mail dbname = mail
user = postfix user = postfix
password = POSTGRESQL_PASSWORD password = POSTGRESQL_PASSWORD
query = SELECT userid FROM users WHERE userid = '%u' AND '%d' = 'redxen.eu' AND active = '1' query = SELECT userid FROM users WHERE userid = '%u' AND active = '1'
domain = redxen.eu