jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 61285] New: SMTP Sampler doesn't configure localhost name
Date Thu, 13 Jul 2017 01:33:35 GMT

            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
  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 only fully qualified
domain name may be used. Computer name usually isn't a fully qualified domain

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

This can be easily overriden in
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.
View raw message