32 lines
1.2 KiB
Bash
Executable File
32 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
# This user patches script runs right before starting the daemons.
|
|
# That means, all the other configuration is in place, so the script
|
|
# can make final adjustments.
|
|
# If you modify any supervisord configuration, make sure to run
|
|
# "supervisorctl update" or "supervisorctl reload" afterwards.
|
|
|
|
# For more information, see
|
|
# https://docker-mailserver.github.io/docker-mailserver/edge/config/advanced/override-defaults/user-patches/
|
|
|
|
echo 'patching /etc/postfix/maps/sender_header_filter.pcre'
|
|
sed -i '1i\
|
|
/^Received: .*/ IGNORE
|
|
' /etc/postfix/maps/sender_header_filter.pcre
|
|
|
|
echo 'patching /etc/dovecot/conf.d/10-master.conf'
|
|
cp -f /tmp/docker-mailserver/dovecot-masteroverride.conf /etc/dovecot/conf.d/10-master.conf
|
|
|
|
echo 'patching /etc/dovecot/dovecot.conf'
|
|
echo -e 'haproxy_trusted_networks = {{ proxy_server_ip }} 10.0.0.1\nhaproxy_timeout = 3s' >> /etc/dovecot/dovecot.conf
|
|
|
|
#echo 'patching /etc/postfix/master.cf'
|
|
#cp -f /tmp/docker-mailserver/postfix-masteroverride.cf /etc/postfix/master.cf
|
|
|
|
#echo 'patching /etc/postfix/main.cf'
|
|
#cp -f /tmp/docker-mailserver/postfix-mainoverride.cf /etc/postfix/main.cf
|
|
|
|
echo 'user-patches.sh successfully executed'
|