Mercurial > repos > other > Puppet
view modules/dovecot/templates/99-imap-only.conf.erb @ 311:51d3748f8112
Configure Dovecot (IMAP) for PROXY protocol use
Includes moving firewall rules into the Dovecot class to keep
things closer together and swapping to a template so that we
can put specific values in for IPs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 23 Feb 2020 16:00:41 +0000 |
parents | |
children |
line wrap: on
line source
protocols = imap service imap-login { # Only allow IMAP locally and IMAPS externally inet_listener imap { address = 127.0.0.1 } inet_listener imaps { address = <%= @imapserver_ip %> ssl = yes } <% if @imapserver_proxy -%> # If we're running a 6-to-4 proxy then add it on the proxy IP inet_listener imaps_proxy { address = <%= @imapserver_proxy %> port = 993 ssl = yes haproxy = yes } <% end -%> } <% if @imapserver_proxy -%> # And set the trusted proxy servers if we're using them haproxy_trusted_networks = <%= @proxy_upstream.join(' ') %> <% end -%>