Re-sending. Is there any documentation about using an Authenticator with a mail resource? Is there is no Authenticator provided with Resin that is compatible javax.mail.Authenticator? Should I provide my own custom class?
S! D. Daniel Lopez escribió: > Thanks Scott, that got me closer :). Now the problem is the > authentication itself, as I seem to have to provide an authenticator and > the configurations shown in the docs do not seem to work: > ---- > <mail> > <authenticator type="com.caucho.server.security.XmlAuthenticator"> > <init> > <user name="theusername" password="thekeyword"/> > </init> > </authenticator> > <jndi-name>mail/SecureSMTP</jndi-name> > <smtp-host>smtp.gmail.com</smtp-host> > <smtp-port>587</smtp-port> > <smtp-ssl>true</smtp-ssl> > <smtp-user>theusername</smtp-user> > <transport-protocol>smtps</transport-protocol> > <init> > mail.smtp.starttls.enable=true > mail.smtp.auth=true > </init> > </mail> > --- > With this config, it tells me that > "'com.caucho.server.security.XmlAuthenticator' is not a valid instance > of 'javax.mail.Authenticator'". If I tried using an uri and some > properties, it tells me that "The available schemes for > javax.mail.Authenticator are ''"... > > Are there any implementations of javax.mail.Authenticator included with > Resin? > > Cheers! > D. > > S'està citant Scott Ferguson <[EMAIL PROTECTED]>: > >> >> On Jul 21, 2008, at 11:12 AM, Daniel Lopez wrote: >> >>> Hi there, >>> >>> I'm trying to configure an application, JIRA, to send notification >>> through a mail server, gmail, and for that I have to define a JNDI >>> resource with all the data to be able to connect to the SMTP server. >>> However, the problem is that the gmail SMTP server requires TLS and >>> I've been unable to find out how to configure the resource so it >>> connects appropriately. >>> >>> After a bit of searching, I came up with this configuration as a >>> starter: >>> --- >>> <mail uri="properties:mail.smtp.starttls.enable=true"> >>> <jndi-name>mail/SecureSMTP</jndi-name> >>> <smtp-host>smtp.gmail.com</smtp-host> >>> <smtp-port>587</smtp-port> >>> <smtp-ssl>true</smtp-ssl> >>> <smtp-user>username</smtp-user> >>> <transport-protocol>smtps</transport-protocol> >>> </mail> >> >> Try using: >> >> <mail> >> <jndi-name>...</jndi-name> >> ... >> <init> >> mail.smtp.starttls.enable=true >> </init> >> </mail> >> >> For 3.2.0, I'll add a <properties> tag which will do the same thing, >> but be less confusing. >> >> -- Scott >> >>> >>> --- >>> >>> However, all I get is: >>> --- >>> com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a >>> STARTTLS command first. >>> --- >>> >>> Which I believe is caused by the uri:properties being ignored or >>> something similar. I also tried with: >>> -- >>> <mail >>> uri="properties:mail.smtp.starttls.enable=true;mail.smtp.auth=true"> >>> -- >>> In case it is not working due to mail.smtp.auth missing, but I'm not >>> sure that is the correct way of specifying two properties. >>> Documentation is kind of scarce in this area. >>> >>> I could not find any example of using a mail JNDI resource in resin to >>> connect to a TLS smtp server. I found some examples using Tomcat, but >>> of course the configuration is different (thanks lovely spec.). >>> >>> Is it possible at all? >>> Cheers! >>> D. _______________________________________________ resin-interest mailing list firstname.lastname@example.org http://maillist.caucho.com/mailman/listinfo/resin-interest