summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-09 13:28:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-09 13:28:55 +0000
commitb5aa3c4ff9301bb8db30a3ba30a22db89c62b8a5 (patch)
treefc66b0e5cb87aa1939ba66f1c1c4f559d2c56fa7
parentAdd IMAPS stick table for haproxy (diff)
downloadconfig-b5aa3c4ff9301bb8db30a3ba30a22db89c62b8a5.tar.bz2
config-b5aa3c4ff9301bb8db30a3ba30a22db89c62b8a5.tar.xz
config-b5aa3c4ff9301bb8db30a3ba30a22db89c62b8a5.zip
Add layer7 haproxy checks for imaps, smtp and submissions
-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