开发者

Archiva SMTP Real domain name required for sender address Error

开发者 https://www.devze.com 2022-12-26 13:51 出处:网络
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

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&g开发者_如何转开发t;
        <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


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.

email.validation.required=true
email.from.name=Archiva Admin
email.from.address=archivaadmin@xyz.com
email.validation.subject=Archiva Maven Repository
0

精彩评论

暂无评论...
验证码 换一张
取 消