IMAP / POP3 died suddenly

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
adminlogistic
Posts: 8
Joined: Mon Dec 18, 2023 12:23 pm

IMAP / POP3 died suddenly

Post by adminlogistic »

Noticed that servicemd for

Code: Select all

hesk_imap.php
no longer fetches emails into tickets. Tried rebooting the system but it didn't help, so i

Code: Select all

CHMOD 755 hesk_imap.php
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.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP / POP3 died suddenly

Post by Klemen »

Can't connect to imap.yandex.ru,993: Network is unreachable
This probably means that port 993 is blocked in the firewall.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
adminlogistic
Posts: 8
Joined: Mon Dec 18, 2023 12:23 pm

Re: IMAP / POP3 died suddenly

Post 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?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP / POP3 died suddenly

Post by Klemen »

You need to enable it again in Hesk admin panel > Settings > Email :)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
adminlogistic
Posts: 8
Joined: Mon Dec 18, 2023 12:23 pm

Re: IMAP / POP3 died suddenly

Post by adminlogistic »

Yes, checked it, it is on. Reloaded apache2 but to no avail :shock:
Image
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP / POP3 died suddenly

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
adminlogistic
Posts: 8
Joined: Mon Dec 18, 2023 12:23 pm

Re: IMAP / POP3 died suddenly

Post by adminlogistic »

Indeed! Checked it, it is turned on Image
The error still appears: Image (The second sentence in status)
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP / POP3 died suddenly

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
adminlogistic
Posts: 8
Joined: Mon Dec 18, 2023 12:23 pm

Re: IMAP / POP3 died suddenly

Post by adminlogistic »

Serivce is calling to the correct file! It does work when i try to do it manually. Image

Also checked if imap is turned on: Image

I am unsure how to disable server-side caching, could you tell me how can i do that?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP / POP3 died suddenly

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
adminlogistic
Posts: 8
Joined: Mon Dec 18, 2023 12:23 pm

Re: IMAP / POP3 died suddenly

Post 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: Image
Post Reply