com.sun.mail.smtp.SMTPAddressFailedException: 454 4.7.1


Problem:
Use SMTP service on linux, send mail to xxxxxx@domain.aaa.com.cn successfully.  But send mail to xxxxxx@domain.bbb.com.cn, error as below.  
Failed to send out e-mail
com.sun.mail.smtp.SMTPAddressFailedException: 454 4.7.1 <xxxxxx@domain.bbb.com.cn>: Relay access denied
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1733)

Solution:
Update /etc/postfix/main.cf, restart postfix
Before:
relay_domains = $mydestination, domain.aaa.com.cn
After:
relay_domains = $mydestination, domain.aaa.com.cn, domain.bbb.com.cn


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM