This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 6053b4e5be5 Regen
6053b4e5be5 is described below

commit 6053b4e5be59d214fff4d03775d6e85da046fb30
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 20 13:59:03 2026 +0200

    Regen
---
 .../camel/springboot/catalog/components/cxf.json    |  4 ++--
 .../camel/springboot/catalog/components/cxfrs.json  |  2 +-
 .../camel/springboot/catalog/components/imap.json   |  8 +++++---
 .../camel/springboot/catalog/components/imaps.json  |  8 +++++---
 .../camel/springboot/catalog/components/pop3.json   |  8 +++++---
 .../camel/springboot/catalog/components/pop3s.json  |  8 +++++---
 .../camel/springboot/catalog/components/smtp.json   |  8 +++++---
 .../camel/springboot/catalog/components/smtps.json  |  8 +++++---
 .../camel-mail-starter/src/main/docs/mail.json      |  7 +++++++
 .../mail/springboot/MailComponentConfiguration.java | 21 +++++++++++++++++++++
 tooling/camel-spring-boot-dependencies/pom.xml      |  5 +++++
 11 files changed, 66 insertions(+), 21 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxf.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxf.json
index 7fcf7e3f579..8ffd0e47d4b 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxf.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxf.json
@@ -34,8 +34,8 @@
     "useGlobalSslContextParameters": { "index": 6, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." }
   },
   "headers": {
-    "operationName": { "index": 0, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The name of the operation.", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#OPERATION_NAME" },
-    "operationNamespace": { "index": 1, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The operation namespace.", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#OPERATION_NAMESPACE"
 },
+    "CamelCxfOperationName": { "index": 0, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The name of the operation.", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#OPERATION_NAME" },
+    "CamelCxfOperationNamespace": { "index": 1, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The operation namespace.", 
"constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#OPERATION_NAMESPACE"
 },
     "CamelDestinationOverrideUrl": { "index": 2, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The destination override url", 
"constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#DESTINATION_OVERRIDE_URL"
 },
     "ResponseContext": { "index": 3, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "Map<String, 
Object>", "deprecated": false, "deprecationNote": "", "autowired": false, 
"secret": false, "description": "The response context", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#RESPONSE_CONTEXT" },
     "CamelAuthentication": { "index": 4, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"javax.security.auth.Subject", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The authentication", 
"constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#AUTHENTICATION" },
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxfrs.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxfrs.json
index 7dc30df57de..31b5950be08 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxfrs.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/cxfrs.json
@@ -33,7 +33,7 @@
     "useGlobalSslContextParameters": { "index": 5, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." }
   },
   "headers": {
-    "operationName": { "index": 0, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The name of the operation.", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#OPERATION_NAME" },
+    "CamelCxfOperationName": { "index": 0, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The name of the operation.", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#OPERATION_NAME" },
     "CamelAuthentication": { "index": 1, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"javax.security.auth.Subject", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The authentication", 
"constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#AUTHENTICATION" },
     "CamelHttpMethod": { "index": 2, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The http method to use", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#HTTP_METHOD" },
     "CamelHttpPath": { "index": 3, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The http path", "constantName": 
"org.apache.camel.component.cxf.common.message.CxfConstants#HTTP_PATH" },
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imap.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imap.json
index 6f98eea3db5..6b69f9ac403 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imap.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imap.json
@@ -73,7 +73,8 @@
     "password": { "index": 44, "kind": "property", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 45, "kind": "property", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
     "useGlobalSslContextParameters": { "index": 46, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." },
-    "username": { "index": 47, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 47, "kind": 
"property", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", "d [...]
+    "username": { "index": 48, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
   },
   "headers": {
     "Subject": { "index": 0, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "String", "deprecated": 
false, "deprecationNote": "", "autowired": false, "secret": false, 
"description": "Subject", "constantName": 
"org.apache.camel.component.mail.MailConstants#MAIL_SUBJECT" },
@@ -158,7 +159,8 @@
     "useFixedDelay": { "index": 66, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
     "password": { "index": 67, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 68, "kind": "parameter", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
-    "username": { "index": 69, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
-    "sortTerm": { "index": 70, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 69, "kind": 
"parameter", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", " [...]
+    "username": { "index": 70, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
+    "sortTerm": { "index": 71, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
   }
 }
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imaps.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imaps.json
index 25d2f7a94ca..b3d4328eb03 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imaps.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/imaps.json
@@ -73,7 +73,8 @@
     "password": { "index": 44, "kind": "property", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 45, "kind": "property", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
     "useGlobalSslContextParameters": { "index": 46, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." },
-    "username": { "index": 47, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 47, "kind": 
"property", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", "d [...]
+    "username": { "index": 48, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
   },
   "headers": {
     "Subject": { "index": 0, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "String", "deprecated": 
false, "deprecationNote": "", "autowired": false, "secret": false, 
"description": "Subject", "constantName": 
"org.apache.camel.component.mail.MailConstants#MAIL_SUBJECT" },
@@ -158,7 +159,8 @@
     "useFixedDelay": { "index": 66, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
     "password": { "index": 67, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 68, "kind": "parameter", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
-    "username": { "index": 69, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
-    "sortTerm": { "index": 70, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 69, "kind": 
"parameter", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", " [...]
+    "username": { "index": 70, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
+    "sortTerm": { "index": 71, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
   }
 }
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3.json
index 69219030d03..cd4e32ac533 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3.json
@@ -73,7 +73,8 @@
     "password": { "index": 44, "kind": "property", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 45, "kind": "property", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
     "useGlobalSslContextParameters": { "index": 46, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." },
-    "username": { "index": 47, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 47, "kind": 
"property", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", "d [...]
+    "username": { "index": 48, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
   },
   "headers": {
     "Subject": { "index": 0, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "String", "deprecated": 
false, "deprecationNote": "", "autowired": false, "secret": false, 
"description": "Subject", "constantName": 
"org.apache.camel.component.mail.MailConstants#MAIL_SUBJECT" },
@@ -158,7 +159,8 @@
     "useFixedDelay": { "index": 66, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
     "password": { "index": 67, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 68, "kind": "parameter", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
-    "username": { "index": 69, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
-    "sortTerm": { "index": 70, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 69, "kind": 
"parameter", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", " [...]
+    "username": { "index": 70, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
+    "sortTerm": { "index": 71, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
   }
 }
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3s.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3s.json
index d5b1da3a2b5..38504381601 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3s.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/pop3s.json
@@ -73,7 +73,8 @@
     "password": { "index": 44, "kind": "property", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 45, "kind": "property", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
     "useGlobalSslContextParameters": { "index": 46, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." },
-    "username": { "index": 47, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 47, "kind": 
"property", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", "d [...]
+    "username": { "index": 48, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
   },
   "headers": {
     "Subject": { "index": 0, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "String", "deprecated": 
false, "deprecationNote": "", "autowired": false, "secret": false, 
"description": "Subject", "constantName": 
"org.apache.camel.component.mail.MailConstants#MAIL_SUBJECT" },
@@ -158,7 +159,8 @@
     "useFixedDelay": { "index": 66, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
     "password": { "index": 67, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 68, "kind": "parameter", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
-    "username": { "index": 69, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
-    "sortTerm": { "index": 70, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 69, "kind": 
"parameter", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", " [...]
+    "username": { "index": 70, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
+    "sortTerm": { "index": 71, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
   }
 }
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtp.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtp.json
index 2ef50422b86..64a387cade4 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtp.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtp.json
@@ -73,7 +73,8 @@
     "password": { "index": 44, "kind": "property", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 45, "kind": "property", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
     "useGlobalSslContextParameters": { "index": 46, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." },
-    "username": { "index": 47, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 47, "kind": 
"property", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", "d [...]
+    "username": { "index": 48, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
   },
   "headers": {
     "Subject": { "index": 0, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "String", "deprecated": 
false, "deprecationNote": "", "autowired": false, "secret": false, 
"description": "Subject", "constantName": 
"org.apache.camel.component.mail.MailConstants#MAIL_SUBJECT" },
@@ -158,7 +159,8 @@
     "useFixedDelay": { "index": 66, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
     "password": { "index": 67, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 68, "kind": "parameter", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
-    "username": { "index": 69, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
-    "sortTerm": { "index": 70, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 69, "kind": 
"parameter", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", " [...]
+    "username": { "index": 70, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
+    "sortTerm": { "index": 71, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
   }
 }
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtps.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtps.json
index 06e724df918..236a7dfa1bb 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtps.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smtps.json
@@ -73,7 +73,8 @@
     "password": { "index": 44, "kind": "property", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 45, "kind": "property", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
     "useGlobalSslContextParameters": { "index": 46, "kind": "property", 
"displayName": "Use Global Ssl Context Parameters", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Enable usage of global SSL context 
parameters." },
-    "username": { "index": 47, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 47, "kind": 
"property", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", "d [...]
+    "username": { "index": 48, "kind": "property", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." }
   },
   "headers": {
     "Subject": { "index": 0, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "String", "deprecated": 
false, "deprecationNote": "", "autowired": false, "secret": false, 
"description": "Subject", "constantName": 
"org.apache.camel.component.mail.MailConstants#MAIL_SUBJECT" },
@@ -158,7 +159,8 @@
     "useFixedDelay": { "index": 66, "kind": "parameter", "displayName": "Use 
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in 
JDK for details." },
     "password": { "index": 67, "kind": "parameter", "displayName": "Password", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The password for login. See also 
setAuthenticator(MailAuthenticator)." },
     "sslContextParameters": { "index": 68, "kind": "parameter", "displayName": 
"Ssl Context Parameters", "group": "security", "label": "security", "required": 
false, "type": "object", "javaType": 
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "To configure security using 
SSLContextParameters." },
-    "username": { "index": 69, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
-    "sortTerm": { "index": 70, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
+    "useJavaMailSessionPropertiesFromHeaders": { "index": 69, "kind": 
"parameter", "displayName": "Use Java Mail Session Properties From Headers", 
"group": "security", "label": "producer,advanced,security", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "security": "insecure:ssl", "defaultValue": false, 
"configurationClass": "org.apache.camel.component.mail.MailConfiguration", 
"configurationField": "configuration", " [...]
+    "username": { "index": 70, "kind": "parameter", "displayName": "Username", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "security": "secret", "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "The username for login. See also 
setAuthenticator(MailAuthenticator)." },
+    "sortTerm": { "index": 71, "kind": "parameter", "displayName": "Sort 
Term", "group": "sort", "label": "consumer,sort", "required": false, "type": 
"object", "javaType": "org.eclipse.angus.mail.imap.SortTerm[]", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sorting order for 
messages. Only natively supported for IMAP. Emulated to some degree when using 
POP3 or when IMAP server does not have the SORT capability." }
   }
 }
diff --git a/components-starter/camel-mail-starter/src/main/docs/mail.json 
b/components-starter/camel-mail-starter/src/main/docs/mail.json
index 9996e8c149c..a1fc4d93194 100644
--- a/components-starter/camel-mail-starter/src/main/docs/mail.json
+++ b/components-starter/camel-mail-starter/src/main/docs/mail.json
@@ -344,6 +344,13 @@
       "sourceType": 
"org.apache.camel.component.mail.springboot.MailComponentConfiguration",
       "defaultValue": false
     },
+    {
+      "name": 
"camel.component.mail.use-java-mail-session-properties-from-headers",
+      "type": "java.lang.Boolean",
+      "description": "Whether to allow dynamic JavaMail session properties 
(message headers whose key starts with mail.smtp. or mail.smtps.) to override 
the endpoint configuration on a per-message basis. This is disabled by default. 
Only enable it when these headers originate exclusively from trusted route 
logic, never from data crossing a trust boundary (for example HTTP query 
parameters, or JMS\/Kafka messages from untrusted producers). When enabled, an 
attacker able to set these heade [...]
+      "sourceType": 
"org.apache.camel.component.mail.springboot.MailComponentConfiguration",
+      "defaultValue": false
+    },
     {
       "name": "camel.component.mail.username",
       "type": "java.lang.String",
diff --git 
a/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
 
b/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
index c2f48bf1b47..38c6d4d0fd3 100644
--- 
a/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
+++ 
b/components-starter/camel-mail-starter/src/main/java/org/apache/camel/component/mail/springboot/MailComponentConfiguration.java
@@ -341,6 +341,18 @@ public class MailComponentConfiguration
      * Enable usage of global SSL context parameters.
      */
     private Boolean useGlobalSslContextParameters = false;
+    /**
+     * Whether to allow dynamic JavaMail session properties (message headers
+     * whose key starts with mail.smtp. or mail.smtps.) to override the 
endpoint
+     * configuration on a per-message basis. This is disabled by default. Only
+     * enable it when these headers originate exclusively from trusted route
+     * logic, never from data crossing a trust boundary (for example HTTP query
+     * parameters, or JMS/Kafka messages from untrusted producers). When
+     * enabled, an attacker able to set these headers could weaken transport
+     * security (such as mail.smtp.ssl.trust or mail.smtp.starttls.enable) or
+     * redirect the SMTP connection.
+     */
+    private Boolean useJavaMailSessionPropertiesFromHeaders = false;
     /**
      * The username for login. See also setAuthenticator(MailAuthenticator).
      */
@@ -730,6 +742,15 @@ public class MailComponentConfiguration
         this.useGlobalSslContextParameters = useGlobalSslContextParameters;
     }
 
+    public Boolean getUseJavaMailSessionPropertiesFromHeaders() {
+        return useJavaMailSessionPropertiesFromHeaders;
+    }
+
+    public void setUseJavaMailSessionPropertiesFromHeaders(
+            Boolean useJavaMailSessionPropertiesFromHeaders) {
+        this.useJavaMailSessionPropertiesFromHeaders = 
useJavaMailSessionPropertiesFromHeaders;
+    }
+
     public String getUsername() {
         return username;
     }
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml 
b/tooling/camel-spring-boot-dependencies/pom.xml
index 4c6ae5df3a9..83b077ff6fa 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -5200,6 +5200,11 @@
         <artifactId>jspecify</artifactId>
         <version>1.0.0</version>
       </dependency>
+      <dependency>
+        <groupId>org.junit</groupId>
+        <artifactId>junit-start</artifactId>
+        <version>6.1.0</version>
+      </dependency>
       <dependency>
         <groupId>org.xmlunit</groupId>
         <artifactId>xmlunit-assertj3</artifactId>

Reply via email to