Page 1 of 1
IMAP / POP3 died suddenly
Posted: Tue Dec 19, 2023 12:27 pm
by adminlogistic
Noticed that servicemd for
no longer fetches emails into tickets. Tried rebooting the system but it didn't help, so i
and reloaded apache2. After another reboot tried to launch the service again to which it said "Could not connect to IMAP server". Went to hesk settings in admin panel, triple checked everything and it appeared to be alright, but still "Can't connect to imap.yandex.ru,993: Network is unreachable". Pinged the imap server, worked properly. Maybe chmod broke something? I don't recall fiddling with mails at any point after i got the .service to work.
Re: IMAP / POP3 died suddenly
Posted: Tue Dec 19, 2023 3:17 pm
by Klemen
Can't connect to imap.yandex.ru,993: Network is unreachable
This probably means that port 993 is blocked in the firewall.
Re: IMAP / POP3 died suddenly
Posted: Wed Dec 20, 2023 10:23 am
by adminlogistic
Cheers. Didn't think to try and ping the port, seems like it lost a networking file, but i fixed it and now it works. But now there's another problem.
Trying to launch my servicemd for hesk_imap and after checking status it says "[HESK] IMAP is disabled" , although i've enabled it in the php.ini file. Am i missing something?
Re: IMAP / POP3 died suddenly
Posted: Wed Dec 20, 2023 11:46 am
by Klemen
You need to enable it again in Hesk admin panel > Settings > Email

Re: IMAP / POP3 died suddenly
Posted: Wed Dec 20, 2023 1:18 pm
by adminlogistic
Yes, checked it, it is on. Reloaded apache2 but to no avail

Re: IMAP / POP3 died suddenly
Posted: Wed Dec 20, 2023 1:48 pm
by Klemen
That's inside the file, you shouldn't be editing the source code.
IMAP is enabled in Hesk admin panel > Settings > Email > IMAP Fetching.
Re: IMAP / POP3 died suddenly
Posted: Thu Dec 21, 2023 6:52 am
by adminlogistic
Indeed! Checked it, it is turned on

The error still appears:

(The second sentence in status)
Re: IMAP / POP3 died suddenly
Posted: Thu Dec 21, 2023 2:06 pm
by Klemen
Can you dobule-check that your service is calling the correct file (maybe you have multiple copies of Hesk installed)?
Also, disable any server-side caching for Hesk, that could be causing problems.
Re: IMAP / POP3 died suddenly
Posted: Fri Dec 22, 2023 7:41 am
by adminlogistic
Serivce is calling to the correct file! It does work when i try to do it manually.
Also checked if imap is turned on:
I am unsure how to disable server-side caching, could you tell me how can i do that?
Re: IMAP / POP3 died suddenly
Posted: Fri Dec 22, 2023 9:22 am
by Klemen
That would depend on your server-side set up, if you have any code caching set up.
You can try and see if turning off OPcache in your PHP settings has any effect. Don't forget to restart the server after making changes to php.ini
Re: IMAP / POP3 died suddenly
Posted: Mon Dec 25, 2023 8:10 am
by adminlogistic
I don't recall setting up code caching, maybe only if some other packages i installed did it for me, but i only got what was needed for hesk.
Seems like OPcache is turned off in my php.ini file, too:
