Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-899

RemoteDelivery sends a message again and again if transport.close() throws a MessagingException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 3.0-M1
    • None
    • None

    Description

      Some mail servers close the TCP connection as soon as they have received and responded to the terminating dot of the DATA command. As a consequence JavaMail throws a MessagingException in SMTPTransport.close() and RemoteDelivery thinks it has to send the message again (and again).

      Even though the server's behaviour is not standard compliant (see RFC 5321 section 4.1.1.10.) the message should still be considered to be delivered successfully because the error occurred after the mail transaction has been completed (RFC 5321 section 3.3).

      Attachments

        1. james-889.patch
          2 kB
          Markus Wiederkehr

        Activity

          People

            wmax Markus Wiederkehr
            wmax Markus Wiederkehr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: