Class SMTPAgent

  • All Implemented Interfaces:
    AgentContext, org.springframework.context.Lifecycle, org.springframework.jmx.export.naming.SelfNaming

    @ManagedResource(description="SMTP Agent")
    public class SMTPAgent
    extends org.subethamail.smtp.server.SMTPServer
    implements org.springframework.jmx.export.naming.SelfNaming, org.springframework.context.Lifecycle, AgentContext
    • Constructor Detail

      • SMTPAgent

        public SMTPAgent()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
        Overrides:
        start in class org.subethamail.smtp.server.SMTPServer
      • jmxStart

        @ManagedOperation(description="Start the SMTP Agent")
        public void jmxStart()
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
        Overrides:
        stop in class org.subethamail.smtp.server.SMTPServer
      • jmxStop

        @ManagedOperation(description="Stop the SMTP Agent")
        public void jmxStop()
      • isJmxRunning

        @ManagedAttribute(description="Check if the SMTP Agent is up and running")
        public boolean isJmxRunning()
      • setAuthenticationHandler

        public void setAuthenticationHandler​(org.subethamail.smtp.AuthenticationHandler authenticationHandler)
      • setErrorRelay

        public void setErrorRelay​(ErrorRelay errorRelay)
      • setRoutingScriptURL

        public void setRoutingScriptURL​(URI routingScriptURI)
      • validatePeer

        public void validatePeer​(SocketAddress remoteAddress)
                          throws org.subethamail.smtp.RejectException
        Specified by:
        validatePeer in interface AgentContext
        Throws:
        org.subethamail.smtp.RejectException
      • setScriptParameters

        public void setScriptParameters​(Map<String,​Object> scriptParameters)
      • setDupeDetection

        public void setDupeDetection​(DupeDetection dupeDetection)