Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98752D20C for ; Mon, 6 Aug 2012 17:52:40 +0000 (UTC) Received: (qmail 18963 invoked by uid 500); 6 Aug 2012 17:52:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 18882 invoked by uid 500); 6 Aug 2012 17:52:36 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 18869 invoked by uid 99); 6 Aug 2012 17:52:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 17:52:36 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.27.243] (HELO qmta13.emeryville.ca.mail.comcast.net) (76.96.27.243) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 17:52:30 +0000 Received: from omta05.emeryville.ca.mail.comcast.net ([76.96.30.43]) by qmta13.emeryville.ca.mail.comcast.net with comcast id jQkR1j0050vp7WLADVs9WW; Mon, 06 Aug 2012 17:52:09 +0000 Received: from Christophers-MacBook-Pro.local ([98.226.18.8]) by omta05.emeryville.ca.mail.comcast.net with comcast id jVs71j00F0AT6Uq8RVs8yA; Mon, 06 Aug 2012 17:52:09 +0000 Message-ID: <50200447.2010203@christopherschultz.net> Date: Mon, 06 Aug 2012 13:52:07 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: resource configuration for jndi mail References: <501EF0CC.8000900@yahoo.com> <501FEBF1.2040807@christopherschultz.net> <501FF7D8.9090303@yahoo.com> In-Reply-To: <501FF7D8.9090303@yahoo.com> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark, On 8/6/12 12:59 PM, Mark Eggers wrote: > There are a lot of properties available, but unfortunately there is > no password. However, the hint is there (in the paragraph that you > quoted). > > After trolling the source for Tomcat 6 (and a bit of searching on > the Internet), it appears that a password can be specified. The > source in question is: > > org.apache.naming.factory.MailSessionFactory.java > > The attribute is password (in the Resource definition). That looks > like the only additional (non JavaMail API) attribute / property > that this factory supports (hence the hint). I actually didn't know that. I had forgotten to mention that this is a possibilty: Session session = ... ; //get from JNDI Transport tx = session.getTransport(...); tx.connect(host, rt, username, password); ...but if Tomcat will do it for you, why not let it? > I've never been fond of maintaining the same information in > multiple places, so postfix is probably good in this environment. > > Sounds like I should submit a couple of patches to the > documentation. > > 1. Add the paragraph from Tomcat 7 back into Tomcat 6 2. Add a > paragraph to both stating that Tomcat's MailSessionFactory supports > "password" as the only additional attribute / property. That would be great. Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAgBEcACgkQ9CaO5/Lv0PDrZACfXTySVuyiB5bGiqAAHmkZtbmE L4MAmwRBK7p2SFuAQg7DGgqGjEB2Ot/4 =xYjg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org