Archiva SMTP Real Domain Name Required for Sender Address Error

I installed the standalone Apache Archiva 1.3 Maven repository and am having trouble setting up SMTP settings for email verification. I configured the SMTP address by changing the mail.smtp.host property in the jetty.xml file. I could not find the documentation on the Archiva website to set it up.

<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 I get 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 
+4
source share
1 answer

I added the security.properties file to the conf directory, as indicated here . Then I added the following properties to the file. The email.from.address property is the answer. These properties can be found in 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 
+5
source

Source: https://habr.com/ru/post/1306233/


All Articles