Re: [Resin-interest] Configuring a JNDI javax.mail.Session for a TLS SMTP server (gmail) (3.1.5)

2008-08-05 Thread Scott Ferguson
Sorry about that.  With the release checkout I didn't have a chance to  
look into the issue.  I've filed it as http://bugs.caucho.com/view.php?id=2822 
  for the next release.

-- Scott

On Aug 5, 2008, at 5:13 AM, Daniel Lopez wrote:

> Well, customer decided to change the application server and move to
> Tomcat, wjere that option is documented, so I'm no longer in a hurry
> for an answer :(.
>
> S!
> D.
>
> S'està citant Daniel López <[EMAIL PROTECTED]>:
>
>> 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:
>>> 
>>> 
>>>  >> type="com.caucho.server.security.XmlAuthenticator">
>>> 
>>>   
>>> 
>>>  
>>>mail/SecureSMTP
>>>smtp.gmail.com
>>>587
>>>true
>>>theusername
>>>smtps
>>>   
>>> mail.smtp.starttls.enable=true
>>> mail.smtp.auth=true
>>>  
>>> 
>>> ---
>>> 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/SecureSMTP
>smtp.gmail.com
>587
>true
>username
>smtps
> 

 Try using:

 
   ...
   ...
   
 mail.smtp.starttls.enable=true
  
 

 For 3.2.0, I'll add a  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:
> --
>  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
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>
>
>
>
> 
>
>
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Configuring a JNDI javax.mail.Session for a TLS SMTP server (gmail) (3.1.5)

2008-08-05 Thread Daniel Lopez
Well, customer decided to change the application server and move to  
Tomcat, wjere that option is documented, so I'm no longer in a hurry  
for an answer :(.

S!
D.

S'està citant Daniel López <[EMAIL PROTECTED]>:

> 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/SecureSMTP
>> smtp.gmail.com
>> 587
>> true
>> theusername
>> smtps
>>
>>  mail.smtp.starttls.enable=true
>>  mail.smtp.auth=true
>>   
>> 
>> ---
>> 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/SecureSMTP
 smtp.gmail.com
 587
 true
 username
 smtps
 
>>>
>>> Try using:
>>>
>>> 
>>>...
>>>...
>>>
>>>  mail.smtp.starttls.enable=true
>>>   
>>> 
>>>
>>> For 3.2.0, I'll add a  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:
 --
 >>> 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
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>









___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Configuring a JNDI javax.mail.Session for a TLS SMTP server (gmail) (3.1.5)

2008-07-29 Thread Daniel López
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/SecureSMTP
> smtp.gmail.com
> 587
> true
> theusername
> smtps
>
>  mail.smtp.starttls.enable=true
>  mail.smtp.auth=true
>   
> 
> ---
> 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/SecureSMTP
>>> smtp.gmail.com
>>> 587
>>> true
>>> username
>>> smtps
>>> 
>>
>> Try using:
>>
>> 
>>...
>>...
>>
>>  mail.smtp.starttls.enable=true
>>   
>> 
>>
>> For 3.2.0, I'll add a  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:
>>> -- 
>>> >> 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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Configuring a JNDI javax.mail.Session for a TLS SMTP server (gmail) (3.1.5)

2008-07-21 Thread Scott Ferguson

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/SecureSMTP
>   smtp.gmail.com
>   587
>   true
>   username
>   smtps
> 

Try using:


   ...
   ...
   
 mail.smtp.starttls.enable=true
  


For 3.2.0, I'll add a  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:
> --
>  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
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Configuring a JNDI javax.mail.Session for a TLS SMTP server (gmail) (3.1.5)

2008-07-21 Thread Daniel Lopez
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/SecureSMTP
smtp.gmail.com
587
true
username
smtps

---

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:
--

--
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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest