I am trying to setup email notification for my jenkins server for build failures.
Things I have tried:
1) Use my company smtp mail server with authentication - does not work. Connection refused. I am able to telnet from jenkins server machine.
2) Setup my own James mail server. SMTP server - localhost. Authentication - admin,admin. Port 25. I see that my SMTP server is running. - does not work. Connection refused. I am able to telnet from jenkins server machine.
3) Use my personal gmail account with authentication - Works!!!
I have followed other discussions on this topic but not got an answer.
Some say it may be a firewall issue but I am not sure how to overcome it.
Any suggestions are most welcome.
Notes:
Error message: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
Thanks,
Sairam
Might sound weird, but have your tried your company mail server without using authentication?
And does it fail even when you try using the test checkbox and send an email from the config page?
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/rh9FK_IWgmo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
It shouldn't need it unless your environment requires it, which yours must. Mine is set up without authentication.
You may have to work with your IT team to figure out why you are getting rejected. The mail server might just be rejecting anything from the Jenkins server IP or at least something in that IP range.