简体   繁体   English

javax.mail.messagingexception无法连接到SMTP主机:主机名端口:25响应:552

[英]javax.mail.messagingexception could not connect to SMTP host : hostname port:25 response : 552

I am getting Javax.mail.messagingexception : could not connect to SMTP host : hostname port : 25 response : 552 我正在获取Javax.mail.messagingexception:无法连接到SMTP主机:主机名端口:25响应:552

Sometime mail is sent successfully. 有时邮件发送成功。 But sometime I get this exception. 但是有时候我会得到这个例外。

I am not clear that why this is happening. 我不清楚为什么会这样。 If any thing goes wrong then no mail should be sent. 如果出现任何问题,则不应发送邮件。 But the exception still happens sometimes. 但是有时仍然会发生例外。

javax.mail.MessagingException: Could not connect to SMTP host: mail.mydomain.com, port: 25, response: 552 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at com.winit.magicbricks.businessLayer.CommonFunctions$1.run(CommonFunctions.java:1065) at java.lang.Thread.run(Unknown Source) javax.mail.MessagingException:无法连接到SMTP主机:mail.mydomain.com,端口:25,响应:com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)处的552。 javax.mail.Service.connect(Service.java:297)处的mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)位于javax.mail.Service处的javax.mail.Service.connect(Service.java:156) .connect(Service.java:105)at javax.mail.Transport.send0(Transport.java:168)at javax.mail.Transport.send(Transport.java:98)at com.winit.magicbricks.businessLayer.CommonFunctions $ 1 .run(CommonFunctions.java:1065)位于java.lang.Thread.run(未知源)

provide the complete error log.. 552 is a generic response code it could be that either you are spamming or the recipients mailbox is full. 提供完整的错误日志。552是通用响应代码,可能是您正在发送垃圾邮件或收件人邮箱已满。

You should try adding DKIM signature to your mails and SPF record entry for your domain 您应该尝试将DKIM签名添加到您域的邮件和SPF记录条目中

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 javax.mail.MessagingException:无法连接到SMTP主机:<主机名>端口:25响应:554 - javax.mail.MessagingException: Could not connect to SMTP host : <host name> port : 25 response: 554 javax.mail.MessagingException无法连接到SMTP主机端口:25响应-1 - javax.mail.MessagingException could not connect to SMTP host port :25 response -1 发送邮件错误,javax.mail.MessagingException:无法连接到SMTP主机:本地主机,端口:25; - Sending mail error, javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; javax.mail.MessagingException:无法连接到SMTP主机:103.12.134.112,端口:25; - javax.mail.MessagingException: Could not connect to SMTP host: 103.12.134.112, port: 25; javax.mail.MessagingException:无法连接到SMTP主机:localhost,端口:25; - javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; javax.mail.MessagingException:无法连接到SMTP主机:172.16.100.185,端口:25; - javax.mail.MessagingException: Could not connect to SMTP host: 172.16.100.185, port: 25; javax.mail.MessagingException:无法连接到 SMTP 主机:本地主机,端口:25 - javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 邮件服务GAE问题-发送邮件异常“ javax.mail.MessagingException:无法连接到SMTP主机:localhost,端口:25;” - Mail service GAE issue - sending mail exception “javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;” javax.mail.MessagingException:无法连接到 SMTP 主机:email-smtp.us-east-1.amazonaws.com,端口:25; - javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 25; javax.mail.MessagingException:无法连接到 SMTP 主机:smtp.gmail.com,端口:465; - javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM