<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — service not running after making cluster using HAProxy KeepAlived]]></title>
		<link>https://forum.iredmail.org/topic21085-service-not-running-after-making-cluster-using-haproxy-keepalived.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21085.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in service not running after making cluster using HAProxy KeepAlived.]]></description>
		<lastBuildDate>Sat, 21 Feb 2026 18:29:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: service not running after making cluster using HAProxy KeepAlived]]></title>
			<link>https://forum.iredmail.org/post91693.html#p91693</link>
			<description><![CDATA[<p>The ports are already in use, you cannot bind to sockets that are used by other service</p>]]></description>
			<author><![CDATA[null@example.com (Cthulhu)]]></author>
			<pubDate>Sat, 21 Feb 2026 18:29:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91693.html#p91693</guid>
		</item>
		<item>
			<title><![CDATA[service not running after making cluster using HAProxy KeepAlived]]></title>
			<link>https://forum.iredmail.org/post91691.html#p91691</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.7.4 MARIADB edition<br />- Deployed with iRedMail Easy or the downloadable installer?downloadable installer<br />- Linux/BSD distribution name and version: Ubuntu 24.04 LTS 6.8.0-90-generic<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Web server (Apache or Nginx):Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>I have configured the HAproxy as per below configuration. using Iredmail documentation for testing purpose.</p><p>global<br />&nbsp; &nbsp; &nbsp; &nbsp; log 127.0.0.1&nbsp; &nbsp;local0<br />&nbsp; &nbsp; &nbsp; &nbsp; log 127.0.0.1&nbsp; &nbsp;local1 debug<br />&nbsp; &nbsp; &nbsp; &nbsp; ssl-default-bind-options no-sslv3<br />&nbsp; &nbsp; &nbsp; &nbsp; tune.ssl.default-dh-param 2048<br />&nbsp; &nbsp; &nbsp; &nbsp; maxconn&nbsp; &nbsp;45000 # Total Max Connections.<br />&nbsp; &nbsp; &nbsp; &nbsp; daemon<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />defaults<br />&nbsp; &nbsp; &nbsp; &nbsp; timeout server 86400000<br />&nbsp; &nbsp; &nbsp; &nbsp; timeout connect 86400000<br />&nbsp; &nbsp; &nbsp; &nbsp; timeout client 86400000<br />&nbsp; &nbsp; &nbsp; &nbsp; timeout queue&nbsp; &nbsp;1000s</p><p>listen premierdis-http<br />&nbsp; &nbsp; &nbsp; &nbsp; bind 192.168.5.10:80<br />&nbsp; &nbsp; &nbsp; &nbsp; mode http<br />&nbsp; &nbsp; &nbsp; &nbsp; redirect scheme https if !{ ssl_fc }<br />listen premierdis<br />&nbsp; &nbsp; &nbsp; &nbsp; bind 192.168.5.10:443 ssl crt /etc/ssl/iredmail.org/jhelum.co.pem<br />&nbsp; &nbsp; &nbsp; &nbsp; mode http<br />&nbsp; &nbsp; &nbsp; &nbsp; stats enable<br />&nbsp; &nbsp; &nbsp; &nbsp; stats uri /haproxy?stats<br />&nbsp; &nbsp; &nbsp; &nbsp; stats realm STATS<br />&nbsp; &nbsp; &nbsp; &nbsp; stats auth user:pass<br />&nbsp; &nbsp; &nbsp; &nbsp; balance source<br />&nbsp; &nbsp; &nbsp; &nbsp; option http-server-close<br />&nbsp; &nbsp; &nbsp; &nbsp; timeout http-keep-alive 3000<br />&nbsp; &nbsp; &nbsp; &nbsp; http-request del-header ^X-Real-IP:<br />&nbsp; &nbsp; &nbsp; &nbsp; option forwardfor header X-Real-IP<br />&nbsp; &nbsp; &nbsp; &nbsp; http-request add-header X-Forwarded-Proto https<br />&nbsp; &nbsp; &nbsp; &nbsp; server ha-mail1 192.168.5.1:80 check<br />&nbsp; &nbsp; &nbsp; &nbsp; server ha-mail2 192.168.5.2:80 check<br />frontend ft_http<br />&nbsp; &nbsp; &nbsp; &nbsp; bind :80<br />&nbsp; &nbsp; &nbsp; &nbsp; mode http<br />&nbsp; &nbsp; &nbsp; &nbsp; default_backend bk_http<br />frontend ft_https<br />&nbsp; &nbsp; &nbsp; &nbsp; bind :443 ssl crt /etc/ssl/iredmail.org/jhelum.co.pem<br />&nbsp; &nbsp; &nbsp; &nbsp; mode tcp<br />&nbsp; &nbsp; &nbsp; &nbsp; default_backend bk_https<br />backend bk_http<br />&nbsp; &nbsp; &nbsp; &nbsp; mode http<br />&nbsp; &nbsp; &nbsp; &nbsp; balance roundrobin<br />&nbsp; &nbsp; &nbsp; &nbsp; stick on src table bk_https<br />&nbsp; &nbsp; &nbsp; &nbsp; default-server inter 1s<br />&nbsp; &nbsp; &nbsp; &nbsp; server ha-mail1 192.168.5.1:80 check id 1<br />&nbsp; &nbsp; &nbsp; &nbsp; server ha-mail2 192.168.5.2:80 check id 2<br />backend bk_https<br />&nbsp; &nbsp; &nbsp; &nbsp; mode tcp<br />&nbsp; &nbsp; &nbsp; &nbsp; balance roundrobin<br />&nbsp; &nbsp; &nbsp; &nbsp; stick-table type ip size 200k expire 30m<br />&nbsp; &nbsp; &nbsp; &nbsp; stick on src<br />&nbsp; &nbsp; &nbsp; &nbsp; default-server inter 1s<br />&nbsp; &nbsp; &nbsp; &nbsp; server ha-mail1 192.168.5.1:443 check id 1<br />&nbsp; &nbsp; &nbsp; &nbsp; server ha-mail2 192.168.5.2:443 check id 2<br /># Reporting<br />listen stats<br />&nbsp; &nbsp; bind :9000<br />&nbsp; &nbsp; mode http</p><p> # Enable statistics<br />&nbsp; &nbsp; stats enable</p><p>&nbsp; &nbsp;# Hide HAPRoxy version, a necessity for any public-facing site<br />&nbsp; &nbsp; stats hide-version</p><p>&nbsp; &nbsp; # Show text in authentication popup<br />&nbsp; &nbsp; stats realm Authorization</p><p>&nbsp; &nbsp; # URI of the stats page: localhost:9000/haproxy_stats<br />&nbsp; &nbsp; stats uri /haproxy_stats</p><p>&nbsp; &nbsp; # Set a username and password<br />&nbsp; &nbsp; stats auth user:user password</p><p>When we start HAproxy service it shows below error because Nginx is also using same ports.</p><p>[ALERT]&nbsp; &nbsp; (122326) : Binding [/etc/haproxy/haproxy.cfg:16] for proxy premierdis-http: cannot bind socket (Address already in use) for [192.168.5.10:80]<br />[ALERT]&nbsp; &nbsp; (122326) : Binding [/etc/haproxy/haproxy.cfg:35] for frontend ft_http: cannot bind socket (Address already in use) for [0.0.0.0:80]<br /> [ALERT]&nbsp; &nbsp; (122326) : Binding [/etc/haproxy/haproxy.cfg:39] for frontend ft_https: cannot bind socket (Address already in use) for [0.0.0.0:443]</p><p>I need assistance on resolving this issue so both HAproxy and Nyngix service start and I can open mail on browser through virtual IP. I am not able to figure out what changes to be done on iredmail.</p>]]></description>
			<author><![CDATA[null@example.com (razi)]]></author>
			<pubDate>Sat, 21 Feb 2026 10:53:28 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91691.html#p91691</guid>
		</item>
	</channel>
</rss>
