Email notification fails with SMTPSenderFailedException: Invalid address
search cancel

Email notification fails with SMTPSenderFailedException: Invalid address

book

Article ID: 382457

calendar_today

Updated On:

Products

CA Single Sign On Agents (SiteMinder)

Issue/Introduction

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.7 Invalid address ; nested exception is: com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)

at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)

at javax.mail.Transport.send0(Transport.java:231)

at javax.mail.Transport.send(Transport.java:100)

at com.netegrity.ims.businessprocess.EmailProviderServiceImpl.sendMail(EmailProviderServiceImpl.java:264)

at com.netegrity.ims.businessprocess.EmailProviderServiceImpl.sendMail(EmailProviderServiceImpl.java:158)

at com.ca.identitymanager.policyxpress.plugins.shared.EmailData.sendMail(EmailData.java:109)

... 89 more

Caused by: com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address

at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1817)

... 95 more

Cause

The above error refers to the sender's email address, meaning the administrative From: address. 

Either the specified email address of the sender is incorrect or invalid, or it has not been specified.

Resolution

Verify and set the correct email address in the email.properties file of the deployed application.

For example in Wildfly/JBoss, set the correct email address in 

jboss_home\standalone\deployments\iam_im.ear\config\com\netegrity\config\email.properties
 
for admin.email.address: