smtp.gmail.com changing MAIL TO property? - email

Does smpt.gmail.com change the MAIL TO property of an E-Mail? I sent one with these settings with ssl:
MAIL FROM:<someRandomNotExistingEmail#bla.com>
RCPT TO:<myRealGmail#googlemail.com>
DATA
From:<someRandomNotExistingEmail#bla.com>
To:<someOtherRandomNotExistingEmail#blabla.com>
Subject: Hello
Content of E-Mail.
.
250 2.0.0 OK - gsmtp
QUIT
I received the E-Mail, but instead of <someRandomNotExistingEmail#bla.com> the source was <myRealGmail#googlemail.com>, does Google change fake MAIL FROM Headers?

Related

Mail Reader Sampler - Unable to read mail from yopmail/mailinator using jmeter

Mail Reader Sampler - Unable to read mail from yopmail/mailinator using jmeter
I am sending mail to abc123#yopmail.com , i want to read that mail or check whether received the mail in abc123#yopmail.com or not.
I haven't got any POP3/IMAP details of yopmail/mailinator.
Any other way i can verify the received emails.
Response in Jmeter - Error code -500
Imap cred for yopmail:
mail-imap.yopmail.com
port - not mentioned
username - abc#yopmail.com
password - not mentioned

Exim4 on server. Sending to it from another smtp. Sender verify failed

I have Exim on server with test#domain.com email.
And now i'm sending email to test#domain.com from test2#domain.com but using provider SMTP and i'm getting following error:
Failed: test2#domain.com → test#domain.com 'Microsoft Office Outlook Test Message' Server response:
550 550 Verification failed for <bounce+2db7fb.5fc31-info=test#domain.com> Unrouteable address Sender verify failed
How can i put my SMTP (sender) to white list?
Have you correctly setup your domain MX record your server ? I think there is an issues with the mx record of your domain.

Telnet SMTP send mail timeout

