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