Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Serious --- IMAP/POP --- CRON --- Why is it so hard????


I have read the posts and I have googled it.

WHY is having osTicket check a IMAP or POP email so hard?????
I have tried to pipe it, tired to SSL it, tried to crong it, geesh !!!!

I am ready to call it quits to osTicket.
The directions are terrible.

I had my install so goofed up yesterday that I had to reinstall.

My Settings:

username = [email][/email]
password = password

host =
port = 993

Protocol = IMAP

Encryption = SSL

Fetched Emails --- > MOVE TO: INBOX.trash

CRON --- php -f /PATH/api/cron.php

CRONG Error Email ---

Warning: imap_open() [function.imap-open]: Couldn't open stream {}INBOX in /PATH/public_html/include/class.mailfetch.php on line 130

PHP / IMAP info ---
IMAP c-Client Version 2007e
SSL Support enabled
Kerberos Support enabled

Any help would be appreciated.... Thanks...



  • is the openssl extension enabled in your php.ini?
  • openssl

    OpenSSL support enabled
    OpenSSL Library Version OpenSSL 1.0.0-fips 29 Mar 2010
    OpenSSL Header Version OpenSSL 1.0.0-fips 29 Mar 2010

    Yes... it is... Thanks
  • ALSO --- Poll on auto-cron works fine.

    So if this works email account variables are good and valid.

    The CRON just will not use them correct.
  • have you tried not configuring

    Fetched Emails --- > MOVE TO: INBOX.trash

    and testing it?
  • Yes. I have tried all 3 options no change in error
  • i also get --- an osTicket alert from time to time.

    osTicket is having trouble fetching emails from the following mail account:

    User: [email][/email]
    Error: IMAP Authentication cancelled

    7 consecutive errors. Maximum of 5 allowed

    This could be connection issues related to the mail server. Next delayed login attempt in approx. 10 minutes

  • How are you calling cron and whats the exact command line that you are passing to it. (Are you calling it locally or remotely)

    What OS are you running?
  • setup via cPanel / cron jobs.

    Centos (I think) its a shared linux server.

    php -f /username/public_html/api/cron.php

    yes its local. the cron job is running from the same host that has osTicket.
  • Centos... running SELinux? Lots of users have experienced problems with SELinux. Can you disable it.
  • Can't disable --- /etc/selinux <---- does not exist for my user.
  • :D

    I got it working. Turned off IMAP/POP and using 100% PIPE.

    Thanks for all the help !!!

    (I will be posting again) :)
  • I have exactly the same. But Mail is on Office 365 account. Would you know how to pipe that? Of does it only work locally? 

    Has anyone else solved this issue?
  • Make sure your cron task uses the same version of PHP as your web task. That's the main issue with these.

    This thread was resolved in 2013, so hopefully it's not the same issue. 
  • @neurburg: Exchange does not support pipeing.  You have to use imap or pop.  Please start your own thread instead of hijacking someone elses.
This discussion has been closed.