本文主要是介绍xxl-job中异常邮件的发送 SMTPSendFailedException: 554 DT:SPM,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述:xxlJob配置163邮箱发送邮件,配置简单如下,发生问题SMTPSendFailedException: 554 DT:SPM
### xxl-job email
xxl.job.mail.host=smtp.163.com
xxl.job.mail.port=25
xxl.job.mail.ssl=false
xxl.job.mail.username=m1531168781153@163.com
##password是网易邮箱授权码具体操作百度一下
xxl.job.mail.password=1qaz2wsx11
xxl.job.mail.sendNick=122311111JOB
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:25at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)at org.apache.commons.mail.Email.send(Email.java:1496)at com.xxl.job.admin.core.util.MailUtil.sendMail(MailUtil.java:57)at com.xxl.job.admin.core.thread.JobFailMonitorHelper.failAlarm(JobFailMonitorHelper.java:193)at com.xxl.job.admin.core.thread.JobFailMonitorHelper.access$400(JobFailMonitorHelper.java:26)at com.xxl.job.admin.core.thread.JobFailMonitorHelper$1.run(JobFailMonitorHelper.java:84)at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp5,D9GowADnzvNE02NccalxBA--.9S2 1550046020,please see http://mail.163.com/help/help_spam_16.htm?ip=124.65.192.162&hostid=smtp5&time=1550046020at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2358)at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2110)at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1316)at javax.mail.Transport.send0(Transport.java:255)at javax.mail.Transport.send(Transport.java:124)at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)... 6 common frames omitted
16:20:19.921 logback [Thread-34] INFO c.x.j.a.c.t.JobFailMonitorHelper - >>>>>>>>>>> job monitor, job fail, JobLogId:146
查询网易邮箱错误说明:
•554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件;
开始以为是乱码问题,但最后调试了很久发现主要原因是发送邮件的subject名称是调度中心监控报警,因为有报警两个字,没错就是这两个字一直发送失败!!!!!它特么是不被许可的!!!!
最后修改message.properties文件中配置项jobconf_monitor就可以了。诸君好运,不要遇到类似问题。
这篇关于xxl-job中异常邮件的发送 SMTPSendFailedException: 554 DT:SPM的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!