I have tried to search everywhere, but cannot get the automatic email fetching to work. The scheduler shows "success" so I know that the rcron.php is actually executed. But no emails are fetched. When using auto cron it works as expected. But I am aiming to have emails pulled also when no staff is logged in.Please let me know if there is any more info that I may provide to increase resolution chances. Million thanks!/api/scripts/rcron.phpblankblankWeb host schedulerblankosTicket setupblank

/api/scripts/rcron.phpdoes not appear to match the url in your rcron.php image.Whats the IP source of the webcontrol panel that your talking about? Does it match the IP of your web page (which I presume is also the IP that you out into your API key).

Thanks ntozier. The IP address is provided by my web host, see screenshot (in Swedish but says: All calls from this scheduler are made from ip 195.74.**.**..... And yes that's the IP I have used when creating the API key!blankFor what I have understood the location of the actual rcron.php file should not matter. I even read that the location and name of this file should be changed for increased security(?)As for the url in the rcron.php image (/api/tasks/cron), I read that "Its a web path... not a file path". In other words this is not a path to a file but rather a call to the API.. or something like that?I appreciate your help!

Re: path in the filequoted from the file:# Configuration: Enter the url and key. That is it.#  url => URL to api/task/cron e.g http://yourdomain.com/support/api/tasks/cron#  key => API's Key (see admin panel on how to generate a key)#

Thanks again @[deleted], I have now moved the rcron.php to the api folder. (As I understand it this should not make a difference however.)blankI also changed the path in the scheduler (from scripts to api folder)blankRegarding the url in the rcron.php file, you mention in this thread that it is a web path not a file path, http://osticket.com/forum/discussion/comment/91787/#Comment_91787Please specify if I should change the "url" in rcron.php (so far it remains the same as specified in screenshot earlier in this thread).

My point was that you needed to edit the url = in the file to make it match its location like the instructions in the document said.Once your path issues have been resolved, I trust that you setup email in osTicket?Admin panel -> Emailsand enabled mail fetching at: Admin panel -> Settings -> Emails -> Email Fetching:

Thank you for your patience. Yes mail fetching is active (as mentioned earlier, when auto-cron is active emails are indeed fetched as expected, though only when agents are logged in and active in the system).blankSince you know my parameters (if something is missing please ask), would you mind telling me exactly how the url should be in rcron.php ? Guess this should be possible to tell from the info that I have provided(?)

uncheck fetch on autocron.go to Admin panel -> Settings -> Default Log Level: and set it to Debug.with putting the rcron.php in the api folder, I would presume that your url in that file should be eitherhttp://yourdomain.com/support/api/tasks/cronorhttp://yourdomain.com/support/api/note: I don't use rcron.php so it's a guess.Once your sure the call for cron has run (at least once) you should be able to go to Admin panel -> Dashboard -> System Logs.  You should see cron being run.  If you mouse over or click on the entry in the log it should show the IP address that the traffic coming from.  Make sure that's the IP that you used in your API key.  If there is an error or anything please let us know.

Write a Reply...