IMAP - Mail fetching from Linux Mail server

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
GerhardH
Posts: 3
Joined: Wed Apr 14, 2021 2:33 pm

IMAP - Mail fetching from Linux Mail server

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

Re: IMAP - Mail fetching from Linux Mail server

Post 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?
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
GerhardH
Posts: 3
Joined: Wed Apr 14, 2021 2:33 pm

Re: IMAP - Mail fetching from Linux Mail server

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

Re: IMAP - Mail fetching from Linux Mail server

Post 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.
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
GerhardH
Posts: 3
Joined: Wed Apr 14, 2021 2:33 pm

Re: IMAP - Mail fetching from Linux Mail server

Post 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.
Post Reply