Bug 58013 - SMTP Sampler can't connect to TLSv1.2 only server
Summary: SMTP Sampler can't connect to TLSv1.2 only server
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 minor (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-08 17:14 UTC by Felix Schumacher
Modified: 2019-01-29 16:02 UTC (History)
1 user (show)



Attachments
Set the property "mail.smtp.ssl.protocols" to the enabled protocols of the default SSLContext. (2.02 KB, patch)
2015-06-08 17:14 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Schumacher 2015-06-08 17:14:37 UTC
Created attachment 32799 [details]
Set the property "mail.smtp.ssl.protocols" to the enabled protocols of the default SSLContext.

At least with java 7 it is currently not possible to connect to a smtp server that has enabled TLSv1.2 only. The sampler will try TLSv1, which the smtp server refuses.

For more details see http://mail-archives.apache.org/mod_mbox/jmeter-user/201505.mbox/%3C23906252.1558272.1432898185750.JavaMail.yahoo%40mail.yahoo.com%3E
and http://mail-archives.apache.org/mod_mbox/jmeter-dev/201506.mbox/%3C557318FF.3070607%40internetallee.de%3E
Comment 1 Felix Schumacher 2015-06-08 17:24:06 UTC
Date: Mon Jun  8 17:22:15 2015
New Revision: 1684228

URL: http://svn.apache.org/r1684228
Log:
Bug 58013 - Enable all protocols that are enabled on the default SSLContext for usage with the SMTP Sampler.

Bugzilla Id: 58013

Modified:
    jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Felix Schumacher 2015-07-22 10:44:37 UTC
Date: Wed Jul 22 10:42:40 2015
New Revision: 1692251

URL: http://svn.apache.org/r1692251
Log:
Bug 58013 - Constants for ssl protocols differ for smtp and smtp.

Bugzilla Id: 58013

Modified:
    jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
Comment 3 The ASF infrastructure team 2022-09-24 20:38:00 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3608