
Enter the IP of the host that the wget will run from. External triggering using wgetįirst add an API key and IP to Settings => API => API Keys. If your host allows you to modify their schedulers User Agent string, then change that to the API key and add your webhost scheduler's IP to Settings => API => API Keys. If the User Agent string is not changed to the API key, the request will be denied, email will not be polled, and API error - code #77: Unknown remote host 181.222.32.12 or invalid API key will appear in your system logs under the osTicket dashboard. In this case, you will schedule the task using your webhost's scheduling interface and To prevent unauthorized execution of scripts from the outside, Settings => API has rules for allowing external access based on originating IP and an API "passphrase", which is actually the User Agent string of the agent trying to access cron.php on your web server. Some hosts do not allow adding cron jobs, and instead only allow you to probe scripts located at a publicly accessible URL.
*/5 * * * * nobody /path/to/php /path/to/api/cron.phpįor windows users in "Scheduled Tasks" add "c:\php\bin\php.exe c:\website\osticket\api\cron.php" Recurring tasks scheduler (host's custom task scheduler) The PHP CLI executable is called to run cron.php.Īdd the following entry to cron file normally in /etc/crontab in *nix systems and adjust the time and paths accordingly. Please refer to your hosting manual or contact your hosting provider for instructions. This is the most convenient method if your hosting provider allows scheduling recurring tasks via crontab on *nix or "Scheduled Tasks" on a Windows server.
Choose one of the methods below depending on your hosting environment. Account polling, unlike email piping, requires that a mail fetcher (script) be scheduled for repeated execution. IMPORTANT: Simply checking Admin Panel => Settings => Email Settings => Enable POP/IMAP email fetch will not cause osTicket to automatically poll a mailbox for new messages.
Enable Delete fetched message(s) - if your mail server doesn't support auto-archiving on fetch. Configure fetch frequency for each of the accounts - 5 minutes recommended. Refer to your hosting manual or contact your hosting provider for host name and port number. Enable mail fetch in Admin Panel => Settings => Email Settings. It is best suited for individuals with remote mail account(s) and/or limited access to mail delivery settings. osTicket will poll an external POP3/IMAP account on a regular basis, retrieve email messages and convert them to tickets.
If email piping is not a preferred option for you or if your hosting provider does not support it, you may use POP3/IMAP account polling instead.