98 lines
2.2 KiB
INI
Executable File
98 lines
2.2 KiB
INI
Executable File
# {{ ansible_managed }}
|
|
|
|
# Mail Configuration
|
|
frontend ft_smtp
|
|
bind {{ proxy_server_ip }}:25
|
|
mode tcp
|
|
timeout client 1m
|
|
log global
|
|
option tcplog
|
|
default_backend bk_smtp
|
|
|
|
backend bk_smtp
|
|
mode tcp
|
|
log global
|
|
# option tcplog
|
|
timeout server 1m
|
|
timeout connect 7s
|
|
server postfix 10.0.0.2:25 send-proxy
|
|
|
|
frontend ft_smtps
|
|
bind {{ proxy_server_ip }}:465
|
|
mode tcp
|
|
timeout client 1m
|
|
log global
|
|
option tcplog
|
|
default_backend bk_smtps
|
|
|
|
backend bk_smtps
|
|
mode tcp
|
|
log global
|
|
# option tcplog
|
|
timeout server 1m
|
|
timeout connect 7s
|
|
server postfix 10.0.0.2:465 send-proxy
|
|
|
|
frontend ft_submission
|
|
bind {{ proxy_server_ip }}:587
|
|
mode tcp
|
|
timeout client 1m
|
|
log global
|
|
option tcplog
|
|
default_backend bk_submission
|
|
|
|
backend bk_submission
|
|
mode tcp
|
|
log global
|
|
# option tcplog
|
|
timeout server 1m
|
|
timeout connect 7s
|
|
server postfix 10.0.0.2:587 send-proxy
|
|
|
|
|
|
frontend ft_imaps
|
|
bind {{ proxy_server_ip }}:993
|
|
mode tcp
|
|
timeout client 1m
|
|
default_backend bk_imaps
|
|
|
|
backend bk_imaps
|
|
mode tcp
|
|
balance leastconn
|
|
stick store-request src
|
|
stick-table type ip size 200k expire 30m
|
|
timeout server 1m
|
|
timeout connect 7s
|
|
server imaps1 10.0.0.2:993 send-proxy-v2
|
|
|
|
frontend ft_imap
|
|
bind {{ proxy_server_ip }}:143
|
|
mode tcp
|
|
timeout client 1m
|
|
default_backend bk_imap
|
|
|
|
backend bk_imap
|
|
mode tcp
|
|
balance leastconn
|
|
stick store-request src
|
|
stick-table type ip size 200k expire 30m
|
|
timeout server 1m
|
|
timeout connect 7s
|
|
server imap1 10.0.0.2:143 send-proxy-v2
|
|
|
|
# Technitium DNS Server Configuration - TCP Reverse Proxying (UDP handled via Nginx in nginx.conf)
|
|
frontend ft_technitium_tcp
|
|
bind {{ proxy_server_ip }}:53
|
|
mode tcp
|
|
timeout client 1m
|
|
default_backend bk_technitium_tcp
|
|
|
|
backend bk_technitium_tcp
|
|
mode tcp
|
|
balance leastconn
|
|
stick store-request src
|
|
stick-table type ip size 200k expire 30m
|
|
timeout server 1m
|
|
timeout connect 7s
|
|
server 10.0.0.10:7649 send-proxy-v2
|