com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.--- SendAsDenied;

Hello Everyone,

I am getting an exception in Jenkins when trying to send an email notification on a particular email id. Configuration details are successfully updated as it should be but when I am clicking on the button “Test Configuration” the below exception message is coming:

Dashboard -->> Configure System -->> Test Configuration

Exception Message:

com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.— SendAsDenied;
<Email_Id:> not allowed to send as <mailto:<Email_Id:>>; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message.

Note: Both email address belongs to different domains.

Can anyone suggest why this exception is coming and what can we do to get this resolved? and on which server we have to ask for doing any correction?

Thank You !!

Your SMTP server is denying. There’s not a lot we can suggest doing other than fixing the configuration of SMTP server.