Manage Jenkins -> E-mail notification
SMTP Server: smtp.fu.bar
Default user e-mail suffix: @fu.bar
System Admin E-mail address: CT-Build <ct-b...@fu.bar>
Dashboard -> BUILD-PROJECT-A -> Configure -> E-mail notification
Recipients: user1 user2 user3
Checked "Send e-mail for every unstable build"
Checked "Send separate e-mails to individuals who broke the build"
I get the following error in BUILD-PROJECT-A which I have never seen
before in the logs.
--------- BEGIN ERROR MESSAGE -----------
Sending e-mails to: user1 user2 user3 us...@fu.bar us...@fu.bar
ERROR: 250 2.6.0
<1800803851.401313786809460.JavaMail.SYSTEM@DEV-CT-MASTER5> Queued
mail for delivery
com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0
<1800803851.401313786809460.JavaMail.SYSTEM@DEV-CT-MASTER5> Queued
mail for delivery
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:598)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at hudson.tasks.MailSender.execute(MailSender.java:111)
at hudson.tasks.Mailer.perform(Mailer.java:101)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:639)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:617)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:586)
at hudson.model.Run.run(Run.java:1400)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3
Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
... 14 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3
Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Invalid address
... 16 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3
Invalid address
... 16 more
Finished: UNSTABLE
--------- END ERROR MESSAGE -----------
Why is it saying invalid address ? Shouldn't user1 above have been
changed to us...@fu.bar because E-mail suffix is set to @fu.bar ?
At least that is the interpretation I have of what it says in the help
when you hover over the help icon.
Any thoughts ? Ideas ?
--
Mehul N. Sanghvi
email: mehul....@gmail.com
Yes this is the default E-mail notification. Not the one the email-ext plugin.
Jenkins correctly identified the users whose code had been used in the
build (user4 and user5) and also
added the suffix for them. So why is it saying the addresses are incorrect ?
cheers,
mehul
All the usernames are made from the 1st initial of the first name + lastname:
msan...@fu.bar
kah...@fu.bar
etc etc.
In subversion its just the username (msanghvi, kahmed, etc.) and
Jenkins should be adding @fu.bar
since that is the suffix which has been configured.
Is there some place where I can look at the logs for Jenkins rather
then the console output ? Is there a way to do debugging
output for Jenkins so I can get more details on what is going wrong ?
cheers,
mehul
The regex test is in the java libraries smtp code. Do you have an example of what the full recipient list looks like?
They are separated by whitespace not a comma.
There are also 27 other users pulled in from the subversion log
messages for the commits that were
incorporated into that build.
That makes a total of 30 addresses.
Your question prompted me to look at the list of users again, and I
noticed a user that does not exist.
Its just a dummy username used by our build system. It does something
with some svn properties. It may
be a proper user account on some build machine but it is not in our MS
Exchange email directory.
I think that would explain the invalid email address message.
Would be nice if it could mention which email address was invalid in
the console log :)
Is there a way to tell Jenkins to ignore certain log messages in
subversion ? Or maybe tell Jenkins to not
send out email to certain build-bot type users ?
cheers,
mehul
The addresses in the Recipients field are not getting the default
email suffix added. If I
provide an explicit fqdn email address for the Recipients list, then
everything works fine.
We have not had an upgrade of our Exchange server. This used to work.
I'll try and track down
when I started seeing this to possibly narrow things down.