Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mail-dev] Request for enhancement - Show transport protocol version
  • From: "Rob Griffin (rgriffin)" <Rob.Griffin@xxxxxxxxx>
  • Date: Sun, 30 Aug 2020 22:27:31 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U/PhQZ7WxNiuvM3XFwvnL7go0ujILuSpYcwjT+23ZHQ=; b=Cneixh/Kz2uKdH+vuxkCHAUfc8KWmf/slQaqO959A/9wVukVFi/3/z6WP/QlZLLfB90dRYixlmDGu+7jxWSx1Zvqp7d3SGxddnVuUA3sjIL+tQCcRMvSnE8HNRYy1clzxTgE7Mc9wX9ZGrWbHe3IzvypL36fwz+CnNijv8jQVK/IELgkEcRu8/C8NAhrpdrGpT7bY17aW+FcVSEYSX6/aSMU+9kDvaFjMk5KJ74+gMZ5N1awcrety32GR7e3I4qz0oLXVmIS29KgKo4/cBsGWIWptuaYGKqsFW9MEx/sCKXy/21vDzJGqiGIGG9gnnuwOCyHsVzD8eqxykVfp1EYHg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=CNLxN5Y6sWdpMMzVVSz1FQSqMqKYz8jbBr6fjnB6mK0v1wPqAr3urAqOhbct3W2Lc7xM1v4lsCFTTY6VokvOozPCXQUOEXPKfqlNh+JbRxhmdw6VCPiHtnSyO9uOgTixBWip6M/iBLKE8urOSMauSl2bP0s3lPO8FKSbqLalpZn43m01Uz830FQLSUuHwDvE3hGHbp8JISiWBUbB4dor5RTrc0YPWEebfdfGj9OAbWezyuH7ek+2yOs9/k9CkfPa/8GZVSyWC4OacTR/ynu39QL13ZBrwPjh84nrKp8JLcnepDgURb9OJEMxAc9qE00GH8ay8163dIEWeIi68azMhQ==
  • Delivered-to: mail-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AQHWfO6R1YisFEtNek+M1JR9GhUzgqlRP0cw
  • Thread-topic: [mail-dev] Request for enhancement - Show transport protocol version

Hi Jason,

Thanks for that info. However it is not enough to know which protocol version is in use. We want to ensure TLS1.2 is being used.


Rob Griffin
Software Analyst, Spotlight on SQL Server
Quest | R&D

-----Original Message-----
From: mail-dev-bounces@xxxxxxxxxxx <mail-dev-bounces@xxxxxxxxxxx> On Behalf Of Jason Mehrens
Sent: Friday, 28 August 2020 1:51 PM
To: mail-dev@xxxxxxxxxxx
Subject: Re: [mail-dev] Request for enhancement - Show transport protocol version

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.

Hi Rob,

There are public methods that you can query to determine this information.  You need to have access to a Transport, Message, or Session in order to invoke them.

A transport is a type of service so all you need to do is gain access to the Transport used to send the message.  If you don't have a transport then you need to gain access to a Session that is used to create a transport.  Message and MessageContext can gain access to the session assigned to a MimeMessage.  Once you have access to the Session you need to call one of the getTransport methods.  If you are using the static Transport::send the you need to emulate the transport lookup rules in :;;sdata=MaasybNM1KTEOMkhuECY0w45brPOamt0vBqbCd6eMec%3D&amp;reserved=0

Now there is no service query method that determines if implementation is secure.  However, there are query methods that don't require resorting to reflection.  They are:

1. Inspect Service::getURLName (;;sdata=F6fbec%2BYAXKbPE%2B6kGApsiUnqJFFpUMi%2FHj8%2FKqRKe8%3D&amp;reserved=0) to see if the transport is secure.
2. Check the type of the transport.  If you are not using a custom transport the secure transport class contains SSL in the class name.


From: mail-dev-bounces@xxxxxxxxxxx <mail-dev-bounces@xxxxxxxxxxx> on behalf of Rob Griffin (rgriffin) <Rob.Griffin@xxxxxxxxx>
Sent: Thursday, August 27, 2020 7:29 PM
To: mail-dev@xxxxxxxxxxx
Subject: [mail-dev] Request for enhancement - Show transport protocol version


We are using currently using JavaMail in our application (Spotlight on SQL Server Enterprise) but will be switching to Jakarta Mail shortly. We want to warn users when they are using an insecure protocol to send email. We are planning to use reflection to discover which protocol is being used but that is a very hacky way to find this out. Would it be possible to add a method to the API to show the transport protocol and version?


Rob Griffin
Software Analyst, Spotlight on SQL Server Quest | R&D rob.griffin@xxxxxxxxx<mailto:rob.griffin@xxxxxxxxx> ?
mail-dev mailing list
To unsubscribe from this list, visit;;sdata=%2F8R5i8W1X6DXVUKfGubvwpRnJnTTb49cw76mkW%2B3u%2B8%3D&amp;reserved=0

Back to the top