Return-Path: Delivered-To: apmail-servicemix-users-archive@www.apache.org Received: (qmail 12315 invoked from network); 1 Feb 2011 10:34:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 10:34:01 -0000 Received: (qmail 85898 invoked by uid 500); 1 Feb 2011 10:34:01 -0000 Delivered-To: apmail-servicemix-users-archive@servicemix.apache.org Received: (qmail 85403 invoked by uid 500); 1 Feb 2011 10:33:58 -0000 Mailing-List: contact users-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@servicemix.apache.org Delivered-To: mailing list users@servicemix.apache.org Received: (qmail 85389 invoked by uid 99); 1 Feb 2011 10:33:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 10:33:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lhein.smx@googlemail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 10:33:52 +0000 Received: by bwz8 with SMTP id 8so6876236bwz.21 for ; Tue, 01 Feb 2011 02:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=2Sf1rMDj4LIUXwDObn+p9YNRImWDMbVTgRNfcgIJN7Y=; b=LGxNCzEI3r5ZpkvHE61994ZyuRXJuN5XkM6AGEJ3jeEdktVi22XrrZjqag6iCABZOy ATs7Osu0aKe8bEvZd7jhwYYrLiAx9vsBLGfltvDSB9hIM5DTd91eZUrVfth6DK+svIcN aXZWP5sJsxBwppHCfalbObp/vfu/OxD3mcEWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=Gp/ZhISLX1JvcqdJu8VznX38hfmJxd9+RrD+3qttBRfaq28OWl6IATm+Z5iWNsYmBT j64vYUyaDS67G1d41gAVvhVDlnjAPQwdQL8elOa/xufVsGpBvfGS9RJ7h1ooXEtK0POo pLcRwXGdPpHn/HLwRKPYoWxtMWGusA92TQL/E= Received: by 10.204.85.11 with SMTP id m11mr6482223bkl.115.1296556409079; Tue, 01 Feb 2011 02:33:29 -0800 (PST) Received: from lars-heinemanns-macbook-pro.fritz.box (pD950A7DC.dip0.t-ipconnect.de [217.80.167.220]) by mx.google.com with ESMTPS id u23sm8283494bkw.9.2011.02.01.02.33.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Feb 2011 02:33:27 -0800 (PST) Sender: Lars Heinemann Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: servicemix-mail provider endpoint From: Lars Heinemann In-Reply-To: Date: Tue, 1 Feb 2011 11:33:25 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <24952ACC-0A52-4E0E-A7E5-4C6C7000DEA3@apache.org> References: <60FBA7A81C7D437C92A7D1633C3CB87B@GeertsE6400> <368021D2-909C-44BD-8FC1-9D1024BE5D3B@apache.org> To: users@servicemix.apache.org X-Mailer: Apple Mail (2.1082) Marianna, good to hear it works now for you ;) Best regards, Lars -------------------------------------- Lars Heinemann FuseSource=20 Email: lhein@fusesource.com Web: http://www.fusesource.com Blog: http://lhein.blogspot.com Twitter: lhein77 Am 01.02.2011 um 11:17 schrieb Marianna Giacchetta: > Ohhhhhhhhhhhhhhh wonderful.....it works now!!!! > I didn't understand i had to write my user in the connection string. > So my configuration is: >=20 > endpoint=3D"mail-endpoint" > sender=3D"my_gmail_user@gmail.com" > receiver=3D"xxxxxxxxx@hotmail.it" > debugMode=3D"true" > = connection=3D"smtps://my_gmail_user@smtp.gmail.com?password=3Dmy_gmail_pas= sword"/> >=20 > and it works!!!! > Thanks very much Lars for your help!! > Marianna >=20 > 2011/2/1 Lars Heinemann : >> Marianna, >>=20 >> the connection url is lacking a username / accountname. >> Try adding your gmail account name to the connection string. >>=20 >>=20 >> Best regards, >> Lars >>=20 >> -------------------------------------- >>=20 >> Lars Heinemann >> FuseSource >> Email: lhein@fusesource.com >> Web: http://www.fusesource.com >> Blog: http://lhein.blogspot.com >> Twitter: lhein77 >>=20 >>=20 >>=20 >>=20 >>=20 >> Am 01.02.2011 um 10:03 schrieb Marianna Giacchetta: >>=20 >>> Lars >>> thanks for your help. I read the documentation several times last = days >>> because I'm desperate!!!! :(:(:( >>> Sorry if I didn't write the whole configuration, I only wrote it in >>> the first post. >>> My whole configuration is: >>>=20 >>> >> endpoint=3D"mail-endpoint" >>> sender=3D"my_gmail-username@gmail.com" >>> receiver=3D"xxxxxxxxx@hotmail.it" >>> debugMode=3D"true" >>> = connection=3D"smtp://smtp.gmail.com:587?password=3Dmy_gmail_password"/> >>>=20 >>> but I have this exception: >>>=20 >>> com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a >>> STARTTLS command first >>>=20 >>> I also tied with this one: >>>=20 >>> >> endpoint=3D"mail-endpoint" >>> sender=3D"my_gmail-username@gmail.com" >>> receiver=3D"xxxxxxxxx@hotmail.it" >>> debugMode=3D"true" >>> = connection=3D"smtps://smtp.gmail.com:465?password=3Dmy_gmail_password"/> >>>=20 >>> There is the connection with the server :D >>>=20 >>> DEBUG SMTP: connected to host "smtp.gmail.com", port: 465 >>>>=20 >>>> EHLO mapi-pici >>>> 250-mx.google.com at your service, [151.16.107.238] >>>> 250-SIZE 35651584 >>>> 250-8BITMIME >>>> 250-AUTH LOGIN PLAIN XOAUTH >>>> 250 ENHANCEDSTATUSCODES >>>> DEBUG SMTP: Found extension "SIZE", arg "35651584" >>>> DEBUG SMTP: Found extension "8BITMIME", arg "" >>>> DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN XOAUTH" >>>> DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" >>>> DEBUG SMTP: Attempt to authenticate >>>> DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM >>>=20 >>>=20 >>> but then I have an exception :( >>>=20 >>>> AUTH LOGIN >>>> 334 uwzuwzuwzuwzuwz >>>>=20 >>>> 334 xyzxyzxyzxyzxyzxyz >>>> =3D=3D vzxvzxvzxvzxvzxvzx >>>> 334 xyzxyzxyzxyzxyzxyz >>>> ERROR - MailComponent - Error sending mail... >>>> javax.mail.AuthenticationFailedException: 334 xyzxyzxyzxyzxyzxyz >>>=20 >>> I don't know what to do. >>>=20 >>> Regards >>> Marianna >>>=20 >>> 2011/2/1 Lars Heinemann : >>>> Marianna, >>>>=20 >>>> I can't see any username in your URL. Without that the = authentication will fail. >>>> Also you don't need to write your own marshaler for setting = properties. See the servicemix-mail >>>> documentation page at http://servicemix.apache.org/servicemix-mail. >>>>=20 >>>> Please let us see the whiole endpoint configuration and only = replace your login and password >>>> with some dummy values. >>>>=20 >>>> Best regards, >>>> Lars >>>>=20 >>>> -------------------------------------- >>>>=20 >>>> Lars Heinemann >>>> FuseSource >>>> Email: lhein@fusesource.com >>>> Web: http://www.fusesource.com >>>> Blog: http://lhein.blogspot.com >>>> Twitter: lhein77 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> Am 31.01.2011 um 23:48 schrieb Marianna Giacchetta: >>>>=20 >>>>> I tried this way: >>>>>=20 >>>>> 1) the URL "smtps://smtp.gmail.com:587?password=3Dzzzzzz" but I = have >>>>> this exception: >>>>>=20 >>>>> ERROR - MailComponent - Error sending mail... >>>>> javax.mail.MessagingException: Could not connect to SMTP host: >>>>> smtp.gmail.com, port: 587;nested exception is: >>>>> javax.net.ssl.SSLException: Unrecognized SSL message, plaintext = connection? >>>>>=20 >>>>> 2) So i tried to change the dest port to 465 (gmail port for SSL), = and >>>>> here i got another exception: >>>>>=20 >>>>> DEBUG SMTP: connected to host "smtp.gmail.com", port: 465 >>>>>=20 >>>>> EHLO mapi-pici >>>>> 250-mx.google.com at your service, [151.16.107.238] >>>>> 250-SIZE 35651584 >>>>> 250-8BITMIME >>>>> 250-AUTH LOGIN PLAIN XOAUTH >>>>> 250 ENHANCEDSTATUSCODES >>>>> DEBUG SMTP: Found extension "SIZE", arg "35651584" >>>>> DEBUG SMTP: Found extension "8BITMIME", arg "" >>>>> DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN XOAUTH" >>>>> DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" >>>>> DEBUG SMTP: Attempt to authenticate >>>>> DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM >>>>> AUTH LOGIN >>>>> 334 uwzuwzuwzuwzuwz >>>>>=20 >>>>> 334 xyzxyzxyzxyzxyzxyz >>>>> =3D=3D vzxvzxvzxvzxvzxvzx >>>>> 334 xyzxyzxyzxyzxyzxyz >>>>> ERROR - MailComponent - Error sending mail... >>>>> javax.mail.AuthenticationFailedException: 334 xyzxyzxyzxyzxyzxyz >>>>>=20 >>>>>=20 >>>>> 3) Then i tried this way: i wrote my own marshaler for the mail >>>>> consumer endpoint, setting in the MimeMessage the property Geert >>>>> suggested me. it doesn't work! >>>>>=20 >>>>> public void convertJBIToMail(MimeMessage mimeMessage, = MessageExchange >>>>> exchange, NormalizedMessage nmsg, >>>>> String configuredSender) throws = javax.mail.MessagingException { >>>>>=20 >>>>> try { >>>>> Properties props =3D new Properties(); >>>>> props.put("mail.smtp.starttls.enable", "true"); >>>>>=20 >>>>> Session mailSession =3D = Session.getDefaultInstance(props); >>>>> mimeMessage =3D new MimeMessage(mailSession); >>>>>=20 >>>>> ... >>>>> } >>>>>=20 >>>>>=20 >>>>> here i get the same exception i got yesterday: >>>>>=20 >>>>> com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a >>>>> STARTTLS command first. u9sm4177318wbg.12 >>>>>=20 >>>>>=20 >>>>> any suggestion? >>>>> thank you, >>>>> Marianna >>>>>=20 >>>>>=20 >>>>>=20 >>>>> 2011/1/31 Lars Heinemann : >>>>>> Googlemail works fine with Servicemix-mail. I tested it a while = ago in both directions. >>>>>> If you encounter more problems let us know please. >>>>>>=20 >>>>>> Best regards, >>>>>> Lars >>>>>>=20 >>>>>> -------------------------------------- >>>>>>=20 >>>>>> Lars Heinemann >>>>>> FuseSource >>>>>> Email: lhein@fusesource.com >>>>>> Web: http://www.fusesource.com >>>>>> Blog: http://lhein.blogspot.com >>>>>> Twitter: lhein77 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> Am 30.01.2011 um 21:58 schrieb Geert Schuring: >>>>>>=20 >>>>>>> Seems to me like you are not using the correct URL to connect to = an encrypted SMTP server. >>>>>>>=20 >>>>>>> Try this one: "smtps://smtp.gmail.com:587?password=3Dzzzzzz" >>>>>>>=20 >>>>>>> If that doesn't work try setting the following property somehow = on the mail sender: mail.smtp.starttls.enable >>>>>>>=20 >>>>>>> If true, enables the use of the STARTTLS command (if supported = by the server) to switch the connection to a TLS-protected connection = before issuing any login commands. Note that an appropriate trust store = must configured so that the client will trust the server's certificate. = Defaults to false. >>>>>>> (Got that from = http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-s= ummary.html) >>>>>>>=20 >>>>>>> If that does not work either you could try using a camel-mail = endpoint. >>>>>>>=20 >>>>>>> Let me know how it worked out. Would love to know if this solved = your problem. >>>>>>>=20 >>>>>>> Geert. >>>>>>>=20 >>>>>>> -----Original Message----- From: Marianna Giacchetta >>>>>>> Sent: Sunday, January 30, 2011 1:43 PM >>>>>>> To: users@servicemix.apache.org >>>>>>> Subject: servicemix-mail provider endpoint >>>>>>>=20 >>>>>>> hi, >>>>>>> i can't config the mail provider endpoint to work properly. >>>>>>> i would like to use the gmail outgoing mail server. it uses the = SMTP >>>>>>> encrypted protocol. >>>>>>>=20 >>>>>>> i tried with this config in the xbean.xml file: >>>>>>>=20 >>>>>>> >>>>>> endpoint=3D"mail-endpoint" >>>>>>> sender=3D"zzzzzz@gmail.com" >>>>>>> receiver=3D"zzzzz@hotmail.it" >>>>>>> debugMode=3D"true" >>>>>>> = connection=3D"smtp://smtp.gmail.com:587?password=3Dzzzzzz"/> >>>>>>>=20 >>>>>>> it gives me this exception: >>>>>>>=20 >>>>>>> com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue = a >>>>>>> STARTTLS command first. u9sm4177318wbg.12 >>>>>>>=20 >>>>>>>=20 >>>>>>>=20 >>>>>>> i'm using: >>>>>>> servicemix version: 3.3.2 >>>>>>> OS: ubuntu maverick >>>>>>> JVM openjdk 1.6 >>>>>>>=20 >>>>>>>=20 >>>>>>>=20 >>>>>>> can someone help me? :( >>>>>>> thanks, >>>>>>> marianna >>>>>>>=20 >>>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>=20 >>>>=20 >>=20 >>=20