Return-Path: Delivered-To: apmail-archiva-users-archive@www.apache.org Received: (qmail 61004 invoked from network); 25 Mar 2010 01:05:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 01:05:54 -0000 Received: (qmail 5626 invoked by uid 500); 25 Mar 2010 01:05:54 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 5556 invoked by uid 500); 25 Mar 2010 01:05:53 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Delivered-To: moderator for users@archiva.apache.org Received: (qmail 74272 invoked by uid 99); 25 Mar 2010 00:37:12 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Sender: Brett Porter Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: How to configure smtp? From: Brett Porter In-Reply-To: <578133161003240830t525379fdi85bb8fa90d45f0f7@mail.gmail.com> Date: Thu, 25 Mar 2010 11:30:06 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: <80B34E97-B5AF-40B8-8484-98678F439B9D@apache.org> References: <578133161003220557q4b4d5b26rf80357358f8cc870@mail.gmail.com> <578133161003230609v46590942id96603bff1acbd0d@mail.gmail.com> <8667b1bd1003230716r286dfb73kae8e6ce82b1cd890@mail.gmail.com> <578133161003230833p3296a4ddraf357d68e3a5eaa2@mail.gmail.com> <8667b1bd1003231710nb1446f4n195eef2cc322b1f4@mail.gmail.com> <578133161003240830t525379fdi85bb8fa90d45f0f7@mail.gmail.com> To: users@archiva.apache.org X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org 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: >=20 > mail.smtp.host=3D"smtp.googlemail.com" > mail.smtp.port=3D"465" > mail.smtp.starttls.enable=3D"true" > mail.smtp.auth=3D"true" >=20 > mail.smtp.socketFactory.port=3D"465" > mail.smtp.socketFactory.class=3D"javax.net.ssl.SSLSocketFactory" > mail.smtp.socketFactory.fallback=3D"false" >=20 > 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. >=20 >=20 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. >=20 >>=20 >>> 4) is it possible to disable the user registration dialog and setup = up the >>> users manually in order to avoid the exception. >>>=20 >>=20 >> I'm not sure I understand what you mean here :) >>=20 >>=20 > 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. Cheers, Brett -- Brett Porter brett@apache.org http://brettporter.wordpress.com/