public SMTPSessionImpl(ProtocolTransport transport, SMTPConfiguration config) { super(transport, config); relayingAllowed = config.isRelayingAllowed(getRemoteAddress().getAddress().getHostAddress()); needsCommandInjectionDetection = true; }
public SMTPNettySession(SMTPConfiguration theConfigData, Log logger, ChannelHandlerContext handlerContext, SSLEngine engine) { super(logger, handlerContext, engine); this.theConfigData = theConfigData; connectionState = new HashMap<String, Object>(); smtpID = random.nextInt(1024) + ""; relayingAllowed = theConfigData.isRelayingAllowed(getRemoteIPAddress()); }