Fix: Email sending failed when one of the email address is invalid (throws 550 error code)

Fix: Email sending failed when one of the email address is invalid (throws 550 error code)

Issue:

      Mail sending failed when one of the recipients is invalid and mail server throws 550.xx error codes.

[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]: DEBUG SMTP: Sending failed because of invalid destination addresses|
[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]: RSET|
[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]: 250 OK|
[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]: DEBUG SMTP: MessagingException while sending, THROW: |
[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 Unknown user
|
[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]:  at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:2079)|
[14:00:18:856]|[08-08-2023]|[SYSOUT]|[INFO]|[800]:  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1301)|

Fix:

      In SMTP, sendPartial option is available, which is when enabled will send mails to valid recipients ignoring the invalid recipients. This provision is available in SDP but not enabled by default. Setting sendPartial as true by default with this fix.

Steps to apply the fix

1. Download the attached 14304_8999916.fjar file.
2. Click here on steps to apply the fjar file.
3. Restart the application service.
4. Check for the issue.
5. If the issue occurs again, immediately zip the logs (<server_home>\logs folder. For eg: C:\Program Files\ManageEngine\ServiceDesk\logs folder) and share it with us for analysis. If the size of the log file is huge, you can send it to us using our FTP link https://bonitas2.zohocorp.com/. Select the product as "ServiceDesk Plus" and provide the proper ticket number.


Build
Compatible Jar
14304 - 14305
14304_8999916.fjar



                  New to ADSelfService Plus?

                    • Related Articles

                    • Mail sending failed_Unable to relay

                      Error trace in logs: javax.mail.SendFailedException: Invalid Addresses;nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay Possible Cause: The SMTP server does not allow relaying unless you are sending email ...
                    • Fix: Error while sending mail using EWS

                      Issue trace: [11:58:49:091]|[11-29-2022]|[SYSERR]|[INFO]|[122]: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: The operation can't be performed because the item is out of date. Reload the item and try ...
                    • Mail sending failed_ Unrecognized SSL message, plaintext connection?

                      Log error trace: Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;   nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Solution: Error trace means ...
                    • Sending notification failed

                      In some scenarios the outgoing emails will error with Sending notification failed message in UI and in the logs you can see, 550 5.2.125 The sender has exceeded the maximum number of messages they are allowed to send via client submission either per ...
                    • Debug for #8840146: Invalid to address error

                      Issue: 1. In some scenarios, mails aren't sent to few users 2. Upon checking the traces in syslog viewer, we could find the below traces To address : karsee. Cc address : null Subject : 【ASSIGN】ID:25999/KSK/不要会社DBの削除と検証用会社DBの作成 SystemNotification : ...