I'm a newbie on this OSTicket and Linux stuff so please be patient.

I installed Linux Mint 18 with LAMP and installed OSTicket. The OSTicket setup went through with some struggle but we eventually got it working to a point. I am struggling with configuring the emails but have no idea how to get the system to retrieve emails from Office 365. The SMTP setup works fine and test emails reach their intended recipients.

I have ready many forum posts here taking about bugs and PHP versions and patches with links to github. Being the newbie that I am, I don't understand anything I see on those Github links and what to with what they present. I don't see guides or explanations with what to do with the code they list there.

My test setup is a VMWare linux lamp server with OSTocket 1.11(d4e240b), Apache 2.4.18, MySQL 5.7.25 and PHP 7.0.33-0ubuntu0.16.04.4.

Can someone kindly assist me with figuring out how I can get this to work.

I'm asking the above still. Anybody care to help out?

Any help on the above problem? Still no change from my side.

First off, I'd recommend using osTicket 1.12 - you can just overwrite the existing 1.11 files with the new ones. To fetch emails using Office 365, I have a cron job set to run as the webserver every 2 minutes as follows:

*/2 * * * * php /var/www/html/api/cron.php > /dev/null 2>&1

With IMAP settings as below

Thanks for assisting RGBE
I have typed the command above and left the system for 20 minutes and still not fetching or new tickets. My email settings are identical to yours with the exception of the cron job. I typed the above and adjusted the path to fit my install and got no errors. I also restarted the system but still nothing. I did log into the office portal for the same account and Outlook is getting a ton of emails there but OSTicket simply refuses to fetch mails it seems. Either that or it refuses to generate tickets on new emails.

I opened the cron file referenced above. I don't think it changed.

Can I just double check that email fetching is enabled under Admin -> Emails -> Settings ?

I would also recomend that you read the mail docs.
https://docs.osticket.com/en/latest/Getting%20Started/POP3-IMAP%20Settings.html

It's pretty straight forward though.
Enter the server, email address (username/password), and port.
You can get the settings for o365 Exchange from Microsoft.
We use o365 Exchange and here are the settings that we use:
server: outlook.office365.com
port: 993
protocol: IMAP + SSL
fetch frequency: 2 minutes
Emails per fetch: 10

It's working! I unchecked "Verify email address domain" and instantly the mails started pulling through!

Thank you RBGE and ntozier for your assistance.

Write a Reply...