Enable mail VPN tunnel, add proxy server private IP to trusted dovecot hosts

This commit is contained in:
cspark 2024-02-22 17:40:14 +00:00
parent ee26357144
commit 0973cd869a
4 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
**/*.enc
newkey_out
hosts
prox-server-firewall-setup.yml
prox-server-setup.yml

View File

@ -8,9 +8,9 @@ PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING
ListenPort = {{ proxy_server_vpn_port }}
# Mail Service
#[Peer]
#PublicKey = {{ mail_service_pubkey }}
#AllowedIPs = 10.0.0.2/32
[Peer]
PublicKey = {{ mail_service_pubkey }}
AllowedIPs = 10.0.0.2/32
# Git Service
[Peer]

View File

@ -20,7 +20,7 @@ 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 }}\nhaproxy_timeout = 3s' >> /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

View File

@ -44,7 +44,7 @@
group: service_mail
loop:
- docker-compose.yml
- certbot-docker-compose-initrenew.yml
# - certbot-docker-compose-initrenew.yml
- myconfig.org
- name: Copy SSL certificates