Issue
-
Unable to send emails - SMTPAddressFailedException
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 250 2.0.0 v11L8poI023794 Message accepted for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <address>... User unknown
Resolution
Causes:
-
Invalid email address
-
Default email address not configured yet nobody@nowhere hasn’t been changed
-
SMTP server is blocking the mail send somehow
Check
Default email address not configured yet nobody@nowhere hasn’t been changed
This is the default when no system email address is set.
An example of an error when this is the issue:
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 250 2.0.0 v11L8poI023794 Message accepted for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <address>... User unknown ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <not>... User unknown ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <configured>... User unknown ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <yet>... User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at com.cloudbees.jenkins.plugin.metrics.views.Alerter$EmailRecipient.sendNotification(Alerter.java:2011) ... 5 more Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <address>... User unknown ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <not>... User unknown ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <configured>... User unknown ;