add ssmtp for mail redirecting

This commit is contained in:
Sebastian Hugentobler 2016-08-24 11:36:49 +02:00
parent 89e243f9b7
commit c982b90c7b
5 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,6 @@
FROM thallian/confd-env:latest
RUN apk add --no-cache dovecot dovecot-ldap dovecot-pigeonhole-plugin
RUN apk add --no-cache dovecot dovecot-ldap dovecot-pigeonhole-plugin ssmtp
RUN addgroup -g 1111 vmail
RUN adduser -u 1111 -h /var/lib/vmail -D -G vmail vmail

View File

@ -0,0 +1,3 @@
[template]
src = "revaliases.tmpl"
dest = "/etc/ssmtp/revaliases"

View File

@ -0,0 +1,3 @@
[template]
src = "ssmtp.conf.tmpl"
dest = "/etc/ssmtp/ssmtp.conf"

View File

@ -0,0 +1,7 @@
root=
mailhub={{getenv "SSMTP_MAIL_RELAY"}}
UseSTARTTLS={{getenv "SSMTP_USE_STARTTLS"}}
AuthUser={{getenv "SSMTP_USER"}}
AuthPass={{getenv "SSMTP_PASSWORD"}}
AuthMethod={{getenv "SSMTP_AUTH_METHOD"}}
FromLineOverride=yes