Package mireka.filter.proxy
Class RelayDestination
- Object
-
- mireka.filter.proxy.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 aRelayDestination. 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 Summary
Constructors Constructor Description RelayDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessioncreateSession()Creates a session object which will be notified about all steps of an SMTP mail transaction.BackendServergetBackendServer()voidsetBackendServer(BackendServer backendServer)StringtoString()Returns a string representation of the destination suitable for logging purposes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface mireka.destination.ResponsibleDestination
equals, hashCode
-
-
-
-
Method Detail
-
createSession
public Session createSession()
Description copied from interface:SessionDestinationCreates a session object which will be notified about all steps of an SMTP mail transaction.- Specified by:
createSessionin interfaceSessionDestination
-
getBackendServer
public BackendServer getBackendServer()
- Category:
- GETSET
-
setBackendServer
public void setBackendServer(BackendServer backendServer)
- Category:
- GETSET
-
toString
public String toString()
Description copied from interface:ResponsibleDestinationReturns 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:
toStringin interfaceResponsibleDestination- Overrides:
toStringin classObject
-
-