Class IndirectImmediateSender

  • All Implemented Interfaces:
    ImmediateSender

    @NotThreadSafe
    public class IndirectImmediateSender
    extends Object
    implements ImmediateSender
    IndirectImmediateSender synchronously sends all mails through other SMTP servers specified in the configuration, typically to a smarthost, instead of sending the mail directly to the SMTP servers of the recipients. It tries all listed smarthosts until a working one is found. The smarthost will in turn transmit the mail to remote domains. This is useful for example if a network is behind a dynamic IP address, considering that dynamic IP addresses are frequently rejected by SMTP servers.

    If a smart host name resolves to more than one IP addresses, than only the first one is used.

    Instead of specifying a single smarthost, an Upstream with more servers can also be supplied and Mireka will distribute outgoing mails like a simple load balancer.

    • Constructor Detail

      • IndirectImmediateSender

        public IndirectImmediateSender()