On 19/8/2015 5:43 ??, Stephan Bosch wrote:> Well... > > http://hg.dovecot.org/dovecot-2.2/rev/4d7a83ddb644 > > Regards, > > Stephan.That was impressive! Thank you Timo and Stephan. You are superb! I hope you will be able to provide some basic guidelines on how to enable/use the new functionality. (I am not very code-literate.) Looking forward to it! Thanks again! All the best, Nick
Hey Niko,
---- On Thu, 20 Aug 2015 16:55:42 +1000 Nikolaos Milas<nmilas at noa.gr>
wrote ----
> I hope you will be able to provide some basic guidelines on how to
> enable/use the new functionality. (I am not very code-literate.)
Looking through the code, the functionality should not be too hard to
enable using the configuration:
# This is a list of trusted networks... ips are seperated by ", "
# default, empty
haproxy_trusted_networks = 10.1.2.0/24, 10.2.1.0/24
# This is the timeout... in seconds.
# default, 3
# haproxy_timeout = 3
# modify your inet listener's to include haproxy=yes
inet_listener {
haproxy = yes
}
As for HAProxy, the configuration would look something like this:
listen smtp :25
mode tcp
option tcplog
option smtpchk
balance roundrobin
server smtp1 ip.of.server1:25 check-send-proxy check inter 10s
send-proxy
server smtp2 ip.of.server2:25 check-send-proxy check inter 10s
send-proxy
Regards,
Tim
On 20/8/2015 10:35 ??, Tim Groeneveld wrote:> # This is a list of trusted networks... ips are seperated by ", " > # default, empty > haproxy_trusted_networks = 10.1.2.0/24, 10.2.1.0/24 > > # This is the timeout... in seconds. > # default, 3 > # haproxy_timeout = 3 > > # modify your inet listener's to include haproxy=yes > inet_listener { > haproxy = yes > }Thank you Tim, As soon as I manage to re-build Dovecot with the latest snapshot, I'll test it! All the best, Nick