Trying to set up automated email retrival. I have tried the following in /etc/crontab;
*/5 * * * * www-data "/usr/bin/php /var/www/html/osTicket/upload/api/cron.php"
And in the root user crontab I tried */5 * * * * "/usr/bin/php /var/www/html/osTicket/upload/api/cron.php" and they both fail with;
Dec 2 10:35:01 osticket CRON[19124]: (root) CMD ("/usr/bin/php /var/www/html/osTicket/upload/api/cron.php")
Dec 2 10:35:01 osticket CRON[19122]: (CRON) info (No MTA installed, discarding output)
But when I run it as root or as a user in the www-data group, it runs clean and pulls email when I type;
/usr/bin/php /var/www/html/osTicket/upload/api/cron.php
This is Ubuntu 22.04 with php8.2 and osTicket 1.18.2 installed.