Office 365 Connection refused after Disconnected Imap

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
eleanor
Posts: 2
Joined: Mon May 23, 2022 11:11 am

Office 365 Connection refused after Disconnected Imap

Post by eleanor »

hello everyone,\
i'm new to hesk. 3.2.5
I got imap working on office 365.
It also reads the mail neatly, but gives 4 error messages with every connection.

it give the error after its disconnect message?

i try it from the shell.

Code: Select all

php hesk_imap.php
<pre>Connected to the IMAP server &quot;{outlook.office365.com:993/imap/ssl}&quot;.</pre>
<pre>Unread messages found: 1</pre>
<pre>Ticket 2Z8-9RW-B6B9 created/updated.</pre>
<br /><br />

<pre>Disconnected from the IMAP server.</pre>
<pre>Can't connect to AMS-efz.ms-acdc.office.com,993: Connection refused</pre>
<pre>Can't connect to AMS-efz.ms-acdc.office.com,993: Connection refused</pre>
<pre>Can't connect to AMS-efz.ms-acdc.office.com,993: Connection refused</pre>
<pre>Can't connect to AMS-efz.ms-acdc.office.com,993: Connection refused</pre>
what can i do.

Thanks for helping
Wilco
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Office 365 Connection refused after Disconnected Imap

Post by Klemen »

Not sure what is happening there, the "connection refused" indeed come after Hesk disconnects from the server. After the imap_close() call, Hesk does not establish any additional connections.

Maybe something on your server is trying to keep connections active, or is pinging active connections? Malware, virus scanner, 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
eleanor
Posts: 2
Joined: Mon May 23, 2022 11:11 am

Re: Office 365 Connection refused after Disconnected Imap

Post by eleanor »

its only if i run the script?

and if i disable debug then:

Code: Select all

 php hesk_imap.php
<h2>An error occured.</h2><p>For details turn <b>Debug mode</b> ON in settings and run this script again.</p>
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Office 365 Connection refused after Disconnected Imap

Post by Klemen »

Ah, OK, this probably means the script was able to connect to the IMAP server only on 5th attempt - the first 4 were unsuccessful and the errors are displayed at the end.

Not sure why first 4 would fail and the 5th would succeed? If it works though, you could ignore these errors.
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
Post Reply