response.append(sess.getServer().getHostName()); response.append("\r\n" + "250-8BITMIME"); int maxSize = sess.getServer().getMaxMessageSize(); if (maxSize > 0) if (sess.getServer().getEnableTLS() && !sess.getServer().getHideTLS()) AuthenticationHandlerFactory authFact = sess.getServer().getAuthenticationHandlerFactory(); if (authFact != null)
response.append(sess.getServer().getHostName()); response.append("\r\n" + "250-8BITMIME"); int maxSize = sess.getServer().getMaxMessageSize(); if (maxSize > 0) if (sess.getServer().getEnableTLS() && !sess.getServer().getHideTLS()) Optional<AuthenticationHandlerFactory> authFact = sess.getServer().getAuthenticationHandlerFactory(); final boolean displayAuth; if (sess.isTLSStarted()) { displayAuth = authFact.isPresent(); } else { displayAuth = authFact.isPresent() && !sess.getServer().getRequireTLS();
/** * {@inheritDoc} */ public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireAuth() || sess.isAuthenticated()) wrapped.execute(commandString, sess); else sess.sendResponse("530 5.7.0 Authentication required"); }
/** * {@inheritDoc} */ @Override public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireAuth() || sess.isAuthenticated()) wrapped.execute(commandString, sess); else sess.sendResponse("530 5.7.0 Authentication required"); }
public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireTLS() || sess.isTLSStarted()) wrapped.execute(commandString, sess); else sess.sendResponse("530 Must issue a STARTTLS command first"); }
public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireTLS() || sess.isTLSStarted()) wrapped.execute(commandString, sess); else sess.sendResponse("530 Must issue a STARTTLS command first"); }
@Override public void execute(String commandString, Session sess) throws IOException, DropConnectionException { if (!sess.getServer().getRequireTLS() || sess.isTLSStarted()) wrapped.execute(commandString, sess); else sess.sendResponse("530 Must issue a STARTTLS command first"); }
@Override public void execute(String commandString, Session context) throws IOException { String args = this.getArgPredicate(commandString); if ("".equals(args)) { context.sendResponse(this.getCommandMessage(context.getServer())); return; } try { context.sendResponse(context.getServer().getCommandHandler().getHelp(args).toOutputString()); } catch (CommandException e) { context.sendResponse("504 HELP topic \"" + args + "\" unknown."); } }
/** */ @Override public void execute(String commandString, Session context) throws IOException { String args = this.getArgPredicate(commandString); if ("".equals(args)) { context.sendResponse(this.getCommandMessage(context.getServer())); return; } try { context.sendResponse(context.getServer().getCommandHandler().getHelp(args).toOutputString()); } catch (CommandException e) { context.sendResponse("504 HELP topic \"" + args + "\" unknown."); } }
/** */ @Override public void execute(String commandString, Session context) throws IOException { String args = this.getArgPredicate(commandString); if ("".equals(args)) { context.sendResponse(this.getCommandMessage(context.getServer())); return; } try { context.sendResponse(context.getServer().getCommandHandler().getHelp(args).toOutputString()); } catch (CommandException e) { context.sendResponse("504 HELP topic \"" + args + "\" unknown."); } }
@Override public void execute(String commandString, Session sess) throws IOException { String[] args = this.getArgs(commandString); if (args.length < 2) { sess.sendResponse("501 Syntax: HELO <hostname>"); return; } sess.resetMailTransaction(); sess.setHelo(args[1]); sess.sendResponse("250 " + sess.getServer().getHostName()); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { String[] args = this.getArgs(commandString); if (args.length < 2) { sess.sendResponse("501 Syntax: HELO <hostname>"); return; } sess.resetMailTransaction(); sess.setHelo(args[1]); sess.sendResponse("250 " + sess.getServer().getHostName()); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { String[] args = this.getArgs(commandString); if (args.length < 2) { sess.sendResponse("501 Syntax: HELO <hostname>"); return; } sess.resetMessageState(); sess.setHelo(args[1]); sess.sendResponse("250 " + sess.getServer().getHostName()); } }
stream = new DotTerminatedInputStream(stream); stream = new DotUnstuffingInputStream(stream); SMTPServer server = sess.getServer(); if (!server.getDisableReceivedHeaders()) { stream = new ReceivedHeaderStream(stream, sess.getHelo(),