cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: googlemail ssl via SendMailTransformer
Date Mon, 16 Apr 2007 04:17:39 GMT
This JNDI mail server definition worked for me:

  <Resource name="mail/GmailSmtpServer"
      auth="Container"
      type="javax.mail.Session"
      mail.transport.protocol="smtps"
      mail.smtps.host="smtp.gmail.com"
      mail.smtps.auth="true"
      mail.smtps.user="myusername@gmail.com"
      password="mysecretpassword"
      mail.debug="true"
      />


--Jeff

On Fri, Apr 13, 2007 at 03:19:43PM +0200, bart remmerie wrote:
> I've been taking a look at this lately.
> Javamail 1.4 supports TLS authentication (which is required for gmail).  See
> the SSL-notes in their bundle (at the bottom of this mail).
> 
> Basically (in my thoughts) it should be enough to get
> mail.smtp.starttls.enable=true
> into the properties
> 
> to test it quick and dirty, I added the following line of code
> properties.put("mail.smtp.starttls.enable","true");
> to the initSession() method in the MailMessageSender class
> 
> Unfortunately, it didn't seem to work.
> BUT, I'm convinced that some cocoon-mail expert could find a quick solution
> !!
> 
> Regards,
> Bart
> 
> "JavaMail now supports accessing mail servers over connections secured
> using SSL or TLS.  To simplify such access, three new protocols have
> been added.  In addition to the non-SSL JavaMail protocols "imap",
> "pop3", and "smtp", the protocols "imaps", "pop3s", and "smtps" can
> be used to connect to the corresponding services using an SSL
> connection.
> 
> -- STARTTLS support
> 
> The STARTTLS support is available in the standard "imap" and "smtp"
> protocols, but must be enabled by setting the appropriate property,
> mail.imap.starttls.enable or mail.smtp.starttls.enable, to "true".
> When set, if the server supports the STARTTLS command, it will be
> used after making the connection and before sending any login
> information."
> 
> 2007/4/13, Jasha Joachimsthal <j.joachimsthal@hippo.nl>:
> >
> >Guess not, in the API docs there's a known issue called
> >No support for RFC 2554: SMTP Service Extension for Authentication
> >And for gmail you need authentication.
> >
> >Jasha Joachimsthal
> >
> >Hippo
> >Oosteinde 11
> >1017 WT Amsterdam
> >The Netherlands
> >+31 (0)20 5224466
> >
> >www.hippo.nl
> >
> >> -----Original Message-----
> >> From: Voigt, Bjoern (EXTERN: AUEL)
> >> [mailto:extern.bjoern.voigt@volkswagen.de]
> >> Sent: vrijdag 13 april 2007 13:10
> >> To: users@cocoon.apache.org
> >> Subject: googlemail ssl via SendMailTransformer
> >>
> >> Hello Cocooners,
> >>
> >> a second question about the SendMailTransformer.
> >>
> >> is it possible to define smtp-hosts, that uses
> >> SSL-Connections like the gmail smpt-service?
> >>
> >> thanks for help
> >>
> >> Björn
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> 
> 
> -- 
> Bart Remmerie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message