/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("502 EXPN command is disabled"); } }
@Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("502 EXPN command is disabled"); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("250 Ok"); } }
@Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("250 Ok"); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("250 Ok"); } }
@Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("502 VRFY command is disabled"); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("502 VRFY command is disabled"); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("502 VRFY command is disabled"); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.resetMessageState(); sess.sendResponse("250 Ok"); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.resetMailTransaction(); sess.sendResponse("250 Ok"); } }
@Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("221 Bye"); sess.quit(); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("221 Bye"); sess.quit(); } }
/** */ @Override public void execute(String commandString, Session sess) throws IOException { sess.sendResponse("221 Bye"); sess.quit(); } }
@Override public void execute(String commandString, Session sess) throws IOException { sess.resetMailTransaction(); sess.sendResponse("250 Ok"); } }
public void handleCommand(Session context, String commandString) throws SocketTimeoutException, IOException, DropConnectionException { try { Command command = getCommandFromString(commandString); command.execute(commandString, context); } catch (CommandException e) { context.sendResponse("500 " + e.getMessage()); } }
/** * {@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"); }
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"); }
/** * {@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"); }