Class RelayDestination

  • All Implemented Interfaces:
    Destination, ResponsibleDestination, SessionDestination

    public class RelayDestination
    extends Object
    implements SessionDestination
    RelayDestination relays each step of the mail transaction in "realtime" to a gateway. Different recipients may be relayed to different backend servers. This filter handles only recipients whose destination is a RelayDestination. The algorithm is the same as in Baton. The backend server is only connected on the first RCPT SMTP statement. This means that with proper configuration the backend server is not connected at all if no recipient were accepted. Moreover, in this way the decision of which which server to use may depend on the recipient address. The delaying is useful because most mail transactions are SPAM, and they are aborted after the first RCPT TO command is received and rejected.

    Note: it does not verify any recipient. In order to deliver the message some other filter must verify and accept the recipients.

    See Also:
    Baton SMTP proxy
    • Constructor Detail

      • RelayDestination

        public RelayDestination()
    • Method Detail

      • getBackendServer

        public BackendServer getBackendServer()
        Category:
        GETSET
      • setBackendServer

        public void setBackendServer​(BackendServer backendServer)
        Category:
        GETSET
      • toString

        public String toString()
        Description copied from interface: ResponsibleDestination
        Returns a string representation of the destination suitable for logging purposes. Usually it should contain enough information to show the difference between non-equal destinations.
        Specified by:
        toString in interface ResponsibleDestination
        Overrides:
        toString in class Object