diff --git a/dspace-api/pom.xml b/dspace-api/pom.xml
index e9544d3274fa..5c094dee2a2e 100644
--- a/dspace-api/pom.xml
+++ b/dspace-api/pom.xml
@@ -458,7 +458,12 @@
commons-validator
- com.sun.mail
+ jakarta.mail
+ jakarta.mail-api
+ provided
+
+
+ org.eclipse.angus
jakarta.mail
diff --git a/dspace-services/pom.xml b/dspace-services/pom.xml
index e146d6676dea..e268d62d4b60 100644
--- a/dspace-services/pom.xml
+++ b/dspace-services/pom.xml
@@ -102,7 +102,12 @@
provided
- com.sun.mail
+ jakarta.mail
+ jakarta.mail-api
+ provided
+
+
+ org.eclipse.angus
jakarta.mail
diff --git a/pom.xml b/pom.xml
index 5a5024c45b6e..f57bd812f96d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,8 +34,8 @@
2.16.0
2.16.0
2.1.1
- 4.0.0
- 4.0.1
+ 4.0.2
+ 4.0.5
1.1.1
9.4.54.v20240208
@@ -1522,9 +1522,22 @@
2.12.5
- com.sun.mail
+ jakarta.activation
+ jakarta.activation-api
+ 2.1.3
+
+
+
+ jakarta.mail
+ jakarta.mail-api
+ 2.1.3
+ provided
+
+
+
+ org.eclipse.angus
jakarta.mail
- 2.0.1
+ 2.0.3
jakarta.servlet