Page 1 of 1

IMAP - Mail fetching from Linux Mail server

Posted: Wed Apr 14, 2021 2:48 pm
by GerhardH
Script URL: /inc/mail/hesk_imap.php
Version of script: latest
Hosting company: self
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: IMAP, URL access key, HTTP access Key, EMail Piping, IMAP retrieval

Write your message below:

We have installed HESK Helpdesk and are trying to read in mail from a standard Linux mail account.

SMTP and IMAP have been set up correctly and also return an "OK" when checked.

Email piping and IMAP retrieval are also enabled, but nothing happens.

Running the PHP program /inc/mail/hesk_imap.php (with 755 permission) asks for a URL access key which does not exist.

What can I do?

Re: IMAP - Mail fetching from Linux Mail server

Posted: Sat Apr 17, 2021 11:48 am
by Klemen
Have you gone through all the steps here?
https://www.hesk.com/knowledgebase/?article=91

If yes, what step are you having problems with?

Re: IMAP - Mail fetching from Linux Mail server

Posted: Mon Apr 19, 2021 11:14 am
by GerhardH
I have done all steps (more then one time). I'am been able to send EMail using SMTP.

Setting up IMAP gives successful result (Test IMAP connection).

There are two new Mails in the Inbox, but no Mail will be received by Help Desk.

Files in the inc/mail directory were set to 755.

Calling the page: https://service.domainname.xxx/inc/mail/hesk_imap.php generates the following error message (in German):

#!/usr/bin/php -q Error: To run this file over HTTP, you must include your URL access key in the request. Example: /inc/mail/hesk_imap.php?key=XXXXXXXXXX

The problem is - I do not have a key and there is none for the mail program!

Re: IMAP - Mail fetching from Linux Mail server

Posted: Mon Apr 19, 2021 11:33 am
by Klemen
The URL Access Key is set in your HESK Admin panel > Settings > Help desk > Security > URL Access Key, as the article suggests in the big yellow notice :)

Also note that IMAP fetching will only get Unread emails from a mailbox.

Re: IMAP - Mail fetching from Linux Mail server

Posted: Mon Apr 19, 2021 12:10 pm
by GerhardH
I have overlooked the big yellow notice. Those who can read have a clear advantage - and will find .... Many, many thanks. It works.