Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1
2013-10-15 17:08
751 查看
安装了postfix服务器(ip:10.3.23.52),在本地(ip:10.2.30.24),本地单元测试时候,报错Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1
原因:这是postfix拒绝客户端连接所致
解决:
1)保证postfix邮件服务器的linux的防火墙给本地ip开放25端口;
打开/etc/sysconfig/iptables
添加-A INPUT -s 10.2.30.24 -p tcp --dport 25 -j ACCEPT这行
2)保证postfix配置文件/etc/postfix/main.cf中允许网络段包括本地ip;
在/etc/postfix/main.cn文件中找到mynetworks =
10.2.30.0/24 10.3.18.0/24 添加本地ip段
通过上面配置,就可以通过本地客户端(使用apache的commons-email)调用postfix发送邮件了
原因:这是postfix拒绝客户端连接所致
解决:
1)保证postfix邮件服务器的linux的防火墙给本地ip开放25端口;
打开/etc/sysconfig/iptables
添加-A INPUT -s 10.2.30.24 -p tcp --dport 25 -j ACCEPT这行
2)保证postfix配置文件/etc/postfix/main.cf中允许网络段包括本地ip;
在/etc/postfix/main.cn文件中找到mynetworks =
10.2.30.0/24 10.3.18.0/24 添加本地ip段
通过上面配置,就可以通过本地客户端(使用apache的commons-email)调用postfix发送邮件了
相关文章推荐
- maven项目(错误二) spring发送邮件报“com.sun.mail.smtp.SMTPAddressFailedException: 553 5.7.1”的解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 554 MI:SPB UserReject 0,smtp7
- 解决错误503:com.sun.mail.smtp.SMTPAddressFailedException: 503 the server need auth(15D98013BE0)
- com.sun.mail.smtp.SMTPAddressFailedException: 550 Invalid User: "xxxxxxx@163.com"
- com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp11,D8CowAC3cuDofbZXKWsnCw--.47929S2 14
- jenkins配置邮件 -- com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender
- com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp10,DsCowABX3qJtagRZBXMsBA--.8416S2 149
- com.sun.mail.smtp.SMTPSendFailedException: 554 MI:STC 0,smtp5
- com.sun.mail.smtp.SMTPSendFailedException: 503 Error: need EHLO and AUTH first !
- com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
- com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
- com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required,163 smtp9,DcCowACnMFm7ZwRZ
- com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.0 DT:SPM
- javaMail SMTPSendFailedException: 554 DT:SPM 163 smtp4
- [乐意黎原创] 完美解决 javax.mail.SendFailedException: Invalid Address 与 SMTPAddressFailedException 抛错
- Maven ArtifactDescriptorException: Failed to read artifact descriptor for com.sun.mail 异常
- javaMail SMTPSendFailedException: 554 DT:SPM 163 smtp4
- javaMail邮件问题:java.lang.SecurityException: SHA1 digest error for com/sun/mail/smtp/SMTPTransport.class