+ public void accept(Connection conn) {
+ try {
+ if (conn.getLocalPort() == 143) new IMAP.Listener(auth).handleRequest(conn);
+ else if (conn.getLocalPort() == 993) new IMAP.Listener(auth).handleRequest(conn);
+ else if (conn.getLocalPort() == 119) new NNTP.Listener(auth).handleRequest(conn);
+ else if (conn.getLocalPort() == 563) new NNTP.Listener(auth).handleRequest(conn);
+ else if (conn.getLocalPort() == 25) new SMTP.Server().handleRequest(conn);
+ else if (conn.getLocalPort() == 465) new SMTP.Server().handleRequest(conn);
+ else if (conn.getLocalPort() == 465) new SMTP.Server().handleRequest(conn);
+ else if (conn.getLocalPort() == 8025) SMTP.whitelist.handleRequest(conn);
+ //else if (conn.getLocalPort() == 110) new POP3.Listener(auth).handleRequest(conn);
+ //else if (conn.getLocalPort() == 995) new POP3.Listener(auth).handleRequest(conn);
+ //else if (conn.getLocalPort() == 8099) GMail.handleRequest(conn);
+ } catch (Stream.Closed c) {
+ Log.error(this, "connection abruptly closed by client");
+ } catch (IOException e) {
+ Log.error(this, e);
+ } finally {
+ conn.close();
+ }
+ }
+
+ static final Auth auth = new Auth();
+ static class Auth implements Login {
+ private KerberosAuth ka = new KerberosAuth("MEGACZ.COM", "chaitin.megacz.com");
+ public Account anonymous() {