diff --git a/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml b/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml
index e1eb26fd5a..1d63870f0b 100644
--- a/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml
+++ b/spring-boot-starters/spring-boot-starter-remote-shell/pom.xml
@@ -91,6 +91,10 @@
org.codehaus.groovy
groovy-all
+
+ javax.mail
+ mail
+
@@ -107,5 +111,9 @@
org.codehaus.groovy
groovy
+
+ com.sun.mail
+ javax.mail
+