Our Configuration: osTicket -- v1.8.1.2/Microsoft-IIS/8.0/PHP Version 5.3.25/MySQL Version 5.1.56/Plesk V11=======================================Hello, we have a brand new installation of OSTicket (love the software BTW). We installed via the Plesk 11 panel. All is good except one thing - auto email retrieval. Retrieval works fine when Poll on Auto Cron is enabled -- that will not suffice as we're not on the system all the time. So we set the recurring cron task to run per the documentation, and the windows task manager task starts and runs without any issues noted in the task manager log. However, every 5 minutes the email address (support@thenameofourdomain.com) receives an email entitled "Fulfillment failed", with the following line repeated in the body of the attached log file: "2014-04-28T00 The remote server returned an error: (401) Unauthorized." (Note that OSTicket and Smartermail mail server are on the same Windows server).It would appear that the windows task/Cron job which repeats every 5 minutes is sending it, and that something to do with the cron job lacks permissions to execute/access email. This is where it gets murky for me. Because the Auto Cron works fine, we know that the UN/PW credentials are good to access the target email account, and further,  it makes sense that the OSTicket software/routines has sufficient windows security permissions to access the email account using the same logic. Clearly I'm wrong, but I don't know what the fix is. Your help is greatly appreciated, thank you!Matt

Being a newbie to the PHP world, I missed something obvious. Plesk installed the default window task, which I edited, with one minor problem. What I did not realize that there were multiple versions of PHP installed within Plesk, so once I updated the task to look at the correct php.exe instance, everything worked.Original Task Manager path: "C:\Program Files (x86)\Parallels\Plesk\Additional\PHP\php.exe"Working Task Manager path: "C:\Program Files (x86)\Parallels\Plesk\Additional\PHP53\php.exe"Thanks and hopefully this helps some other lost soul. :)

Glad that you figured out the problem, and thank you for posting your solution here.  I'm going to mark this resolved and close the thread.  Please feel free to start a new thread if you have another question. :)

Write a Reply...