Commit 5ecdb52f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Enable the PROXY protocol for IMAP (dovecot)

parent b1fa1243
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# Listen on both IMAP+STARTTLS & IMAPS ports

# Trust PROXY from anywhere, it will be from a cluster address regardless.
haproxy_trusted_networks = 0.0.0.0/0

service imap-login {
	inet_listener imap {
		haproxy = yes
		port = 143
	}
	inet_listener imaps {
		haproxy = yes
		port = 993
		ssl = yes
	}