From 8cabbadaaf5fe9c3e1a6a6f27470dec53688ad8d Mon Sep 17 00:00:00 2001 From: Adrian Bucher Date: Thu, 19 Jan 2023 11:05:43 +0100 Subject: [PATCH] JAMES-3876 Load-balancing flag for Remote Delivery Gateways --- .../docs/modules/ROOT/partials/RemoteDelivery.adoc | 1 + .../spring-app/src/main/resources/mailetcontainer.xml | 5 +++++ .../transport/mailets/remote/delivery/DnsHelper.java | 7 +++++++ .../remote/delivery/RemoteDeliveryConfiguration.java | 8 ++++++++ 4 files changed, 21 insertions(+) diff --git a/server/apps/distributed-app/docs/modules/ROOT/partials/RemoteDelivery.adoc b/server/apps/distributed-app/docs/modules/ROOT/partials/RemoteDelivery.adoc index f4508986070..159e30dce18 100644 --- a/server/apps/distributed-app/docs/modules/ROOT/partials/RemoteDelivery.adoc +++ b/server/apps/distributed-app/docs/modules/ROOT/partials/RemoteDelivery.adoc @@ -62,6 +62,7 @@ port is not explicitly defined in the ** parameter. Default is the def AUTH command. Default is not to issue the AUTH command. * *gatewayPassword* (required if *gatewayUsername*) is set - a String representing the password to be used to authenticate the user using the AUTH command. +* *loadBalancing* (optional) - a Boolean (true/false) indicating whether load should be balanced randomly over all defined gateway server. Default is true, false leads to failover only. * *heloName* (optional) - a String containing the name used in the SMTP HELO and EHLO commands. Default is the default domain, which is typically *localhost*. * *mail.** (optional) - Any property beginning with *mail.* described in the Javadoc for package diff --git a/server/apps/spring-app/src/main/resources/mailetcontainer.xml b/server/apps/spring-app/src/main/resources/mailetcontainer.xml index 91dd3868ee0..ce4c038c56e 100644 --- a/server/apps/spring-app/src/main/resources/mailetcontainer.xml +++ b/server/apps/spring-app/src/main/resources/mailetcontainer.xml @@ -354,6 +354,11 @@ Regards, Postmaster XXX.YYY otherserver.mydomain.com 25 --> + + +