Hello, I have read a lot of posts and none of them help me :(I setup the cron job, enabled POP in gmail, and made sure there is a forwarder setup using the pipe.php. Here is the error I get with what settings I posted. Warning: imap_open(): Couldn't open stream {pop.gmail.com/pop3/ssl/novalidate-cert}INBOX in/home4/cookavis/public_html/ibb/osticket/include/class.mailfetch.php on line 139Above Email Address:  Invalid login. Check POP settings Can't connect to gmail-pop.l.google.com,995: Network is unreachableSettings:Email Address: Helpdesk@ibytebits.comUsername: helpdesk@ibytebits.comhost: pop.gmail.comPort: 995SSL: YESFetch Freq: 5minEmails per fetch: 30Fetched Emails: move to: /fetched-mailSMTP host: ssl://smtp.gmail.com (I tried it without ssl:// and still nothing)SMTP Port: 465Auth Req: YesAllow Head Spoof: YesAm I doing something wrong????Thank you!

Update: I used imap and the settings worked but the email fetching still didn't work.

Have you gone to google and enabled pop/imap on your account?

Yes, both are enabled for testing purposes.

Here is my cron job code: /5 * * * * /usr/bin/php54 /home4/USERNAME/public_html/ibb/osticket/api/cron.php

Can you run the command manually?

I actually had my host run it manually and we changed the cron job to: /5 * * * * php54 /home4/USERNAME/public_html/ibb/osticket/api/cron.php - The tech said that worked. But I still don't see tickets being created :(

Did you enable email polling in Admin Panel > Settings > Email?

I'll recommend using poll on auto cron for now.... if it works then the issue is most definitely cron related.

I have set both up, neither are working.I do however have google apps and forwarded my mx records to google. would this cause issues?

Here is what my settings look like. Since I forward my mx record to google I don't know if I should use my host or googles settings. I have tried both and my hosts imap setting is the only thing that is accepted. Any help is greatly appreciated!

Can someone tell me if email piping and a cron job can cancel each other out if I am using google apps?

Your images aren't showing up.

Sorry, this is located in the wrong section. My version is 1.8.1.

This is what I am trying to use but I keep getting these errors.

ErrorEmail.JPG

The error in the image that you posted is "Network is unreachable". I would guess that a firewall is blocking your traffic.p.s. moving thread to 1.8 section of the forums.

Thanks for moving it. I apologize for all the posts. I already confirmed with my host that they are not blocking anything but 587. I am able to get a successful connection with my local host email, but not with google apps email. Since I forwarded my mx records to google apps I don't receive emails at the host level. When the connection is successful with my host, I am not receiving newly created tickets or ticket replies via email in osticket. 1) I have created a cron job (/5 * * * * nobody php54 /home4/username/public_html/ibb/helpdesk/api/cron.php) and have verified that the command works. 2) I have created a forwarder to pip.php3) I have changed the permissions for both pip and cron to 7554) I have polling checked5) I have verified that I have an API key from my host for the cron6) I have added gmail IP to API just for funI have no idea what else to do. Any suggestions?About this osTicket InstallationServer InformationosTicket Versionv1.8.1Server SoftwareApachePHP Version5.4.24MySQL Version5.5.36Database UsageDatabase Space Used6.71 MiBDatabase Space for Attachments0.06 MiB

Regarding your list of 6 items.1. are you sure that its php54?  usually I see /usr/bin/php5 as the path. I've never seen one like your describing (its possible just surprising).2. I have no idea what you mean by this.  There is no pip.php in this project.  There is a pipe.php but if your using POP or IMAP you don't need to utilize it.4. Not sure what you mean by this.  You could meanAdmin panel -> Settings -> EmailsEnable POP/IMAP polling or Poll on auto-cronIf you are using cron you do not need Poll on auto-cron.5. and 6. API key?  /blink blinkYou do not need an API key unless you are running rcron.php from another host.  You have not said that you are, and none of your cron examples you cited indicate that you are. I'm polling my Exchange server via IMAP and running Windows Taskscheduler to call the cron.php.  I do not use any API keys.  Unless I'm misunderstanding your setup you don't need to use any API keys either.Oh I should add that if you are using piping you do not need to use cron at all.

I appreciate the reply.1) The tech with my host ran the cron manually and said with php54 it didn't spit errors out.  A) Do you know if I need to have the word Nobody in the cron command? We were confused about that.2) I do mean pipe, and I tried it because the cron wasn't working. I will delete the forwarder to the pipe.php file.3) That's exactly what i was referring to. I only have Enable POP/IMAP polling checked.4) Isn't the API created automatically if you setup a cron job? My host is hostmonster, which comes with emails. I signed up for google apps and one of their setup requirements were to forward my mx records to their ns servers. Do you have any recommendations on which route I should go as far as setting up the email functionality within osticket? Is one better than the other or is it just if one works good, if not use the second option?Thanks for your time :)

