Я установил автономный репозиторий Apache Archiva 1.3 Maven, и у меня возникли проблемы с настройкой параметров SMTP для проверки электронной почты. Я настроил SMTP-адрес, изменив свойство mail.smtp.host в jetty.xml. Я не смог найти никакой документации на сайте 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