private static final HashSet deadHosts = new HashSet();
public static void accept(Message m) throws IOException {
if (m == null) { Log.warn(Outgoing.class, "attempted to accept(null)"); return; }
- Log.info(SMTP.class, "queued:\n" + m.summary());
+ //Log.info(SMTP.class, "queued: " + m.summary());
if (m.traces.length >= 100)
Log.warn(SMTP.Outgoing.class, "Message with " + m.traces.length + " trace hops; dropping\n" + m.summary());
else synchronized(Outgoing.class) {
Log.info(SMTP.Outgoing.class, "connecting to " + mx + "...");
conn = new Connection(new Socket(mx, 25), InetAddress.getLocalHost().getHostName());
conn.setTimeout(60 * 1000);
- Log.info(SMTP.Outgoing.class, "connected");
+ Log.info(SMTP.Outgoing.class, " connected");
check(conn.readln(), conn); // banner
conn.println("HELO " + conn.vhost); check(conn.readln(), conn);
conn.println("MAIL FROM:<" + m.envelope.from.user + "@" + m.envelope.from.host+">"); check(conn.readln(), conn);
conn.println(m.toString());
conn.println(".");
check(conn.readln(), conn);
- Log.info(SMTP.Outgoing.class, "success: message accepted by " + mx);
+ Log.info(SMTP.Outgoing.class, " success: message accepted by " + mx);
accepted = true;
conn.close();
} catch (Exception e) {
if (accepted) return true;
- Log.warn(SMTP.Outgoing.class, "unable to send; error=" + e);
+ Log.warn(SMTP.Outgoing.class, " unable to send; error=" + e);
Log.warn(SMTP.Outgoing.class, e);
return false;
} finally {