Mail that gets rejected with 5xx should be given back to user
-------------------------------------------------------------

         Key: JBMAIL-24
         URL: http://jira.jboss.com/jira/browse/JBMAIL-24
     Project: JBoss Mail
        Type: Bug
  Components: SMTP  
 Environment: jboss-mail, HEAD, jboss401
    Reporter: Heiko W. Rupp
 Assigned to: Andrew Oliver 


Mails that are refused by the remote with a 553 (any 5xx error) should not be 
retired, but directly be given back into the mailbox of the submitting user.

>From RFC 2821:
5yz   Permanent Negative Completion reply
      The command was not accepted and the requested action did not
      occur.  The SMTP client is discouraged from repeating the exact
      request (in the same sequence).  Even some "permanent" error
      conditions can be corrected, so the human user may want to direct
      the SMTP client to reinitiate the command sequence by direct
      action at some point in the future



07:21:27,668 INFO  [STDOUT] MAIL FROM:<[EMAIL PROTECTED]>
07:21:27,869 INFO  [STDOUT] 553 5.1.8 <[EMAIL PROTECTED]>... Domain of sender 
address [EMAIL PROTECTED] does not exist
07:21:27,869 ERROR [SMTPSender] Error sending mail
javax.mail.MessagingException: 553 5.1.8 <[EMAIL PROTECTED]>... Domain of 
sender address [EMAIL PROTECTED] does not exist

[...]
07:21:27,879 INFO  [STDOUT] QUIT
07:21:27,879 INFO  [JMSMailListener] PUT MESSAGE ON QUEUE:[EMAIL PROTECTED]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to