IMAP fetching issue

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
michaelli
Posts: 4
Joined: Tue Aug 01, 2023 3:25 am

IMAP fetching issue

Post by michaelli »

Hi,

I'm using HESK v3.4.3
When I set up IMAP Fetching, I chose port 143 for non-encrypted. The test report always said: TLS/SSL failure for mail.xxxxx.com: SSL negotiation failed
Is it a bug?

Please help. Thank you.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP fetching issue

Post by Klemen »

Perhaps your IMAP server is forcing a secure connection (I just tested with our mail server al 143 with TLS and with None work OK).

Try port 143 and TLS. Also, try with "Do not validate server certificates".

Any special reason why you wouldn't want your connection encrypted? Port 993 with SSL is the setting that works with most IMAP servers.
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
michaelli
Posts: 4
Joined: Tue Aug 01, 2023 3:25 am

Re: IMAP fetching issue

Post by michaelli »

Hi Klemen,

Thank you.
Now, I changed the email system to O365 using OAuth, the IMAP fetching connection is okay, but can't pick up the email to tickets.
Checked with https://www.hesk.com/knowledgebase/?article=91
I did the step 5, the feedback is "#!/usr/bin/php -q" is it right?
Also did step 7.
Please help.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP fetching issue

Post by Klemen »

Do you have any unread emails in the mailbox?

Does the number of unread emails match the number you get in Admin > Settings > Email > click "Test IMAP Connection"
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
michaelli
Posts: 4
Joined: Tue Aug 01, 2023 3:25 am

Re: IMAP fetching issue

Post by michaelli »

Hi Klemen,
Yes, there are some unread emails, but there is 0 use testing.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: IMAP fetching issue

Post by Klemen »

This likely means that the OAuth setup was not completed correctly. Try this, please:

1. open Hesk in a private (incognito) browser window to make sure you are not logged in anywhere
2. go to Hesk Tools > OAuth Providers
3. click the "Edit" icon for your OAuth provider
4. click "Save" and you will be redirected to Microsoft
5. Make 100% sure you login with the email account you use in Hesk into Microsoft
6. when you get back to Hesk, test the IMAP connection again

Do you get any other number of messages now instead of 0?
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
michaelli
Posts: 4
Joined: Tue Aug 01, 2023 3:25 am

Re: IMAP fetching issue

Post by michaelli »

Yes, after step 5 redirected, get the correct number of messages.
Thank you so much!
Post Reply