I'm posting for those searching the forum looking for help with the cron setup and the following error:
Mail Fetch Failure Alert
Error: IMAP connection broken (server response)
We were using the auto cron to enable cron call on staff's activity for testing. The auto cron was polling messages via IMAP but stopped working when we switched to a cron job.
After searching, I found a solution to ensure the cron uses the php.ini file from apache:
*/5 * * * * /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/osticketdir/api/cron.php