sriniwaspawar33 I have never once seen any crontab instructions outside of osTicket docs where the username is specified in the cron job. I'll also assume the missing * are just a result of forum formatting 🙂 Try the following to see if it works for you:
First, edit the crontab for the user your webserver is running as (replace www-data with the relevant account if apache is running under a different user):
Then enter the following:
*/2 * * * * php /var/www/html/api/cron.php > /dev/null 2>&1
(You can fully specify the path to PHP if you like, but just 'php' will be fine and won't break after an update like /usr/bin/php7.2 will). Also, if your osTicket installation is not in /var/www/html/ then update the path as required. You can also change the 2 to a 5 if you'd prefer a 5 minute check. Save and exit.
In osTicket, under Admin -> Emails -> Settings ensure Email fetching is checked, but auto-cron isn't
