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

                      • 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 ...
                      • 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 : ...
                      • Fix: Failed to parse To/Cc address while fetching mails using Graph

                        Issue: If the To / Cc address contains the email address in the format "Test, SDP" <test@sdp.com> (containing "," character in the email address itself), then parsing of such addresses using Microsoft Graph fails in SDP. If such address is a support ...
                      • Mail fetching Stopped when processing a mail with Invalid From Address

                        Trace : [13:18:44:385]|[04-17-2023]|[com.manageengine.servicedesk.mail.core.ProcessMailMessage]|[INFO]|[185]: com.adventnet.servicedesk.mailutils : setFromAddress()| ...
                      • License is Expired / License is invalid

                        The application will not start if the license is expired / Corrupted. If the error is, Registration period is expired Open the command prompt with Admin privileges (Run it as Administrator) and point to the bin directory of ManageEngine ServiceDesk ...