configurable domains and forwarding

This commit is contained in:
f 2020-09-03 12:47:39 -03:00
parent 833502b6dc
commit 6278ed6f95

View file

@ -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