Apache James 的问题
我正在尝试使用 Apache James 作为服务器为外部帐户发送电子邮件,但收到以下异常:
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Requested action not taken: relaying denied
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686)
... 6 more
请有人帮助我解决问题
提前感谢
Alisson
I'm trying send email using Apache James, as server, for external account and I'm receiving the following exception :
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Requested action not taken: relaying denied
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686)
... 6 more
Somebody please help me to resolve the issue
Thanks in advance
Alisson
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您没有对 SMTP 服务器进行身份验证。如果您需要更多帮助,请显示一些代码。
Sounds like you didn't authenticate to the SMTP server. Show some code if you need more help.
除非您拥有静态 IP,否则您无法向外部邮件地址(例如您的 Gmail ID)发送电子邮件。服务器的 SMTP 具有阻止来自动态 IP 的电子邮件的配置。
You can not send an email to external mail addresses, say for instance your gmail id, unless and until you have a static IP. The SMTP of the server has the configuration to stop emails from dynamic IPs.