The company where I work moved from Lotus Notes to Microsoft Exchange with Outlook Web App. With Lotus Notes, my PHP script works just fine, since 2014. Since the move to MS Exchange, PHP's imap_open
cannot access this mail account anymore.
My PHP code looks like this:
$emHOST = '{mail.company.com/tls/novalidate-cert}';
$emUSER = 'e-mail@company.com';
$emPASW = 'password';
$emPOP = imap_open($emHOST, $emUSER, $emPASW);
print_r(imap_errors());
Whatever I try via PHP, I get 'LOGIN failed':
Array
(
[0] => LOGIN failed.
[1] => LOGIN failed.
[2] => LOGIN failed.
[3] => Too many login failures
)
I tried with /ssl
instead of /tls
but that gives a timeout on port 993.
I can, however, login with the same username and password via https://mail.company.com/owa in a web browser.
Does anyone have some tips for me to get this thing running again? Thanks!
After a week of waiting it turns out that responsible IT-department has now finally configured OWA correctly. I can use '{mail.company.com:143}'
to log in the IMAP mailbox.