Coldfusion Administrator mail settings for gmail

3,100 views
Skip to first unread message

tquill

unread,
Apr 18, 2013, 11:45:49 PM4/18/13
to cfwh...@googlegroups.com
I recently upgraded to an SSD and started fresh on my development computer and after setting CF up again... I can't seem to get gmail working in cfadmin.  I'm using the following settings:

Mail server: smtp.gmail.com
password: mypassword

Server port: 465
Enable SSL: Checked

Everything else is default, and I'm getting this error in the mail log file:

javax.mail.MessagingException: Exception reading response; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Does anyone have any suggestions?  I downloaded the most recent java version but that didn't help.  I've been reading online that it may have something to do with not having the right certificate... but I'm not sure the best way to fix that.

I really appreciate any help.

Andy Bellenie

unread,
Apr 19, 2013, 5:02:24 AM4/19/13
to ColdFusion on Wheels
Does it work without SSL and using port 25?


--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfwheels?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

tquill

unread,
Apr 19, 2013, 8:20:05 AM4/19/13
to cfwh...@googlegroups.com
If I change it to port 25 and remove SSL.  The log shows the following error:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25, response: 421

Chris Peters

unread,
Apr 19, 2013, 9:15:35 AM4/19/13
to cfwh...@googlegroups.com
Try it with port 587, SSL off, and TLS on.

Those are old settings, but they work for me.


--

tquill

unread,
Apr 19, 2013, 11:50:00 AM4/19/13
to ColdFusion on Wheels
I think I tried that already, but I will double check when I get home.

This is likely the dumbest question ever... but do I need to setup the
google mx records in my DNS manager on my local machine to get this to
work? For some reason, I was thinking that was only necessary if I
were trying to setup my local machine as the mail server (rather than
using google)? I know I'm a newb, so I apologize for such questions.
I know I had done that on my previous harddrive, but I didn't know if
it was necessary.


On Apr 19, 8:15 am, Chris Peters <chris.pet...@liquifusion.com> wrote:
> Try it with port 587, SSL off, and TLS on.
>
> Those are old settings, but they work for me.
>
>
>
> On Thu, Apr 18, 2013 at 11:45 PM, tquill <toddaquil...@gmail.com> wrote:
> > I recently upgraded to an SSD and started fresh on my development computer
> > and after setting CF up again... I can't seem to get gmail working in
> > cfadmin.  I'm using the following settings:
>
> > Mail server: smtp.gmail.com
> > user name: myusern...@mydomain.com
> > password: mypassword
>
> > Server port: 465
> > Enable SSL: Checked
>
> > Everything else is default, and I'm getting this error in the mail log
> > file:
>
> > javax.mail.MessagingException: Exception reading response; nested
> > exception is: javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException: PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> > valid certification path to requested target
>
> > Does anyone have any suggestions?  I downloaded the most recent java
> > version but that didn't help.  I've been reading online that it may have
> > something to do with not having the right certificate... but I'm not sure
> > the best way to fix that.
>
> > I really appreciate any help.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to cfwheels+u...@googlegroups.com.
> > To post to this group, send email to cfwh...@googlegroups.com.
> > Visit this group athttp://groups.google.com/group/cfwheels?hl=en.
> > For more options, visithttps://groups.google.com/groups/opt_out.- Hide quoted text -
>
> - Show quoted text -

Chris Peters

unread,
Apr 19, 2013, 1:16:01 PM4/19/13
to cfwh...@googlegroups.com
You shouldn't need to set up MX records to send SMTP email through Gmail.


tquill

unread,
Apr 20, 2013, 12:29:09 PM4/20/13
to cfwh...@googlegroups.com
Ok well this took me an embarrassingly amount of time to fix, but I found the problem.

My avast virus scanner was blocking this from working apparently.  In avast (I'm using program version 8.01493), go to settings, troubleshooting, and add smtp.gmail.com to ignored addresses in the "Web" section.

As for cfadmin settings,

I'm using server port 465, and both SSL and TSL are checked.

Tim Holt

unread,
Apr 9, 2015, 4:34:18 PM4/9/15
to cfwh...@googlegroups.com
Thanks for posting this.  I recently installed Avast and was wondering why my Coldfusion Admin mail settings suddenly stopped working after a few years of development.

In Avast, you can temporarily turn off protection to test the Mail Server Settings in CFAdmin.  If the connection is verified, you can then look in Avast for the setting to shut off that feature.

I turned it off via Settings-> Active Protection -> Mail Shield -> Customize and Unchecked Scan Outbound mail (SMTP).  Then I was able to connect to smpt.gmail.com using TLS and port 587.

Also, a tool such as smtp4dev will allow you to use Mail Server localhost on port 25 to get around smpt.gmail.com and Avast on your development machine.
Reply all
Reply to author
Forward
0 new messages