I am having inbound email problems. If I select poll on auto-cron the system receives emails. If I disable poll on auto-cron but add a cron job to run cron.php I never receive any messages. Here is the line from my crontab: */5 * * * * nobody /usr/bin/php /var/www/htdocs/osticket/api/cron.phpThanks!

You have not provided enough information for us to actually help you.  Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.Also please provide that seeings in Admin panel -> Settings -> Emails and Admin panel -> Emails -> your emails.

Sure, sorry about that. Here is the details.PHP Error Log: No relevant entriesCron Log: it is executing the process as expected every 5 min without errors. Mail Sending: SMTP Mail (working fine in OSTicket)Mail Receiving: IMAP (works with auto-cron but not my cron job)PHP version: 5.3.10-1ubuntu3.9 with Suhosin-Patch (cli)Operating System: 3.8.0-35-generic #52~precise1-Ubuntu SMPAdditional Notes:I have executed sudo php /var/www/htdocs/osticket/api/cron.php from the command line and it also does not fetch email or provide an error message.blank

emailSetup.jpg

settingsEmail.jpg

What version of osTicket are you running?Can you look at your mail servers logs to see if its actually connecting to the server to check for mail?

OS Ticket 1.8-Git. Downloaded just before the release of 1.8.1. I did a diff on my cron.php file and it is identical to the file currently in the git archive.Nothing in the mail server log (unless I use auto-cron) and I tried with both our in-house mail server and a gmail account. Both display the same behavior of working with auto-cron and not with a cron job. Thanks. 

Please download 1.8.1 from osticket.com/downloads and install it. As of yesterday downloading git 1.8.1 didn't work right.  I don't know if its been fixed yet.  Then let us know if you still have the problem.

As a follow up I've just spent the last hour setting up email on my 1.8.1ST installation. My server is Windows so I use Windows Task Scheduler instead of cron to call cron.php.  I've tested several emails, and opened several tickets via email.  cron.php is working for me.You might want to try running it manually at the command line.  Something like:/usr/bin/php5 -f /var/www/htdocs/osticket/api/cron.phpAnd see what happens.

    7 years later

    Hi ntozier - How do I setup this task in Windows Task Scheduler? I cant find any documentation specifically for Windows.
    Any help would be appreciated

    Write a Reply...