I want to use telnet to send an e-mail with SMTP. It seemed that I had connect to the mail service successfully. And the message had been put in the queue too. But why did the SMTP service failed to send the message to the received address?
When I searched the solution by the internet, someone had said that firewall should paid it. But I have no idea about the relationship between the firewall or antivirus software and telnet.
This is my command:
220 smtp-5-124.smtpsmail.fmail.xd.sinanode.com ESMTP
helo a
250 smtp-5-124.smtpsmail.fmail.xd.sinanode.com
auth login
334 VXNlcd5hbWU6
a25vd215aGV2341241fasYS5jbg==
334 UGFzczdvcmQ6
UmF5V2adfa23adsfZzgyNA==
235 OK Authenticated
mail from: <knowmyheart#sina.cn>
502 unimplemented (#5.5.1)
mail from:<knowmyheart#sina.cn>
553 Envolope sender mismatch with login user..
mail from:<knowmyheart#sina.cn>
250 ok
rcpt to:<517447201#qq.com>
250 ok
data
354 End data with <CR><LF>.<CR><LF>
subject: test
to:<517447201#qq.com>
from:<knowmyheart#sina.cn>
Testttttttttttttt!
.
250 ok queue id 6744281442287
451 Timeout.
By the way, I tried it both on Windows 10 and Ubuntu-15.10. And both of them failed with the same question.
Finally, I found where I was wrong.
In my previous case,I failed to send a e-mail with the above code.I had succeeded in connecting with the SMTP server, and everything worked except the "Timeout" response. Actually, the "Timeout" didn't mean I failed to send a e-mail but lose the TCP connection. Hours Later, I login my e-mail, which was used for sending, finding that I receive a mail. The mail told me the e-mail I sent hours before with telnet was given back, failing to post. So it meant that the reason was hardly because of my telnet client, but in server or something else.
Finally, I found that it was because of my mail format. In my previous code, after I sending keyword -- "data", I immediately send the content.
data
354 End data with <CR><LF>.<CR><LF>
subject: test
to:<517447201#qq.com>
from:<knowmyheart#sina.cn>
Testttttttttttttt!
.
250 ok queue id 6744281442287
When I changed it to this, it worked.
data
354 End data with <CR><LF>.<CR><LF>
subject: test
to:<517447201#qq.com>
from:<knowmyheart#sina.cn>
Testttttttttttttt!
.
250 ok queue id 6744281442287
Notice that the difference between the codes is the empty line before the content in this mail. "subject", "to" and "from" are the headers. Between the header and the content, there must be an empty line.
Similarly, the headers in mail can be ignored. The code is like this:
data
354 End data with <CR><LF>.<CR><LF>
Testttttttttttttt!
.
250 ok queue id 6744281442287
451 Timeout.
Even if there is a "Timeout", it affect nothing but break the tcp connection between localhost and smtp server.

Jenkins fails on sending emails

I'm trying to send email from Jenkins using Extended Jenkins Email plugin.
Here is the output of the job:
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Email was triggered for: Always
Sending email for trigger: Always
messageContentType = text/plain; charset=UTF-8
Adding recipients from project recipient list
Adding recipients from trigger recipient list
Setting In-Reply-To since last build was not successful
Successfully created MimeMessage
Sending email to: tomasz.szandala#nokia.com
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "webmail-apac.nsn-intra.net", port 465, isSSL false
MessagingException message: Could not connect to SMTP host: webmail-apac.nsn-intra.net, port: 465
Sending email for trigger: Always
messageContentType = text/plain; charset=UTF-8
Adding recipients from project recipient list
Adding recipients from trigger recipient list
Setting In-Reply-To since last build was not successful
No, the question: how can I check wht is the problem?
I see only:
MessagingException message:
"Could not connect to SMTP host: webmail-apac.nsn-intra.net, port: 465"
How can I investigate the reason?
I think it's a network issue, your Jenkins server is not able to reach your SMTP server on the port 465.
Can you launch the following command to check if the port is open? (on your Jenkins server, with the jenkins account running the Jenkins app)
telnet webmail-apac.nsn-intra.net 465
If the port is open, you should see this response:
➜ ~ webmail-apac.nsn-intra.net 465
Trying XXX.XXX.XXX.XXX...
Connected to webmail-apac.nsn-intra.net.
Escape character is '^]'.
If the port is not open, try to disable the firewall on your Jenkins server.

Send email from gmail using Telnet

I am working on windows and I have enabled telnet client
In cmd prompt:
$telnet smtp.gmail.com 587
220 mx.google.com ESMTP dk3sm50678627pbc.32 - gsmtp
$Helo
250 mx.google.com at your service
$ mail from: <myuser#gmail.com>
530 5.7.0 Must issue a STARTTLS command first. dk3sm50678627pbc.32 - gsmtp
$ STARTTLS
220 2.0.0 Ready to start TLS
$ mail from:
C:\Users\{myuser}>
Connection to host lost.
Don't know What is the problem ?
Can anyone help me out , how i can send emails from gmail server using telnet from command line >
smtp.gmail.com requires TLS. The basic telnet client that comes with windows does not know how to negotiate TLS with a server. You may want to use openssl instead, which is able to negotiate TLS. See http://www.madboa.com/geek/openssl/#cs-smtp for an example of how to do this.
The gmail smtp must use smtp auth before you sending your email. The smtp auth need username and password.
see this link blow if you can read in Chinese.
http://linxucn.blog.51cto.com/1360306/837365
Last I sugguest you use java to ask gmail smtp server to send email, It will be more easy , becasue you needn't encode the smtp auth to BASE64 or anything else.
GOGOGO, good luck :)
Put into a VBS file, ie sendmail.vbs.
Set emailObj = CreateObject("CDO.Message")
emailObj.From = "cat#gmail.com"
emailObj.To = "cat#gmail.com"
emailObj.Subject = "Test CDO"
emailObj.TextBody = "Test CDO"
emailObj.AddAttachment "c:\windows\win.ini"
Set emailConfig = emailObj.Configuration
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "cat"
emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "Ccat1"
emailConfig.Fields.Update
emailObj.Send
If err.number = 0 then Msgbox "Done"
At Google's web site for GMail you have to turn this feature on for CDO to work.
At your Gmail page click Settings - Accounts and Import - Other Google Account Settings - [At very bottom of page] Allow less secure apps.
Also from memory you also have to click a link in an email the first time you use it (it's been a few years).