Using IMAP accounts

Hi,

is there a proper way to user cfimap to deal with IMAP accounts? Actually
the cfimap from Lucee differs a lot from the Adobe implementation (missing
folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar file
someone can recommend?

Best,
Michi

With most ssl based items, you need to download the cert and make it
available so your application can properly respond to encryption requests.

I will look for what internal documentation I had on something similar I
had going on with an eCommerce site running in the past. At last once a
year the payment gateway processor would change something on their end
encryption or an update on our end would break the keystore, resulting in
having to download the cert,On Thursday, June 25, 2015 at 5:23:36 AM UTC-4, Michael Hnat wrote:

Hi,

is there a proper way to user cfimap to deal with IMAP accounts? Actually
the cfimap from Lucee differs a lot from the Adobe implementation (missing
folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar file
someone can recommend?

Best,
Michi

Hi Michael,

Have you had any success in using Lucee to interact with IMAP accounts?

I could not make the Lucee’s cfimap tag to work to connect to either GMail
or Outlook.com IMAP accounts with the same error message
“Connection timed out: connect; nested exception is:
java.net.ConnectException: Connection timed out: connect”.

I’ve looked into a component published here (http://pastebin.com/f6f5c8051)
and it worked for some time with some modifications specific to my
application, but it stopped working some time ago and now I’m struggling to
find any option in Lucee to work with IMAP accounts.

Can anybody having success with working with IMAP accounts in Lucee share
their approach?

Best regards,
MaxOn Thursday, June 25, 2015 at 11:23:36 AM UTC+2, Michael Hnat wrote:

Hi,

is there a proper way to user cfimap to deal with IMAP accounts? Actually
the cfimap from Lucee differs a lot from the Adobe implementation (missing
folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar file
someone can recommend?

Best,
Michi

Hi Terry,

I thought that there was something wrong with certificates going on, but
I’ve added the certs to the keystore, restarted Lucee but it did not change
anything.

Any pointer you might have saved somewhere would be greatly appreciated.
Thanks!

Best regards,
MaxOn Tuesday, August 25, 2015 at 1:56:20 PM UTC+2, Terry Whitney wrote:

With most ssl based items, you need to download the cert and make it
available so your application can properly respond to encryption requests.

I will look for what internal documentation I had on something similar I
had going on with an eCommerce site running in the past. At last once a
year the payment gateway processor would change something on their end
encryption or an update on our end would break the keystore, resulting in
having to download the cert,

On Thursday, June 25, 2015 at 5:23:36 AM UTC-4, Michael Hnat wrote:

Hi,

is there a proper way to user cfimap to deal with IMAP accounts? Actually
the cfimap from Lucee differs a lot from the Adobe implementation (missing
folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar file
someone can recommend?

Best,
Michi

Hi Mat,

looks like the cfimap we used was
from http://sourceforge.net/projects/cfimap-cfc/

so its technically not the tag provided.

I would try passing the port needed for communication for used ports by
google

below is what google requires, so something like

<cfset imapCFC = CreateObject(“component”,“MyImap”) />
<cfset imapInit =
imapCFC.Init(“username”,“password”,“imap.gmail.com”,993,50,1) />

  • Incoming Mail (IMAP) Server - Requires SSL
  • Outgoing Mail (SMTP) Server - Requires TLS
    • smtp.gmail.com
    • Port: 465 or 587
    • Requires SSL: Yes
    • Requires authentication: Yes
    • Use same settings as incoming mail server
  • Full Name or Display Name: [your name]
  • Account Name or User Name: your full Gmail address
    (username@gmail.com). Google Apps users, please enter
    username@your_domain.com
  • Email address: your full Gmail address (username@gmail.com) Google
    Apps users, please enter username@your_domain.com
  • Password: your Gmail passwordOn Tuesday, August 25, 2015 at 8:01:32 AM UTC-4, Max Dzyuba wrote:

Hi Terry,

I thought that there was something wrong with certificates going on, but
I’ve added the certs to the keystore, restarted Lucee but it did not change
anything.

Any pointer you might have saved somewhere would be greatly appreciated.
Thanks!

Best regards,
Max

On Tuesday, August 25, 2015 at 1:56:20 PM UTC+2, Terry Whitney wrote:

With most ssl based items, you need to download the cert and make it
available so your application can properly respond to encryption requests.

I will look for what internal documentation I had on something similar I
had going on with an eCommerce site running in the past. At last once a
year the payment gateway processor would change something on their end
encryption or an update on our end would break the keystore, resulting in
having to download the cert,

On Thursday, June 25, 2015 at 5:23:36 AM UTC-4, Michael Hnat wrote:

Hi,

is there a proper way to user cfimap to deal with IMAP accounts?
Actually the cfimap from Lucee differs a lot from the Adobe implementation
(missing folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar file
someone can recommend?

Best,
Michi

Far as I know, the ColdFusion container only reads the java keystore upon
init. I do not think it can be done with the way java works.On Thursday, August 27, 2015 at 4:06:03 AM UTC-4, Max Dzyuba wrote:

Hi Terry,

Thanks a lot for the information. I believe I’ve tried this CFC at some
point but chose another CFC I referred to above because it was more
flexible and also provided the POP3 support.

Do you by any chance know how to update the Java keystore without
re-starting the Lucee service?

On Wednesday, August 26, 2015 at 3:34:23 PM UTC+2, Terry Whitney wrote:

Hi Mat,

looks like the cfimap we used was from
http://sourceforge.net/projects/cfimap-cfc/

so its technically not the tag provided.

I would try passing the port needed for communication for used ports by
google

below is what google requires, so something like

<cfset imapCFC = CreateObject(“component”,“MyImap”) />
<cfset imapInit = imapCFC.Init(“username”,“password”,“imap.gmail.com”,993,50,1)
/>

  • Incoming Mail (IMAP) Server - Requires SSL
  • Outgoing Mail (SMTP) Server - Requires TLS
    • smtp.gmail.com
    • Port: 465 or 587
    • Requires SSL: Yes
    • Requires authentication: Yes
    • Use same settings as incoming mail server
  • Full Name or Display Name: [your name]
  • Account Name or User Name: your full Gmail address (
    user...@gmail.com). Google Apps users, please enter
    user…@your_domain.com
  • Email address: your full Gmail address (user...@gmail.com) Google
    Apps users, please enter user…@your_domain.com
  • Password: your Gmail password

On Tuesday, August 25, 2015 at 8:01:32 AM UTC-4, Max Dzyuba wrote:

Hi Terry,

I thought that there was something wrong with certificates going on, but
I’ve added the certs to the keystore, restarted Lucee but it did not change
anything.

Any pointer you might have saved somewhere would be greatly appreciated.
Thanks!

Best regards,
Max

On Tuesday, August 25, 2015 at 1:56:20 PM UTC+2, Terry Whitney wrote:

With most ssl based items, you need to download the cert and make it
available so your application can properly respond to encryption requests.

I will look for what internal documentation I had on something similar
I had going on with an eCommerce site running in the past. At last once a
year the payment gateway processor would change something on their end
encryption or an update on our end would break the keystore, resulting in
having to download the cert,

On Thursday, June 25, 2015 at 5:23:36 AM UTC-4, Michael Hnat wrote:

Hi,

is there a proper way to user cfimap to deal with IMAP accounts?
Actually the cfimap from Lucee differs a lot from the Adobe implementation
(missing folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar
file someone can recommend?

Best,
Michi

Hi Terry,

Thanks a lot for the information. I believe I’ve tried this CFC at some
point but chose another CFC I referred to above because it was more
flexible and also provided the POP3 support.

Do you by any chance know how to update the Java keystore without
re-starting the Lucee service?On Wednesday, August 26, 2015 at 3:34:23 PM UTC+2, Terry Whitney wrote:

Hi Mat,

looks like the cfimap we used was from
http://sourceforge.net/projects/cfimap-cfc/

so its technically not the tag provided.

I would try passing the port needed for communication for used ports by
google

below is what google requires, so something like

<cfset imapCFC = CreateObject(“component”,“MyImap”) />
<cfset imapInit = imapCFC.Init(“username”,“password”,“imap.gmail.com”,993,50,1)
/>

  • Incoming Mail (IMAP) Server - Requires SSL
  • Outgoing Mail (SMTP) Server - Requires TLS
    • smtp.gmail.com
    • Port: 465 or 587
    • Requires SSL: Yes
    • Requires authentication: Yes
    • Use same settings as incoming mail server
  • Full Name or Display Name: [your name]
  • Account Name or User Name: your full Gmail address (user...@gmail.com
    <javascript:>). Google Apps users, please enter user…@your_domain.com
    <javascript:>
  • Email address: your full Gmail address (user...@gmail.com
    <javascript:>) Google Apps users, please enter user…@your_domain.com
    <javascript:>
  • Password: your Gmail password

On Tuesday, August 25, 2015 at 8:01:32 AM UTC-4, Max Dzyuba wrote:

Hi Terry,

I thought that there was something wrong with certificates going on, but
I’ve added the certs to the keystore, restarted Lucee but it did not change
anything.

Any pointer you might have saved somewhere would be greatly appreciated.
Thanks!

Best regards,
Max

On Tuesday, August 25, 2015 at 1:56:20 PM UTC+2, Terry Whitney wrote:

With most ssl based items, you need to download the cert and make it
available so your application can properly respond to encryption requests.

I will look for what internal documentation I had on something similar I
had going on with an eCommerce site running in the past. At last once a
year the payment gateway processor would change something on their end
encryption or an update on our end would break the keystore, resulting in
having to download the cert,

On Thursday, June 25, 2015 at 5:23:36 AM UTC-4, Michael Hnat wrote:

Hi,

is there a proper way to user cfimap to deal with IMAP accounts?
Actually the cfimap from Lucee differs a lot from the Adobe implementation
(missing folder operations, etc.).

Question 1: Is there a plan to enhance cfimap in the future?
Question 2: Is there a valid solution to deal with it? Maybe a jar file
someone can recommend?

Best,
Michi