configurable domains and forwarding
This commit is contained in:
parent
833502b6dc
commit
6278ed6f95
1 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,7 @@ RUN postconf -e alias_maps='hash:/etc/postfix/aliases' \
|
||||||
&& postconf -e readme_directory='/usr/share/doc/postfix' \
|
&& postconf -e readme_directory='/usr/share/doc/postfix' \
|
||||||
&& postconf -e html_directory='no' \
|
&& postconf -e html_directory='no' \
|
||||||
&& postconf -e soft_bounce='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 inet_interfaces='all' \
|
||||||
&& postconf -e local_recipient_maps='unix:passwd.byname $alias_maps' \
|
&& postconf -e local_recipient_maps='unix:passwd.byname $alias_maps' \
|
||||||
&& postconf -e mynetworks_style='host' \
|
&& 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 append_dot_mydomain=yes \
|
||||||
&& postconf -e masquerade_domains='$mydomain' \
|
&& postconf -e masquerade_domains='$mydomain' \
|
||||||
&& postconf -e non_smtpd_milters=inet:opendkim:8891 \
|
&& 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 newaliases
|
||||||
RUN postmap /etc/postfix/transport
|
RUN postmap /etc/postfix/transport
|
||||||
|
@ -82,6 +83,7 @@ RUN monit -t
|
||||||
|
|
||||||
# Save email for later!
|
# Save email for later!
|
||||||
VOLUME "/var/spool/postfix"
|
VOLUME "/var/spool/postfix"
|
||||||
|
VOLUME "/etc/postfix/maps"
|
||||||
VOLUME "/home"
|
VOLUME "/home"
|
||||||
|
|
||||||
# Port
|
# Port
|
||||||
|
|
Loading…
Reference in a new issue