Logger logger = new LMTPProtocolLogger();
LMTPProtocolHandlerChain chain = new LMTPProtocolHandlerChain();
chain.add(0, new ElasticInboxDeliveryHandler(backend));
chain.add(0, new ValidRcptHandler());
chain.wireExtensibleHandlers();
server = new NettyServer(new SMTPProtocol(chain, new LMTPServerConfig(), logger));
server.setListenAddresses(new InetSocketAddress(Configurator.getLmtpPort()));
server.setMaxConcurrentConnections(Configurator.getLmtpMaxConnections());
server.setTimeout(LMTPServerConfig.CONNECTION_TIMEOUT);