Please confirm or correct me, but according to RFCs 821 (appendix E), 2821,
and 1893, RemoteDelivery.java should be doing a better job of detecting (and
not retrying) 5xx error codes.  Specifically, I am refering to the catch
clause with the comment:

            //We should do a better job checking this... if the failure is a
general
            //connect exception, this is less descriptive than more specific
SMTP command
            //failure... have to lookup and see what are the various
Exception
            //possibilities

The statement: return failMessage(mail, ex, false); should pass true if the
error code at the front of the message is 5xx.

Seems to me that something as simple as:

    return failMessage(mail, ex, ('5' == ex.getMessage().charAt(0)) ? true :
false);

addresses the problem.

        --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to