You are here: Foswiki>HomeInfra Web>HAProxy (15 Sep 2015, AdminUser)Edit Attach
HAProxy is the key element for the mail cluster.

/etc/haproxy/haproxy.cfg

global
	log /dev/log	local0
	log /dev/log	local1 notice
	chroot /var/lib/haproxy
	stats socket /run/haproxy/admin.sock mode 660 level admin
	stats timeout 30s
	user haproxy
	group haproxy
	daemon

frontend ft_smtp
	bind :25
        bind :::25
	mode tcp
	no option http-server-close
	timeout client 1m
	log global
	option tcplog
	default_backend bk_postfix
 
backend bk_postfix
	balance roundrobin
	mode tcp
	no option http-server-close
	log global
	option tcplog
	timeout server 10s
	timeout connect 5s
	server postfix0 x.x.x.x:25 send-proxy
	server postfix1 y.y.y.y:25 send-proxy
	server postfix2 z.z.z.z:25 send-proxy
Topic revision: r3 - 15 Sep 2015, AdminUser - This page was cached on 04 Jun 2017 - 05:08.

This site is powered by FoswikiCopyright © by Eddy Vervest