Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Emailing from a hudson job - smtp configuration Post 302597140 by Aurea on Thursday 9th of February 2012 10:01:44 AM
Old 02-09-2012
Emailing from a hudson job - smtp configuration

Hello everyone,

I'm trying to send an email from a Hudson (integration server) job but the error below happens:

Code:
Sending e-mails to: xxxxxx
ERROR: smtp
javax.mail.NoSuchProviderException: smtp
 at javax.mail.Session.getService(Session.java:782)
 at javax.mail.Session.getTransport(Session.java:708)
 at javax.mail.Session.getTransport(Session.java:651)
 at javax.mail.Session.getTransport(Session.java:631)
 at javax.mail.Session.getTransport(Session.java:686)
 at javax.mail.Transport.send0(Transport.java:166)
 at javax.mail.Transport.send(Transport.java:98)
 at hudson.tasks.MailSender.execute(MailSender.java:110)
 at hudson.tasks.Mailer.perform(Mailer.java:111)
 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
 at hudson.model.Build$RunnerImpl.post2(Build.java:157)
 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
 at hudson.model.Run.run(Run.java:1348)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:139)

Why is this issue happening?
I think it could be due to the wrong configuration of Hudson server because the 'SMTP server' is empty. If so, how can I get the name of the SMTP server? (It's in the same unix machine that Hudson).

Or maybe, there is not the right javax.mail class in the hudson classpath. Which would the right class be?

Thanks in advance for your answers!

Aurea
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SMTP - emailing issue

We are running an application engine program that sends email to a list of users. In our Test Env, users are able to receive the emails but in our Prod environment, they do not. We are running the same program, and using the same stmp config. any idea on how to troubleshoot? (3 Replies)
Discussion started by: tads98
3 Replies

2. Shell Programming and Scripting

Copying files and emailing them out

Hello everybody, I'm trying to create a script that will cd into a directory and then copy the file with yesterday's date on it and then cd into another directory doing the same thing. Afterwards, i'm trying to zip up the two files, and email them out to people. Can anyone help? thanks a... (1 Reply)
Discussion started by: jhofilena
1 Replies

3. Solaris

SMTP Configuration

Hello everyone, I've got this Java script which needs to know the SMTP host in order to send out mails from a particular mail ID. But I have no idea how or what to configure in SMTP for getting this code up and running.(All I know is SMTP=Simple Mail Transfer Protocol). I'm using Solaris 5.8.... (1 Reply)
Discussion started by: Rajat
1 Replies

4. Shell Programming and Scripting

autosys job configuration for job failure.

We need to configure autosys that when a job fails continously for 3 times, we need to call another job. Is this possible in Autosys, or can anyone advice on the alternative. (2 Replies)
Discussion started by: sangea
2 Replies

5. Solaris

.muttrc configuration for smtp

Hi, I need to configure .muttrc for an internal smtp server. Scenario is that i want to send an email to an external email address (i.e. hotmail or gmail etc) with mutt from solaris sparc server. the server has connectivity to an internal smtp server but i am enable to configure .muttrc file.... (3 Replies)
Discussion started by: adeel
3 Replies

6. Shell Programming and Scripting

Need help on conditional emailing

Hi All, The following databse table maintains VENDOR and EMAIL details. VENOR_NAME VENDOR_EMAIL DELL surendra@dell.com HP rajkamal@hp.com ACER sumathi@acer.com NOKIA kunal@nokia.com SONY sinu@sony.com We have to find emaild id of a vendor based... (7 Replies)
Discussion started by: ROCK_PLSQL
7 Replies

7. Shell Programming and Scripting

Crontab 2>&1 not emailing

I have a script that emails me when I run it manually, but the crontab I'm using must be 'silencing' the output? Here's what I have: */15 * * * * /usr/src/blah.sh > /dev/null 2>&1 I don't want it to email me every time it runs, just when I run the sendmail command inside the script if the... (13 Replies)
Discussion started by: unclecameron
13 Replies

8. Web Development

SMTP Server Configuration

Hello list, I want to be able to send email directly from my linux box. I have both a CentOS and Debian installation. I am by no means an expert when it comes to all of the SMTP servers. I have been testing different configs by installing and uninstalling sendmail, postfix, and exim4. ... (2 Replies)
Discussion started by: landossa
2 Replies
POSTFIX-ADD-FILTER(8)					      System Manager's Manual					     POSTFIX-ADD-FILTER(8)

NAME
postfix-add-filter - add filter service to Postfix master.cf SYNOPSIS
postfix-add-filter [smtp service name...] [smtpd port...] DESCRIPTION
The postfix-add-filter(8) command adds an smtp service named smtp service name and and smtpd server listening on smtpd port to etc/post- fix/master.cf to facilitate integration of SMTP filters such as amavisd-new or clamsmtp. The configuration is based on the upstream recom- mendations for amavisd-new 2.6.0. Adminstrators should verify it is appropriate for their requirements. The original file is copied prior to modification and left in /etc/postfix to make it possible to revert changes easily. Available in the Debian package for Postfix version 2.5.3 and later. DIAGNOSTICS
If the given smtp service name or smtpd port already appear in the master.cf, a message will be printed to standard out and master.cf will not be modified. ENVIRONMENT
MAIL_CONFIG Directory with Postfix configuration files. The postfix-add-filter(8) command should use this, but it currently doesn't. It is hard coded to /etc/postfix. This should be changed. CONFIGURATION PARAMETERS
None FILES
/etc/postfix/master.cf SEE ALSO
postconf(5), Postfix configuration LICENSE
This software is licensed under the MIT open source license. AUTHOR(S) Scott Kitterman <scott@kitterman.com> POSTFIX-ADD-FILTER(8)
All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy