summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/haproxy.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/haproxy.cfg b/etc/haproxy.cfg
index 96ebd64..1c68147 100644
--- a/etc/haproxy.cfg
+++ b/etc/haproxy.cfg
@@ -53,6 +53,8 @@ listen smtp
description Exim SMTP
bind *:25
mode tcp
+ option tcp-check
+ tcp-check expect rstring ^220
default-server send-proxy-v2 observe layer4 check
server defiant defiant:11025
server firebrand firebrand:11025
@@ -62,6 +64,8 @@ listen submissions
description Exim SMTP
bind *:465
mode tcp
+ option tcp-check
+ tcp-check expect rstring ^220
default-server send-proxy-v2 observe layer4 check check-ssl
server defiant defiant:11465
server firebrand firebrand:11465
@@ -73,6 +77,8 @@ listen imaps
mode tcp
stick-table type ip size 20k peers randomlan
stick on src
+ option tcp-check
+ tcp-check expect rstring ^\*\ OK
timeout client 2h
timeout server 2h
default-server observe layer4 check check-ssl