Examples of SMTPServer


Examples of com.icegreen.greenmail.smtp.SmtpServer

            if (services.containsKey(setup.getProtocol())) {
                throw new IllegalArgumentException("Server '" + setup.getProtocol() + "' was found at least twice in the array");
            }
            final String protocol = setup.getProtocol();
            if (protocol.startsWith(ServerSetup.PROTOCOL_SMTP)) {
                services.put(protocol, new SmtpServer(setup, managers));
            } else if (protocol.startsWith(ServerSetup.PROTOCOL_POP3)) {
                services.put(protocol, new Pop3Server(setup, managers));
            } else if (protocol.startsWith(ServerSetup.PROTOCOL_IMAP)) {
                services.put(protocol, new ImapServer(setup, managers));
            }
View Full Code Here

Examples of com.stimulus.archiva.incoming.SMTPServer

  }
 
  public static void restartIncomingListeners() {
    smtpServer.shutdown();
    milter.shutdown();
    smtpServer = new SMTPServer(new MessageService.WriteMessageCallback());
    smtpServer.start();
    milter = new MilterServer(new MessageService.WriteMessageCallback());
  }
View Full Code Here

Examples of jodd.mail.SmtpServer

  @PetiteInject
  EmailBuilder emailBuilder;

  public void init() {
    log.info("email sender initialized");
    smtpServer = new SmtpServer(host, port, username, password);
    start();
  }
View Full Code Here

Examples of mireka.smtp.server.SMTPServer

        filters.addFilter(destinationProcessorFilter);

        MessageHandlerFactoryImpl handlerFactory =
                new MessageHandlerFactoryImpl();
        handlerFactory.setFilters(filters);
        relayServer = new SMTPServer(handlerFactory);
        relayServer.start();

    }
View Full Code Here

Examples of mireka.smtp.server.SMTPServer

        Filters filters = createFilters();

        MessageHandlerFactoryImpl handlerFactoryImpl =
                new MessageHandlerFactoryImpl();
        handlerFactoryImpl.setFilters(filters);
        smtpServer = new SMTPServer(handlerFactoryImpl);
        smtpServer.setPort(8025);
        smtpServer.start();
    }
View Full Code Here

Examples of mireka.smtp.server.SMTPServer

        MessageHandlerFactoryImpl handlerFactory =
                new MessageHandlerFactoryImpl();
        handlerFactory.setFilters(filters);

        SMTPServer smtpServer = new SMTPServer(handlerFactory);
        smtpServer.setPort(PORT_SMTP);
        return smtpServer;
    }
View Full Code Here

Examples of org.apache.james.smtpserver.netty.SMTPServer

    @Override
    protected void setUpSMTPServer() throws Exception {
        SimpleLog log = new SimpleLog("SMTP");
        log.setLevel(SimpleLog.LOG_LEVEL_ALL);
        m_smtpServer = new SMTPServer();
        m_smtpServer.setDNSService(m_dnsServer);
        m_smtpServer.setFileSystem(fileSystem);     
       
        m_smtpServer.setProtocolHandlerChain(chain);
       
View Full Code Here

Examples of org.apache.james.smtpserver.netty.SMTPServer

        smtpConfiguration = new SMTPTestConfiguration(smtpListenerPort);
        setUpSMTPServer();
    }

    protected SMTPServer createSMTPServer() {
        return new SMTPServer();
    }
View Full Code Here

Examples of org.subethamail.smtp.server.SMTPServer

   * The default port is 25. Call setPort()/setHostname() before
   * calling start().
   */
  public Wiser()
  {
    this.server = new SMTPServer(new SimpleMessageListenerAdapter(this));
  }
View Full Code Here

Examples of org.subethamail.smtp.server.SMTPServer

      public boolean accept(String from, String recipient)
      {
        return false;
      }
    });
    SMTPServer smtpServer = new SMTPServer(handlerFactory);
    smtpServer.setPort(0);
    smtpServer.start();
    try
    {
      SmartClient client = new SmartClient("localhost", smtpServer.getPort(), "test-client.example.org");
      client.from("john@exmaple.com");
      client.to("jane@example.org");
      client.quit();
    }
    finally
    {
      smtpServer.stop();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.