You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Karsten Otto (Jira)" <se...@james.apache.org> on 2022/10/26 09:40:00 UTC
[jira] [Created] (JAMES-3842) Access SSLSession from Hooks and Handlers
Karsten Otto created JAMES-3842:
-----------------------------------
Summary: Access SSLSession from Hooks and Handlers
Key: JAMES-3842
URL: https://issues.apache.org/jira/browse/JAMES-3842
Project: James Server
Issue Type: Improvement
Components: protocols
Affects Versions: master
Reporter: Karsten Otto
James supports SMTPS and StartTLS, but currently has no way to programmatically access the resulting SSLSession from SMTP Hooks, POP3 Command Handlers etc. I propose to make the SSLSession accessible through the ProtocolSession.
This way, hooks/handlers can examine the SSL/TLS parameters negotiated with the currently connected client. They can check e.g. TLS version and selected cipher suite to evaluate the security level of the connection. With certificate based client authentication enabled, they can get the provided client certificate, e.g. to check against a permission list. Or a JamesMessageHook could attach it to the Mail object, so this information becomes even available to Mailets after spooling.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org