Archiva SMTP 发件人地址需要真实域名 错误
我安装了独立的 Apache Archiva 1.3 Maven 存储库,但在配置电子邮件验证的 SMTP 设置时遇到问题。我通过更改 jetty.xml 中的 mail.smtp.host 属性来配置 SMTP 地址。我在 Archiva 网站上找不到任何用于配置此功能的文档。
<New id="validation_mail" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>mail/Session</Arg>
<Arg>
<New class="org.mortbay.naming.factories.MailSessionReference">
<Set name="user"></Set>
<Set name="password"></Set>
<Set name="properties">
<New class="java.util.Properties">
<Put name="mail.smtp.host">mail.xyz.com</Put>
</New>
</Set>
</New>
</Arg>
</New>
这是当我尝试注册用户时出现的
Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <testuser@localhost>... Real domain name required for sender address
错误
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <testuser@localhost>... Real domain name required for sender address
I installed the stand alone Apache Archiva 1.3 Maven repository and I am having trouble configuring the SMTP settings for the e-mail validation. I configured the SMTP address by changing the mail.smtp.host property in jetty.xml. I was not able to find any documentation on Archiva's site for configuring this.
<New id="validation_mail" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>mail/Session</Arg>
<Arg>
<New class="org.mortbay.naming.factories.MailSessionReference">
<Set name="user"></Set>
<Set name="password"></Set>
<Set name="properties">
<New class="java.util.Properties">
<Put name="mail.smtp.host">mail.xyz.com</Put>
</New>
</Set>
</New>
</Arg>
</New>
Here is the error that I am getting when I try to register a user
Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <testuser@localhost>... Real domain name required for sender address
caused by
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <testuser@localhost>... Real domain name required for sender address
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将 security.properties 文件添加到 conf 目录,如此处所述。然后,我将下面列出的属性添加到该文件中。 email.from.address 属性就是答案。这些属性可以在 Redback config-defaults.properties 中找到。
I added the security.properties file to the conf directory as mentioned here. I then added the properties listed below to the file. The email.from.address property is the answer. These properties can be found in the Redback config-defaults.properties.