archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <>
Subject Re: How to configure smtp?
Date Thu, 25 Mar 2010 00:30:06 GMT

On 25/03/2010, at 2:30 AM, Robert Wierschke wrote:

> I've written a small Java example that uses the mail api to send mails. The
> app can succesfully send mails via google using the following properties:
>        mail.smtp.port="465"
>        mail.smtp.starttls.enable="true"
>        mail.smtp.auth="true"
>        mail.smtp.socketFactory.port="465"
>        mail.smtp.socketFactory.class=""
>        mail.smtp.socketFactory.fallback="false"
> In my example username and password must be configured via
> a javax.mail.Authenticator instance. However, I can't find any example that
> shows how to set user and password via properties. So how to I configure
> username and password for Archiva? Both, mail.password
> and mail.smpt.password do not work.

I think you can pass all those parameters in to Tomcat as parameters in the resource example
already given. The Jetty standalone bundle also takes the same parameters. If you have the
"debug" option on, the log should show which options are being used when it starts up.

>>> 4) is it possible to disable the user registration dialog and setup up the
>>> users manually in order to avoid the exception.
>> I'm not sure I understand what you mean here :)
> Since the exception only occures if a user tries to register, is it possible
> to disable the user registration function and create new users only via the
> admin interface?

Not at this time, though there's a ticket open in JIRA for it already. It wouldn't be too
hard to create a patch for it if you are interested in helping out.


Brett Porter

View raw message