Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 2A5ED18243 for ; Wed, 22 Jul 2015 07:57:33 +0000 (UTC) Received: (qmail 20681 invoked by uid 500); 22 Jul 2015 07:57:32 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 20635 invoked by uid 500); 22 Jul 2015 07:57:32 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 20624 invoked by uid 99); 22 Jul 2015 07:57:32 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2015 07:57:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 134A01A7483 for ; Wed, 22 Jul 2015 07:57:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Lq6lo2kbytgf for ; Wed, 22 Jul 2015 07:57:22 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id A8F5520A93 for ; Wed, 22 Jul 2015 07:57:21 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 8019211A73EC for ; Wed, 22 Jul 2015 00:57:02 -0700 (PDT) Date: Wed, 22 Jul 2015 00:56:51 -0700 (MST) From: paupachle To: users@camel.apache.org Message-ID: <1437551811108-5769727.post@n5.nabble.com> In-Reply-To: References: <1437501667233-5769696.post@n5.nabble.com> Subject: Re: STARTTLS does not work MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have added the debugMode option and the result is interesting. The STARTTLS is correctly sent by JavaMail but then that's the end of the SMTP conversation, the message is not sent. karaf@root> DEBUG: setDebug: JavaMail version 1.4.4 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.s mtp.SMTPTransport,Sun Microsystems, Inc.,1.4.4] DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "xxxx", port 587, isSSL false 220 2.0.0 ip-xxx-xx-xxx-xxx ESMTP ecelerity 4.1.0.46749 r(Core:4.1.0.4) Wed, 22 J ul 2015 06:43:30 +0000 DEBUG SMTP: connected to host "xxxx.net", port: 587 EHLO xxxx 250-ip-xxxx says EHLO to xxxx:49661 250-AUTH=LOGIN 250-AUTH LOGIN 250-8BITMIME 250-STARTTLS 250-PIPELINING 250 ENHANCEDSTATUSCODES DEBUG SMTP: Found extension "AUTH=LOGIN", arg "" DEBUG SMTP: Found extension "AUTH", arg "LOGIN" DEBUG SMTP: Found extension "8BITMIME", arg "" DEBUG SMTP: Found extension "STARTTLS", arg "" DEBUG SMTP: Found extension "PIPELINING", arg "" DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" STARTTLS 220 2.0.0 continue Then it should send the message but does not. In principle processing the exchange should do that. And the order may not be right, in the log notice it says Sending MimeMessage before connecting. Thanks, pau -- View this message in context: http://camel.465427.n5.nabble.com/STARTTLS-does-not-work-tp5769696p5769727.html Sent from the Camel - Users mailing list archive at Nabble.com.