From 6278ed6f95a4485f3de780adfc7a1d003fcb0596 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 3 Sep 2020 12:47:39 -0300 Subject: [PATCH] configurable domains and forwarding --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6df4fbb..509bf26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN postconf -e alias_maps='hash:/etc/postfix/aliases' \ && postconf -e readme_directory='/usr/share/doc/postfix' \ && postconf -e html_directory='no' \ && postconf -e soft_bounce='no' \ - && postconf -e mydestination='$mydomain' \ + && postconf -e mydestination='/etc/postfix/maps/domains.cf' \ && postconf -e inet_interfaces='all' \ && postconf -e local_recipient_maps='unix:passwd.byname $alias_maps' \ && postconf -e mynetworks_style='host' \ @@ -67,7 +67,8 @@ RUN postconf -e alias_maps='hash:/etc/postfix/aliases' \ && postconf -e append_dot_mydomain=yes \ && postconf -e masquerade_domains='$mydomain' \ && postconf -e non_smtpd_milters=inet:opendkim:8891 \ - && postconf -e smtpd_milters=inet:opendkim:8891 + && postconf -e smtpd_milters=inet:opendkim:8891 \ + && postconf -e virtual_alias_maps=hash:/etc/postfix/maps/virtual RUN newaliases RUN postmap /etc/postfix/transport @@ -82,6 +83,7 @@ RUN monit -t # Save email for later! VOLUME "/var/spool/postfix" +VOLUME "/etc/postfix/maps" VOLUME "/home" # Port