Return-Path: Delivered-To: apmail-archiva-users-archive@www.apache.org Received: (qmail 14840 invoked from network); 25 Mar 2010 13:55:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 13:55:40 -0000 Received: (qmail 48445 invoked by uid 500); 25 Mar 2010 11:09:00 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 48273 invoked by uid 500); 25 Mar 2010 11:08:59 -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 Received: (qmail 48258 invoked by uid 99); 25 Mar 2010 11:08:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 11:08:58 +0000 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wierob83@googlemail.com designates 209.85.218.212 as permitted sender) Received: from [209.85.218.212] (HELO mail-bw0-f212.google.com) (209.85.218.212) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 11:08:53 +0000 Received: by bwz4 with SMTP id 4so6868237bwz.39 for ; Thu, 25 Mar 2010 04:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=MOu4m2LnWGimiWpLEt0uB2GGblmC4yO0X3E1zcjRjDE=; b=eoP5D9CEtYkmCvHoLuUH/qzl51Yh4/d8nQamYW8bhvfpQUQkv77oH48J95YVTXLfbW I8sOhRd2SgFZvB2dquVSjds+08uw1vC6tYuFsRBJGsRKD8ot5CUk9FsyH8VjzUUII5ZF rsOKYyhDYMyzoaL1+YenVbkTGjeTDq9g75doE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=yBkcaUTEB0jeFrdO052plqCLFrwnQo0BHmqkY1S1IiJ6IJH35nOJ2vcGMcWfav067q 9pJ/Crwy+tT2w/EFZ9ePFt7kYkS8R1s6yVqxPgZfQiDRC90o/CeRJsbpTbwK+nAu3JOk Q0+TCWPDPoQx5e13P+TKHrCBz3/UuPpledeig= MIME-Version: 1.0 Received: by 10.204.140.67 with SMTP id h3mr1226366bku.137.1269515311898; Thu, 25 Mar 2010 04:08:31 -0700 (PDT) In-Reply-To: <8667b1bd1003241820s4bce9df6o5f333c8c4b0cdb3f@mail.gmail.com> 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> <8667b1bd1003241820s4bce9df6o5f333c8c4b0cdb3f@mail.gmail.com> Date: Thu, 25 Mar 2010 12:08:31 +0100 Message-ID: <578133161003250408x670d5b65la8b97c97622f70ae@mail.gmail.com> Subject: Re: How to configure smtp? From: Robert Wierschke To: users@archiva.apache.org Content-Type: multipart/alternative; boundary=0015174c143433e5b604829e11c9 --0015174c143433e5b604829e11c9 Content-Type: text/plain; charset=UTF-8 This doesn't work either. 2010/3/25 Deng Ching > On Wed, Mar 24, 2010 at 11:30 PM, 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.host="smtp.googlemail.com" > > mail.smtp.port="465" > > mail.smtp.starttls.enable="true" > > mail.smtp.auth="true" > > > > mail.smtp.socketFactory.port="465" > > mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" > > 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. > > > > > Could you try with just username and password as the property names instead > of mail.user and mail.password? > > Thanks, > Deng > --0015174c143433e5b604829e11c9--