Files
docker-images/images/postfix-pgsql/templates/pgsql-transport-maps.cf.template

16 lines
784 B
Plaintext

# =============================================================================
# Postfix pgsql_table lookup: transport_maps
#
# Returns the internal SMTP relay target that accepted mail gets forwarded
# to once a recipient domain matches relay_domains. The target itself is
# baked into the query from SMTP_RELAY_HOST/SMTP_RELAY_PORT at startup; this
# image has no further knowledge of what consumes the mail downstream.
# Rendered at container startup from environment variables.
# =============================================================================
user = ${POSTGRES_USER}
password = ${POSTGRES_PASSWORD}
hosts = ${POSTGRES_HOST}:${POSTGRES_PORT}
dbname = ${POSTGRES_DB}
query = SELECT 'smtp:[${SMTP_RELAY_HOST}]:${SMTP_RELAY_PORT}' FROM relay_domain WHERE domain='%s'