1. Ah gotcha.  Although if we knew what the errors were we might want to look into that.  The only time I have seen an error when cron runs is if its not php5.3+.1.A. nobody is the "user" that its run as. Generally speaking if your setting up the cron at command line as your user its not needed since it will run as you.2. Okay. :)3. Enable POP/IMAP polling being checked is good.  I noticed in your last screen shot of your settings an error displayed at the top as well as the red osTicket error.  This really makes me wonder if your host isn't blocking port 995.  Can you contact them and find out? If you have CLI access to the server you could try telnet to see if you can get there manually (and/or if there is a different error reported).  telnet pop.gmail.com 995You might want to try IMAP also.telnet imap.gmail.com 993If you get a connection refused then its a pretty safe bet that there is port blocking going on.4. API keys are created when you go to Admin panel -> Manage -> API Keys and create one. :)  Generally speaking most users never need to do this.  The two primary use cases for this are using the rcron.php script to remotely trigger cron or writing your own script to use the API to make tickets.Sadly I don't have a hostmonster account to help out and test with. Setting your MX records to Goog means that you definitely should be settings up osT to check email with them.  I do not really have a great grasp on piping or how to set it up.  My understanding is that it forwards all emails to the pipe, and you get a closer to real time ticket opening/updates etc.  However I believe that you would lose the ability to store emails to reprocess them, archive them, etc.  I have never used piping, and honestly none of the people that I know personally who use osT use piping.  There are people here on the forums that do it though.  I don't really feel comfortable recommending one way over the other.  I personally use imap/cron. :)worthless information: Hostmonster, Hostgator, Bluehost, and about 50 more are all owned by EIG (Endurance International Group). (source: http://en.wikipedia.org/wiki/Endurance_International_Group)You're very welcome for my time. :)

That's why they all seem the same companies..... And yes, your time is valuable. This information is great and I will keep on testing, this time without piping. I will let you know of the outcome if I ever get it to work. If anyone else has suggestions I am open ears. 

Let me know how that works out for you.  I would like to see this get resolved for you. :) 

I just opened a ticket with my host to see if I am being blocked. The people I usually talk to are in the live chats and are level 1 techs. So, let's see what happens. If the answer is NO they are not blocked, then I have no idea what else I need to do in order to get it to work. I will just deal with it and manually create tickets I guess :(I will indeed let you know the outcome.

ntozier,Do you know how osTicket works with the email polling? Does osTicket want to send and receive email as the email to create tickets? Or, does it just search every x minutes via cron job for tickets in the inbox and creates tickets on their behalf? I am trying to understand what the functionality is so I can break it down and figure out where the issue lies. 

I view sending and receiving emails as separate things.osTicket will send emails when it needs to. (ie when staff updates a ticket, or a new ticket is created)  If you have SMTP configured it will use that.  If you have PHPMail specified it will use that.When one schedules cron to run that is what triggers osTicket to check for new emails to create (or update existing) tickets via IMAP or POP.

So any unread emails will be created as a ticket if it works as it should?

How about remote piping, could that work in my favor?

Here is what my host said:We do not allow connections to remote SMTP servers by scripts running onour servers.  So using:  $mail->Host       = "smtp.gmail.com";      //sets GMAIL as the SMTPserver****  will not work.  If you are going to be using SMTP you need touse our SMTP servers regardless of where you email is hosted or where yourMX records point.

Well now you know why you can't send email through google.  Sounds like you will need to use your web hosts mail servers.

freaking google apps!!!! I have the free version so I am definitely not giving it up :-DHere is an error within osTicket:Mailer ErrorUnable to email via SMTP://mail.ibytebits.com Failed to add recipient: Webmaster@ibytebits.com [SMTP: Invalid response code received from server (code: 550, response: (localhost)

Also, I signed up for the hosted version for a trial, going to see what's possible. 

IF, I want to keep inhouse, do you see any work around for the issue with my host? 

Resolution: It is on the Host end and I have no control over it. You can close the thread :)Since osTicket isn't too graphical and takes up too much resources visually, I will use a virtual machine hosted on my local computer. 

Write a Reply...