public class RelayDestination extends Object implements SessionDestination
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.
Constructor and Description |
---|
RelayDestination() |
Modifier and Type | Method and Description |
---|---|
Session |
createSession()
Creates a session object which will be notified about all steps of an
SMTP mail transaction.
|
BackendServer |
getBackendServer() |
void |
setBackendServer(BackendServer backendServer) |
String |
toString()
Returns a string representation of the destination suitable for logging
purposes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public Session createSession()
SessionDestination
createSession
in interface SessionDestination
public BackendServer getBackendServer()
public void setBackendServer(BackendServer backendServer)
public String toString()
ResponsibleDestination
toString
in interface ResponsibleDestination
toString
in class Object