-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.prod.cfg
More file actions
38 lines (32 loc) · 1.39 KB
/
Copy pathhaproxy.prod.cfg
File metadata and controls
38 lines (32 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
global
log stdout local0
daemon
defaults
mode tcp
timeout connect 5s # Max time to connect to a backend server.
timeout client 50s # Max time a client can be inactive.
timeout server 50s # Max time a backend server can be inactive.
# Frontend for MTA-to-MTA delivery
frontend smtpd_mta_delivery_25
bind *:25 # Listen on all interfaces on port 25
mode tcp
default_backend bocal-smtpd_backend
# Frontend for standard SMTP submission (STARTTLS)
frontend smtp_submission_587
bind *:587 # Listen on all interfaces on port 587
mode tcp
default_backend bocal-smtpd_backend
# Frontend for implicit TLS SMTP (SMTPS)
frontend smtp_implicit_tls_465
bind *:465 # Listen on all interfaces on port 465
mode tcp
default_backend bocal-smtpd_backend
backend bocal-smtpd_backend
mode tcp
balance roundrobin
# Define your bocal-smtpd instances
# Docker Compose service name and the internal port bocal-smtpd listen on
# :465 is the internal port bocal-smtpd should listen on (as configured in its main.go)
server bocal-smtpd-1 bocal-smtpd-bocal-smtpd-1:465 check inter 2s rise 3 fall 2 # Example for 1 replica
# server bocal-smtpd-2 bocal-smtpd:465 check inter 2s rise 3 fall 2 # For replica 2 (if you have 2)
# server bocal-smtpd-3 bocal-smtpd:465 check inter 2s rise 3 fall 2 # For replica 3 (if you have 3)