POP3 an IMAP connecting to Office365 account
Posted: Tue Jun 14, 2022 6:46 pm
Script URL:
Version of script: 3.2.5
Hosting company: Krystal.uk
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I am trying to configure POP3 or IMAP Fetching using a Office 365 fully licenced user mailbox with POP and IMAP turn on.
For POP3 I've tried the following settings in HESK:
Host: outlook.office365.com
Port: 995
TLS
email address and password of the account I wish to check for messages. (below I have changed these to xyz)
With the above I get the following error:
Error: Password error: Logon failure: unknown user name or bad password.
Connecting to outlook.office365.com ...
S +OK The Microsoft Exchange POP3 service is ready. [TABPADIAUAAyADYANQBDAEEAMAAxADMAMQAuAEcAQgBSAFAAMgA2ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
C USER xyz@xyz.com
S +OK
C PASS xyz
S -ERR Logon failure: unknown user name or bad password.
However, I know the username and password is correct as I am using the same credentials for the SMTP connection which is working and I am also able to log into OWA with the same credentials.
For IMAP I've tried the following settings in HESK:
Host: outlook.office365.com
Port: 993
SSL
Do not validate certificate
email address and password of the account I wish to check for messages.
With the above I get the following error:
Error: Can not authenticate to IMAP server: AUTHENTICATE failed.
Retrying PLAIN authentication after AUTHENTICATE failed.
Retrying PLAIN authentication after AUTHENTICATE failed.
Can not authenticate to IMAP server: AUTHENTICATE failed.
It seems whatever combination of settings I try I cannot get either of these to work.
I've checked with my web host and they are not blocking any of the above ports.
Any suggestions on what the issue might be or what to try next.
Many thanks
Version of script: 3.2.5
Hosting company: Krystal.uk
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I am trying to configure POP3 or IMAP Fetching using a Office 365 fully licenced user mailbox with POP and IMAP turn on.
For POP3 I've tried the following settings in HESK:
Host: outlook.office365.com
Port: 995
TLS
email address and password of the account I wish to check for messages. (below I have changed these to xyz)
With the above I get the following error:
Error: Password error: Logon failure: unknown user name or bad password.
Connecting to outlook.office365.com ...
S +OK The Microsoft Exchange POP3 service is ready. [TABPADIAUAAyADYANQBDAEEAMAAxADMAMQAuAEcAQgBSAFAAMgA2ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
C USER xyz@xyz.com
S +OK
C PASS xyz
S -ERR Logon failure: unknown user name or bad password.
However, I know the username and password is correct as I am using the same credentials for the SMTP connection which is working and I am also able to log into OWA with the same credentials.
For IMAP I've tried the following settings in HESK:
Host: outlook.office365.com
Port: 993
SSL
Do not validate certificate
email address and password of the account I wish to check for messages.
With the above I get the following error:
Error: Can not authenticate to IMAP server: AUTHENTICATE failed.
Retrying PLAIN authentication after AUTHENTICATE failed.
Retrying PLAIN authentication after AUTHENTICATE failed.
Can not authenticate to IMAP server: AUTHENTICATE failed.
It seems whatever combination of settings I try I cannot get either of these to work.
I've checked with my web host and they are not blocking any of the above ports.
Any suggestions on what the issue might be or what to try next.
Many thanks