jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61285] New: SMTP Sampler doesn't configure localhost name
Date Thu, 13 Jul 2017 01:33:35 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61285

            Bug ID: 61285
           Summary: SMTP Sampler doesn't configure localhost name
           Product: JMeter
           Version: 3.2
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: michal.rames@gmail.com
  Target Milestone: ---

If a jmeter is run on a computer not connected to a domain, the underlying
JavaMail implementation resolves the computer name for EHLO command. 

According to the https://tools.ietf.org/html/rfc5321 only fully qualified
domain name may be used. Computer name usually isn't a fully qualified domain
name.

As a result the SMTP server may respond with '501 Invalid EHLO'

This can be easily overriden in
src/protocol/mail/org.apache.jmeter.protocol.smtp.sampler.protocol.SendMailCommand.java
in public void prepareMessage():

props.setProperty("mail.smtp.localhost", localhostDomainName);

And set from GUI via SmtpSampler ... 

If you accept this as a bug fix or enhancement request, I am offering to
provide the required code. Let me know what's the best way (e.g. pull request
in GitHub? )

Thanks / Michal

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message