Problem(Abstract)
SMTP Send Adapter: Mail cannot be sent because of Exception: Invalid address
Symptom
Sending emails throws exception: Invalid address
Error Message
Status Report:?? com.sterlingcommerce.woodstock.workflow.WorkFlowException: Mail cannot be sent because of Exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
?java.rmi.RemoteException: B2BMailSMTPImpl mail cannot be sent because of Exception; nested exception is:
?java.lang.Exception: 501 5.1.7 Invalid address
Resolving the problem
Solution
The error message "501 5.1.7 Invalid address" is actually generated from the SMTP peer since the address is either not well formed or is by policy/setup not handled by that SMTP server. The address can either be the sender or any recipient.
This address is configured either in the service (xport-smtp-mailto xport-smtp-mailfrom xport-smtp-mailBCC xport-smtp-mailCC) or in the primary document. Please check that all mail addresses are well formed. You can check it by sending test emails to the recipient(s) as well as to the sender's address using any "normal" email client.
If you use only the name for the sender or recipient please insert a full email address.?If the email address is well formed and fully specified the next step is to check if you can send an e-mail via the configured SMTP-Server. If you have an e-mail client on the system try to send a test mail with the same recipient and sender. If this is also rejected you have to contact the SMTP admin to check the permissions. Perhaps this user isn?t allowed to send mails. The SMTP admin can get further information from the server log.
[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]