我安装了独立的ApacheArchiva1.3Maven存储库,在为电子邮件验证配置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