Extra DOVECOT_AUTH_PORT

Signed-off-by: René Jochum <rene@jochum.dev>
master
René Jochum 4 years ago
parent 020d559326
commit a4cdbe7ad2

@ -12,7 +12,8 @@ ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO postfix;
## Environment variables
- DOVECOT_HOST - if not given it will be `dovecot:12345`
- DOVECOT_HOST - Dovecot host, defaults to `dovecot`
- DOVECOT_AUTH_PORT - Auth port, defaults to `12345`
- MYDOMAIN
- SUBNET
- RELAYNETS

@ -16,7 +16,7 @@ relayhost = {{ RELAYHOST }}
# enable auth via Dovecot
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = inet:{{ DOVECOT_HOST }}
smtpd_sasl_path = inet:{{ DOVECOT_HOST }}:{{ DOVECOT_AUTH_PORT }}
smtpd_sasl_type = dovecot
message_size_limit = 52428800

@ -24,7 +24,10 @@ if "MESSAGE_SIZE_LIMIT" not in os.environ:
os.environ["MESSAGE_SIZE_LIMIT"] = 52428800
if "DOVECOT_HOST" not in os.environ:
os.environ['DOVECOT_HOST'] = 'dovecot:12345'
os.environ['DOVECOT_HOST'] = 'dovecot'
if "DOVECOT_AUTH_PORT" not in os.environ:
os.environ['DOVECOT_AUTH_PORT'] = '12345'
for postfix_file in glob.glob("/conf/**/**.cf", recursive=True):
p = pathlib.Path(postfix_file)

Loading…
Cancel
Save