Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins email configuration - Test email configuration succeeds but email is not received by user

I am Using Jenkins v1.521 on Windows 2008 R2 server. I need to enable email build notifications in the builds. I have also installed email ext plugin.

I have configured the SMTP server details under Configure System in Jenkins. I tried sending the test email from Jenkins using "Test Configuration" option providing my email address and I get a message that says "Email successfully sent" but I don't seem to be receiving the email.

I also tried doing a telnet to the SMTP server directly on the server hosting Jenkins and sent an email manually and it worked. I received the email.

I wonder why the mail sending part does not work via Jenkins?

Could any one please provide me suggestions to fix this issue?

like image 320
SDS Avatar asked Jul 17 '13 09:07

SDS


People also ask

What is Jenkins & How do you configure & how do you get mail once tests are completed?

Go to the Jenkins home page and click the 'Manage Jenkins' menu option. Then, select the 'Configure System' option. Enter the SMTP server name under 'Email Notification'. Click the 'Advanced' button and then click the checkbox next to the 'Use SMTP Authentication' option.

In which section of the Jenkins job configuration would you configure email notifications?

Jenkins comes with an out of box facility to add an email notification for a build project. Step 1 − Configuring an SMTP server. Goto Manage Jenkins → Configure System. Go to the E-mail notification section and enter the required SMTP server and user email-suffix details.


1 Answers

In order to get this to work, a valid email must be entered into the "System Admin e-mail address" field. That field is on the same page but is located in another section higher up. Without doing so, I too received a message that the email was successfully sent but I never received it. Once I set it, the test emails started to be received properly.

like image 74
user3738817 Avatar answered Sep 18 '22 03:09

user3738817