feat(postfix-pgsql): add Dockerfile with templated config and entrypoint

This commit is contained in:
Damien
2026-06-25 11:12:46 +02:00
parent 1af298f74e
commit 8143fff65f
5 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# =============================================================================
# Postfix pgsql_table lookup: relay_domains
#
# Returns the domain itself when Postfix should relay mail for it.
# Rendered at container startup from environment variables.
# =============================================================================
user = ${POSTGRES_USER}
password = ${POSTGRES_PASSWORD}
hosts = ${POSTGRES_HOST}:${POSTGRES_PORT}
dbname = ${POSTGRES_DB}
query = SELECT domain FROM relay_domain WHERE domain='%s'