"Helo command rejected: need fully-qualified hostname" in Pentaho kettle email step - email

I am just trying to send test email using email step in kettle Transformation.
I am giving correct server name and port. I am able to configure email with same settings in ThunderBird outlook and working fine.
However, I am getting following error when I am using same settings in Kettle Email step and email is not sending.
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 504 5.5.2 : Helo command rejected: need fully-qualified hostname
Pls help me on this.
Thanks.

Related

Python: How to send mails via smtp relay?

I am following this procedure Option 3 in SMTP Relay Office365 When I done every procedure said in the article. After that when I run my python app with
s = smtplib.SMTP('XXMYMAILXX-com.mail.protection.outlook.com.', 25)
s.starttls()
s.login("john#XXMYMAILXX.com", "mypassword")
when I run this piece of code I get an error
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server
What am I missing here?
The steps I followed in the article are
Added the IP address where my python is being run to my mail connector
Added the TXT record with the IP address to spf records.

Differences in mailing from different servers

I have a java application installed on unix server using a tomcat instance.
it has a feature which allows to send email to external user and get reply from their Outlook.
The sending and receiving process works well but when trying to reply on their reply from the application i'm getting an error:
There was an error sending a message.
If the problem persists, please contact your system administrator.
Error: No recipient addresses
When sending the first e-mail from the application, the "To" address is:
name.surname#domain.com
But when receiving the reply from the recipient it will turn to:
Surname, Name < name.surname#domain.com >;
From trying it from different server it will work and the only different is that the "To:" address looks like this:
"Surname, Name" < name.surname#domain.com >
Application on both servers using same outgoing/incoming mail servers.
What else can effect it and cause the above error?
Thanks.

cfmail not sending to external address

I have a new web server that I am testing before turning it on live. I have run into a cfmail issue. The server is
Windows 2008 R2, 64Gig ram, 64-bit, IIS 7.5, Coldfusion 9.0.2 multi server, clustering 2 CF instances (my 1st time clustering), JDK1.7.0_71
cfmail is not sending email to recipients outside of our domain/work domain. The 1st cfmail tag below sends the email but the 2nd one does not. This is what I see when trying to send via the 2nd tag with external recipient email address domain
no errors on the page I run in the browser
email is not received at me#home.com (syntax is correct)
attempt #2 shows up in mail/Undelivr folder
mail.log has this error
"Error","scheduler-3","01/15/15","10:13:27",,"javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
application.log - no error
exception.log has same error in addition to stack trace
server.log no error
The same .cfm file I am testing with works fine on all of our other CF servers so I do not think it is the mail server configured in the CF admin. Any help is appreciated
<cfmail to="me#**work**.com" from="someone#work.com" subject="test" type="html">
<cfmail to="me#**home**.com" from="someone#work.com" subject="test" type="html">
The issue was our mail relay server did not have the IP of the new web server. After adding the IP of the new web server it worked just fine.
Thanks David!

Jenkins SMTP connection refused. What am I missing?

I've got Jenkins ver 1.524 installed on a Windows 7 box and I'm trying to configure email but the "Test configuration" is reporting errors. Jenkins is running as a service under my own domain account.
My settings are as follows:
SMTP server: smtp.corpdomain.com
Default user email suffix: #corpdomain.com
Not using authentication
Not using SSL
SMTP port: 25
Reply-To Address: tools#corpdomain.com
Charset: UTF-8
When I test the configuration, I usually get the following exception:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.amazon.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
Yet every once in a while I receive the following instead:
com.sun.mail.smtp.SMTPSendFailedException: 553 5.1.8 <nobody#nowhere>... Domain of sender address nobody#nowhere does not exist
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 553 5.1.8 <nobody#nowhere>... Domain of sender address nobody#nowhere does not exist
However, I am able to send mail from the command line without errors via both python script and java (using javax.mail) without authentication, and I'm able to telnet to the SMTP server on port 25, so I don't see how it could be a firewall issue.
One other note that may be related: When I try to install a plug-in via the Jenkins web interface, I receive a 403 response for the URL "http://updates.jenkins-ci.org/update-center.json?uctest". However, I'm able to connect to that URL from a browser on the same machine.
Could this be a Tomcat configuration issue? I'm not familiar with Tomcat so I'm not sure where to even start looking. Maybe a Jenkins configuration that I've missed? Any other ideas?
Thanks in advance!
FWIW The nobody#nowhere address is the default address Jenkins comes with for the system admin email address (which is used as the from address when sending emails)
you can change it at
Manage Jenkins > Configure System > Jenkins Location
first, use port 465
second, get your email verified in AWS SES, and change your default sending email from here:
Jenkins -> Configure System -> Jenkins Location -> System Admin e-mail address
Still looks to me like your firewall is blocking Jenkins' service from accessing those ports -
especially as the connection times-out, which is typical for such cases.
Suggest you try to disable the firewall completely and see if there is any change.
Cheers
To check for conectivity problems from Jenkins, I would go to the Script Console at Manage Jenkins -> Script Console, and there, try to connect to the port you want to test (25 in your case), with a Groovy script like:
s = new Socket()
s.setSoTimeout(200)
s.connect(new InetSocketAddress("smtp.corpdomain.com", 25), 200)
s.close()
If you don't receive any kind of IOError, then there is no problem with the conectivity.
Note: I could have used simply new Socket("smtp.corpdomain.com", 25) but it will try forever to connect if the Firewall ignores your attempts.
For the SMTPSendFailedException you eventually receive, as #paul-henry mention:
The nobody#nowhere address is the default address Jenkins comes with for the system admin email address (which is used as the from address when sending emails)
you can change it at
Manage Jenkins > Configure System > Jenkins Location
Resources:
Networking with Groovy
Add a timeout when creating a new Socket
Thanks for submitting an edit. It is only visible to you until it’s been approved by trusted community members
first, use port 465 second, get your email verified in AWS SES, and change your default sending email from here: Jenkins -> Configure System -> Jenkins Location -> System Admin e-mail address
Thanks. It helps me!
My problem was "550-Verification failed for "

Skpsmtpmessage: which server should i use for gmail

I got this project "skpsmtpmessage" and I tried to send mail first. So I changed all the mail id to gmail id. But replay host is problem. I tried smtp.gmail.com, smtp.google.com, smtp.googletalk.com. But when I run my program, I get error that "Unable to connect server"
Which relay host should I use for gmail.
The correct SMTP server for Gmail is smtp.gmail.com, but I don't know how to help you further, the question is pretty vague.
You can also take a look at the configuration instructions for using Gmail on the iPhone to see if you're making a mistake with another parameter.