add ssmtp for mail redirecting
This commit is contained in:
parent
89e243f9b7
commit
c982b90c7b
@ -1,6 +1,6 @@
|
|||||||
FROM thallian/confd-env:latest
|
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 addgroup -g 1111 vmail
|
||||||
RUN adduser -u 1111 -h /var/lib/vmail -D -G vmail vmail
|
RUN adduser -u 1111 -h /var/lib/vmail -D -G vmail vmail
|
||||||
|
3
rootfs/etc/confd/conf.d/revaliases.toml
Normal file
3
rootfs/etc/confd/conf.d/revaliases.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[template]
|
||||||
|
src = "revaliases.tmpl"
|
||||||
|
dest = "/etc/ssmtp/revaliases"
|
3
rootfs/etc/confd/conf.d/ssmtp.conf.toml
Normal file
3
rootfs/etc/confd/conf.d/ssmtp.conf.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[template]
|
||||||
|
src = "ssmtp.conf.tmpl"
|
||||||
|
dest = "/etc/ssmtp/ssmtp.conf"
|
0
rootfs/etc/confd/templates/revaliases.tmpl
Normal file
0
rootfs/etc/confd/templates/revaliases.tmpl
Normal file
7
rootfs/etc/confd/templates/ssmtp.conf.tmpl
Normal file
7
rootfs/etc/confd/templates/ssmtp.conf.tmpl
Normal 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
|
Loading…
Reference in New Issue
Block a user