eclipse-ee4j / eclipse-ee4j/angus-mail
Unknown 2yz recipient error is handled incorrectly with option mail.smtp.reportsuccess
- Dominant language
- Java
- Stars
- 87
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
After fix to the issue #7 "unknown" codes 2yz returned by "RCPT TO" are treated as success and message is sent to such recipients.
However if SMTP client uses option mail.smtp.reportsuccess=true then message is not sent and error condition is raised.
**To Reproduce**
Send SMTP server that responds with >=252 message
1. Set mail.smtp.reportsuccess=true on SMTP session (or on SMTPTransport directly)
2. Send message using this session to the SMTP server that responds with code >=252 to the RCPT TO command
3. Message is not sent and sendMessage() method throws SendFailedException
**Expected behavior**
Message should be sent and sendMessage() should throw exception reporting success: SMTPSendFailedException with rc=250 and nested SMTPAddressSucceededException(s).
**Desktop:**
- All
**Smartphone:**
- All
**Mail server:**
- Protocol being used: SMTP
- Vendor/product: any server that can respond to RCPT TO with "unknown" (>=252) success code (e.g. Oracle Cloud Infrastructure Email Delivery, according to the issue #7).
Contributor guide
Assessment
This issue has not been assessed yet.