454 4.7.0 SpringBoot 2.1.4.RELEASE中的登录尝试过多

时间:2019-04-08 17:10:25

标签: spring-boot email ssl smtp smtp-auth

我使用具有这些属性的SpringBoot 2.1.4.RELEASE应用程序发送电子邮件

spring.mail.host=smtp.gmail.com
spring.mail.username=calzada@gmail.com
spring.mail.password=***OBSCURED***
spring.mail.properties.mail.smtp.auth = true
spring.mail.properties.mail.smtp.socketFactory.port = 587
spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.fallback = false
spring.mail.propertirs.mail.smtp.ssl.enable = true
spring.mail.properties.mail.smtp.starttls.enable=true 
spring.mail.properties.mail.smtp.starttls.required=false

一切都很好,直到我尝试发送此结果的电子邮件为止:

The email account that you tried to reach is over quota. Please direct the recipient to https://support.google.com/mail/?p=OverQuotaTemp b133sor4470647wmd.14 - gsmtp

此错误之后,我在发送电子邮件时收到此错误:

Caused by: javax.mail.AuthenticationFailedException: 454 4.7.0 Too many login attempts, please try again later. b54sm8636925ede.58 - gsmtp

1 个答案:

答案 0 :(得分:0)

可能您发送了太多邮件。使用smtp服务检查限制。

https://support.google.com/a/answer/166852?hl=en