Skip to content
Snippets Groups Projects
Verified Commit c34f0e30 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(postfix): Allow relay setup

This patch updates the container image to allow relayhosts with TLS
enabled.
parent c7709cea
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ RUN apk add --no-cache ca-certificates rsyslog supervisor
RUN update-ca-certificates
RUN apk add --no-cache postfix
RUN apk add --no-cache postfix cyrus-sasl cyrus-sasl-login
RUN mkdir /var/spool/postfix/etc && echo "smtp 25/tcp mail # Simple Mail Transfer" > /var/spool/postfix/etc/services
......
......@@ -64,7 +64,7 @@ smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
#smtp_tls_policy_maps = lmdb:/srv/tmp/tls-policies
smtp_tls_policy_maps = lmdb:/srv/tmp/tls-policies
########
##
......@@ -156,6 +156,18 @@ virtual_mailbox_maps = lmdb:/srv/tmp/mailboxes
virtual_mailbox_domains = lmdb:/srv/tmp/domains
local_recipient_maps = $virtual_mailbox_maps
## Relay config
sender_dependent_relayhost_maps = lmdb:/srv/tmp/relayhosts
## SMTP sasl
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_sasl_password_maps = lmdb:/srv/tmp/sasl_passwd
smtp_tls_note_starttls_offer = yes
########
##
## Miscellaneous
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment