Return-Path: X-Original-To: apmail-james-server-user-archive@www.apache.org Delivered-To: apmail-james-server-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EB49EA42 for ; Wed, 13 Feb 2013 12:45:38 +0000 (UTC) Received: (qmail 58288 invoked by uid 500); 13 Feb 2013 12:45:37 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 58091 invoked by uid 500); 13 Feb 2013 12:45:36 -0000 Mailing-List: contact server-user-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Users List" Reply-To: "James Users List" Delivered-To: mailing list server-user@james.apache.org Received: (qmail 58048 invoked by uid 99); 13 Feb 2013 12:45:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 12:45:34 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [91.183.38.48] (HELO srv1.aos.io) (91.183.38.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 12:45:27 +0000 MIME-Version: 1.0 X-UserIsAuth: true Received: from 212.74.97.241 (EHLO [192.168.119.98]) ([212.74.97.241]) by srv1.aos.io (JAMES SMTP Server ) with ESMTPA ID 11146861; Wed, 13 Feb 2013 13:45:05 +0100 (CET) Message-ID: <511B8AD0.7010608@apache.org> Date: Wed, 13 Feb 2013 12:45:04 +0000 From: Eric Charles User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:19.0) Gecko/20130117 Thunderbird/19.0 To: James Users List Subject: Re: SSL/TLS usage with James 3.0-beta4 References: <511A5082.8040100@apache.org> <511B82D5.2030909@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sorry, I meant smtpserver.conf for beta4. In trunk it is now smtpserver.xml Thx, Eric On 13/02/2013 12:17, Saibabu Vallurupalli wrote: > Eric, > > So, do we need to modify smtpserver-template.conf to smtpserver.xml in > beta4? > I was under impression we need to rename the file as smtpserver.conf :-( > > Thanks, > Sai > > > On Wed, Feb 13, 2013 at 7:11 AM, Eric Charles wrote: > >> Hi, >> >> smtpserver-ssl.conf is not read. >> You must put your confis in smtpserver.xml. >> >> Thx, Eric >> >> >> On 13/02/2013 11:51, seyoum tesfay wrote: >> >>> Hi Eric, >>> I have added another config file called smtpserver-ssl.conf and made >>> the necessary entries there.The original smtpserver.conf file is for >>> the plain smtp configuration from my previous working configuration >>> and is not changed. >>> >>> After restarting james, I am trying to test it from simple JavaMail >>> client program with the following properties set: >>> >>> final String SSL_FACTORY = "javax.net.ssl.**SSLSocketFactory"; >>> Properties props = System.getProperties(); >>> >>> props.setProperty("mail.smtp.**ssl.enable", "true"); >>> props.setProperty("mail.smtp.**ssl.required", "true"); >>> props.setProperty("mail.smtp.**starttls.enable", "true"); >>> props.setProperty("mail.smtp.**starttls.required", "true"); >>> props.setProperty("mail.smtp.**socketFactory.class", >>> SSL_FACTORY); >>> props.setProperty("mail.smtp.**socketFactory.port", "465"); >>> props.setProperty("mail.smtp.**socketFactory.fallback", >>> "false"); >>> >>> props.setProperty("mail.smtp.**host", "localhost"); >>> //...code for sending mail >>> >>> But I am getting the following exception after running. >>> >>> Exception >>> javax.mail.MessagingException: Could not connect to SMTP host: >>> localhost, port: 465; >>> nested exception is: >>> java.net.ConnectException: Connection refused: connect >>> at com.sun.mail.smtp.**SMTPTransport.openServer(** >>> SMTPTransport.java:1706) >>> at com.sun.mail.smtp.**SMTPTransport.protocolConnect(** >>> SMTPTransport.java:525) >>> at javax.mail.Service.connect(**Service.java:291) >>> at javax.mail.Service.connect(**Service.java:172) >>> ..... >>> >>> I am still quite not sure how to enable ssl/tls with james server and >>> create client programs for testing SMTPS, POP3S or IMAPS. >>> >>> regards, >>> >>> On 2/12/13, Eric Charles wrote: >>> >>>> Hi, >>>> The logs should not change. >>>> Are you sure you point your mail client to the ssl socket? >>>> If you want more logs, raise the SMTP level to DEBUG in log4j.properties. >>>> >>>> Thx, Eric >>>> >>>> >>>> On 12/02/2013 14:01, seyoum tesfay wrote: >>>> >>>>> Hi, >>>>> >>>>> I am using James 3.0-beta4 and I want to use SSL/TLS for sending and >>>>> receiving emails with SMTPS, POP3S and IMAPS. I have gone through the >>>>> james >>>>> manual on [1] and created the necessary keystore file. I have edited the >>>>> configuration files to include the >>>> startTLS="true"> >>>>> entry with appropriate values. >>>>> After restaring the James server, nothing related to SSL/TLS is >>>>> happening. >>>>> For instance, the log during the server startup doesn't show any thing >>>>> related to SMTPS or so. And I have started to send and read mails and >>>>> it's >>>>> just using the plain SMTP and POP3. >>>>> So, what do I need to do to make sure that I have properly configured >>>>> SSL/TLS with James server 3.0-beta4? >>>>> >>>>> [1]. http://james.apache.org/**server/3/config-ssl-tls.html >>>>> >>>>> >>>>> *Seyoum T*. >>>>> >>>>> >>>> ------------------------------**------------------------------** >>>> --------- >>>> To unsubscribe, e-mail: server-user-unsubscribe@james.**apache.org >>>> For additional commands, e-mail: server-user-help@james.apache.**org >>>> >>>> >>>> >>> >>> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: server-user-unsubscribe@james.**apache.org >> For additional commands, e-mail: server-user-help@james.apache.**org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org