PDA

View Full Version : POP fetching with SSL


patrick
12-17-2007, 05:05 AM
i use google hosted for all mail and i want osTicket to fetch from that account!

Incoming Mail (POP3) Server - requires SSL: pop.gmail.com
Use SSL: Yes
Port: 995
Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587
Account Name: your Gmail username (including @gmail.com)
Email Address: your full Gmail email address (username@gmail.com)
Password: your Gmail password

Please note that if your client does not support SMTP authentication, you won't be able to send mail through your client using your Gmail address.

http://mail.google.com/support/bin/answer.py?answer=13287

this should be supported.

Mark Harris
12-17-2007, 03:09 PM
Actually, retrieving emails shouldnt be a problem there is code there for it. Sending emails is done through the web server's sendmail.

- Mark

patrick
12-18-2007, 02:40 AM
but it needs ssl on port 995 to fetch mails... the send part is OK...
it doesnt work when i type in that...

patrick
12-18-2007, 02:46 AM
what have i then not done for it to work? i have a plesk server...

herbertjoei
02-15-2008, 05:27 AM
hi,

I tried using gmail as my POP server but this is what I'm getting when I try to save my configuration:

Invalid login [Can't open mailbox {pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX: invalid remote specification]

I know the config is correct because I was able to login to gmail as well as enable POP on the settings of gmail.

dankible
02-22-2008, 05:33 PM
that invalid login is b.c your php install doesn't have ssl support.
it might say it does, but it really doesn't.

try recompiling it with imap-ssl. here's the relevant output of my php -i.

Configure Command => './configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' '--without-pear' '--with-imap=../imap-2007' '--with-imap-ssl'

also, when you run <phpinfo>, you should see "ssl-enabled" under the IMAP listing. if you don't, you will need to grab the latest imap, install that along with openssl.

TunaMaxx
03-11-2008, 05:13 PM
Actually, retrieving emails shouldnt be a problem there is code there for it. Sending emails is done through the web server's sendmail.
Is there any information on how to do this?

I need to be able to specify port 995 with a self signed SSL cert. Is this possible?

Thanks!

TunaMaxx
03-12-2008, 03:20 PM
Not an elegant solution at all, but I have temporarily solved my problem by adding the following after line 44 in class.pop3.php:

}elseif(strpos(strtolower($hostname),'myserver.det ails.com')!==false){
$this->port=995; //overwrite the port;
$this->serverstr='{myserver.details.com:995/pop3/ssl/novalidate-cert}INBOX';

MrFreePress
04-15-2008, 01:13 AM
Me Too.
Just wanted to chime in that this is not an isolated event.

I too use gmail for my email and cannot access the mail server.
I've tried pop.gmail.com and mail.gmail.com and imap.gmail.com
Just to see if any would work.
I've logged into my gmail account and allowed POP access, so that is not the problem.
I get the same error as reported above in previous post.

Derek Crager

PS.
I tried the code update option above, but do not see a difference between what appears in RC4 that I have installed right now.

Carlost
05-27-2008, 08:42 PM
hello

I use Google Apps too, for my domain.

So i install OS Tikets on my site and configure POP3 settings, and i get this error:
Invalid login [Too many login failures]

i found under class.pop3.php this line, that I think is for work with gmail accounts, but i got the error again. Do i need to change sometging here?

//Set connection string.
if(strpos(strtolower($hostname),'pop.gmail.com')!= =false){
$this->port=995; //overwrite the port;
$this->serverstr='{pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX';

i try changing :
if(strpos(strtolower($hostname),'pop.gmail.com')!= =false){
to:
if(strpos(strtolower($hostname),'pop.gmail.com')!= =true){

but i cant retrive email.
Can i do some worng?

Thanks

Carlo

chanhope
10-31-2008, 01:33 PM
am also get same prob

Invalid login [Can't connect to gmail-pop.l.google.com,995: Connection refused]

chanhope
11-03-2008, 03:59 AM
that invalid login is b.c your php install doesn't have ssl support.
it might say it does, but it really doesn't.

try recompiling it with imap-ssl. here's the relevant output of my php -i.

Configure Command => './configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' '--without-pear' '--with-imap=../imap-2007' '--with-imap-ssl'

also, when you run <phpinfo>, you should see "ssl-enabled" under the IMAP listing. if you don't, you will need to grab the latest imap, install that along with openssl.

ya i found this setting correct in my server php ... but then also i am getting invalid login

Denis Clijsters
12-30-2008, 02:02 PM
same here..

working ssl on my server but can't connect to my google app mail...

weberen
12-31-2008, 07:05 AM
Same problem here. I can't get either google apps or normal pop3-account to work. Vhen using google apps it just redirect me to http://(mydomain).dk/support/scp/admin.php which is empty. Then i'm not able to login to scp from the same browser again.

When using normal pop3-mailaccount, it claims that the details are wrong, eventhough it's not.

Does anybody know anything about this - I would rather use google apps.

soloex
02-06-2010, 10:12 AM
Has there been a resolution to this problem? I've been stuck on it for 12 days now. :(

Can't open mailbox {imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX: invalid remote specification

Wizard
03-26-2010, 08:18 PM
Hello,

I'm getting the same problem with GMAIL.

I've tried pop and imap. Still no luck.

Anyone know what's going on here?

Is anyone else able to retrieve Gmail using osTicket?

MohammedST
03-29-2010, 08:52 AM
same problem

telboy
06-07-2010, 04:11 PM
Any news on this?

mikehsl
06-09-2010, 02:05 PM
Stuck too with same issue - this is a terrific package, so it's frustrating........would be very pleased to hear of a fix perhaps ..?

SimonTurner
06-28-2010, 06:07 AM
I'm also having the same problem.

When i try to save the email settings it hangs for a minute and then i just get a blank page.

Would be awsome if we could get this to work?

Does anyone know of any alternative Helpdesk Packages that successfully use GMail / GoogleApps import?

kuahara
07-24-2011, 07:05 PM
am getting the same problem

Invalid login, check POP settings.

Under POP settings, the following error is shown:

Can't connect to gmail-pop.l.google.com,995: Connection timed out

My settings are:

status: enable
host: pop.gmail.com
Port: 995
Encryption: SSL
fetch frequency: 5
max emails per fetch: 30

EDIT: Resolved! My host (hostmonster.com) is blocking port 995 unless I purchase a dedicated IP. According to HM policy, with a dedicated IP, 995 can be opened for incoming email, but SMTP will never be allowed to be opened... meaning 465 will probably always be blocked.

rexwal
08-12-2011, 03:21 AM
Invalid login [Too many login failures]

Fix this by using the Google Captcha

https://www.google.com/accounts/DisplayUnlockCaptcha

or use /a/domain if you are on Google Apps