Tabnine Logo
SMTPServer.setMaxConnections
Code IndexAdd Tabnine to your IDE (free)

How to use
setMaxConnections
method
in
org.subethamail.smtp.server.SMTPServer

Best Java code snippets using org.subethamail.smtp.server.SMTPServer.setMaxConnections (Showing top 6 results out of 315)

origin: apache/nifi

smtpServer.setMaxConnections(context.getProperty(SMTP_MAXIMUM_CONNECTIONS).asInteger());
smtpServer.setMaxMessageSize(maxMessageSize);
smtpServer.setConnectionTimeout(context.getProperty(SMTP_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS).intValue());
origin: com.avane.xwiki.products/xwiki-plugin-chronopolys

/**
 * Create a new SMTP server with this class as the listener. The default port is set to 25. Call
 * setPort()/setHostname() before calling start().
 */
public NanoSMTP()
{
  Collection<MessageListener> listeners = new ArrayList<MessageListener>(1);
  listeners.add(this);
  this.server = new SMTPServer(listeners);
  this.server.setPort(25);
  this.server.setMaxConnections(30000);
}
origin: miltonio/milton2

protected void initSmtpReceiver() {
  Collection<MessageListener> listeners = new ArrayList<MessageListener>(1);
  listeners.add(this);
  if( enableTls ) {
    log.info("Creating TLS enabled server");
    this.smtpReceivingServer = new SMTPServer(listeners);
  } else {
    log.info("Creating TLS DIS-abled server");
    this.smtpReceivingServer = new TlsDisabledSmtpServer(listeners);
  }
  this.smtpReceivingServer.setPort(smtpPort);
  this.smtpReceivingServer.setMaxConnections(30000);
  CommandHandler cmdHandler = this.smtpReceivingServer.getCommandHandler();
  MessageListenerAdapter mla = (MessageListenerAdapter) smtpReceivingServer.getMessageHandlerFactory();
  mla.setAuthenticationHandlerFactory(null);
}
 
origin: Alfresco/alfresco-repository

@Override
public void startup()
{
  serverImpl = new SMTPServer(new HandlerFactory());
  
  // MER - May need to override SMTPServer.createSSLSocket to specify non default keystore.
  serverImpl.setPort(getPort());
  serverImpl.setHostName(getDomain());
  serverImpl.setMaxConnections(getMaxConnections());
  
  serverImpl.setHideTLS(isHideTLS());
  serverImpl.setEnableTLS(isEnableTLS());
  serverImpl.setRequireTLS(isRequireTLS());
  
  if(isAuthenticate())
  {
    AuthenticationHandlerFactory authenticationHandler = new EasyAuthenticationHandlerFactory(new AlfrescoLoginUsernamePasswordValidator());
    serverImpl.setAuthenticationHandlerFactory(authenticationHandler);
  }
  
  serverImpl.start();
  log.info("Inbound SMTP Email Server has started successfully, on hostName:" + getDomain() + "port:" + getPort());
}
origin: org.alfresco/alfresco-repository

@Override
public void startup()
{
  serverImpl = new SMTPServer(new HandlerFactory());
  
  // MER - May need to override SMTPServer.createSSLSocket to specify non default keystore.
  serverImpl.setPort(getPort());
  serverImpl.setHostName(getDomain());
  serverImpl.setMaxConnections(getMaxConnections());
  
  serverImpl.setHideTLS(isHideTLS());
  serverImpl.setEnableTLS(isEnableTLS());
  serverImpl.setRequireTLS(isRequireTLS());
  
  if(isAuthenticate())
  {
    AuthenticationHandlerFactory authenticationHandler = new EasyAuthenticationHandlerFactory(new AlfrescoLoginUsernamePasswordValidator());
    serverImpl.setAuthenticationHandlerFactory(authenticationHandler);
  }
  
  serverImpl.start();
  log.info("Inbound SMTP Email Server has started successfully, on hostName:" + getDomain() + "port:" + getPort());
}
origin: org.apache.nifi/nifi-email-processors

smtpServer.setMaxConnections(context.getProperty(SMTP_MAXIMUM_CONNECTIONS).asInteger());
smtpServer.setMaxMessageSize(maxMessageSize);
smtpServer.setConnectionTimeout(context.getProperty(SMTP_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS).intValue());
org.subethamail.smtp.serverSMTPServersetMaxConnections

Javadoc

Set's the maximum number of connections this server instance will accept.

Popular methods of SMTPServer

  • start
    Call this method to get things rolling after instantiating the SMTPServer.
  • <init>
    Complex constructor.
  • setPort
  • stop
    Shut things down gracefully.
  • setHostName
    The host name that will be reported to SMTP clients
  • getMessageHandlerFactory
    All smtp data is eventually routed through the handlers.
  • isRunning
    Is the server running after start() has been called?
  • setAuthenticationHandlerFactory
  • getCommandHandler
    The CommandHandler manages handling the SMTP commands such as QUIT, MAIL, RCPT, DATA, etc.
  • getHostName
  • createServerSocket
    Override this method if you want to create your own server sockets. You must return a bound ServerSo
  • getMaxRecipients
  • createServerSocket,
  • getMaxRecipients,
  • setEnableTLS,
  • createSSLSocket,
  • getAuthenticationHandlerFactory,
  • getConnectionTimeout,
  • getDisableReceivedHeaders,
  • getDisplayableLocalSocketAddress,
  • getEnableTLS

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now