You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Frederik Himpe <fh...@vub.ac.be> on 2014/04/11 15:11:32 UTC

How to change originating domain for e-mails

When a user wants to reset his password, tomcat/archiva sends a mail with 
"tomcat7@localhost" as the From address. Obviously this localhost domain 
is not accepted by the MTA of the smarthost. How to properly set the 
right domain name?

I had set
<Resource name="mail/Session" auth="Container"
           type="javax.mail.Session"
           mail.smtp.host="localhost"
           mail.from="archiva@example.com"/>
</Context>

in archiva.xml, but this does not work.

-- 
Frederik Himpe


Re: How to change originating domain for e-mails

Posted by Brett Porter <br...@apache.org>.
You can set email.from.address in the conf/security.properties file.

http://archiva.apache.org/docs/2.0.1/adminguide/customising-security.html
https://github.com/apache/archiva-redback-core/blob/master/redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties#L48

Regards,
Brett

On 11 Apr 2014, at 11:11 pm, Frederik Himpe <fh...@vub.ac.be> wrote:

> When a user wants to reset his password, tomcat/archiva sends a mail with 
> "tomcat7@localhost" as the From address. Obviously this localhost domain 
> is not accepted by the MTA of the smarthost. How to properly set the 
> right domain name?
> 
> I had set
> <Resource name="mail/Session" auth="Container"
>           type="javax.mail.Session"
>           mail.smtp.host="localhost"
>           mail.from="archiva@example.com"/>
> </Context>
> 
> in archiva.xml, but this does not work.
> 
> -- 
> Frederik Himpe
>