public static class Server extends Connection {
public Server(Socket conn, String vhost) throws IOException { super(conn, vhost); }
- public boolean handleRequest() throws IOException, MailException {
- conn.setSoTimeout(5 * 60 * 1000);
- println("220 " + vhost + " ESMTP " + this.getClass().getName());
+ public Server(com.caucho.server.connection.Connection conn) throws IOException { super(new SMTP(), conn); }
+ public boolean handle_() throws IOException, MailException {
+ setSoTimeout(5 * 60 * 1000);
+ println("220 " + vhost + " SMTP " + this.getClass().getName());
Address from = null;
Vector to = new Vector();
for(String command = readln(); ; command = readln()) {
String c = command.toUpperCase();
if (c.startsWith("HELO")) { println("250 HELO " + vhost); from = null; to = new Vector();
- } else if (c.startsWith("EHLO")) { println("250-\r\n250-SIZE\r\n250 PIPELINING"); from = null; to = new Vector();
+ } else if (c.startsWith("EHLO")) { println("250"); from = null; to = new Vector();
} else if (c.startsWith("RSET")) { println("250 reset ok"); from = null; to = new Vector();
} else if (c.startsWith("HELP")) { println("214 you are beyond help. see a trained professional.");
} else if (c.startsWith("VRFY")) { println("252 We don't VRFY; proceed anyway");