Closed jbostoen closed 1 year ago
Combodo released a version of an O365 connector.
It uses some external libraries, including one which supposedly replaces PHP IMAP extension (although for some parts the documentation of the library mentions PHP IMAP extension might enhance functionality!)
There are still note worthy issues though: https://github.com/Webklex/php-imap/issues/143
It also contains some libraries for MS O365/Azure specific authentication.
To do:
Overall the Combodo implementation looks like a great start, although I hope it can be more flexible at some point (Google?) and depend less on third party libraries.
Waiting for Combodo's implementation on a new mail library in new iTop 2.7 and 3.0 releases, since it currently looks like that will be included in the core iTop (and their Mail to Ticket Automation will build upon it)
Combodo already released iTop 2.7.7 introducing OAuth2 support. However, iTop 3.0.2 (earlier 3.0 versions don't have it) will only be released at the end of August.
Therefore, steps are already being taken to make sure this fork of Combodo's Mail to Ticket Automation also supports OAuth2.
However, it seems with Combodo's extension the original IMAP implementation is untouched; while they do add a new one using Laminas for IMAP + OAuth2.
Two main actions remain:
Anyone interested in early testing, please let me know; especially interested in MS O365 / Exchange Online and GMail environments.
Support for no validation of certificates + specifying SSL/TLS:
// Connecting with Imap:
$mail = new Imap([
'host' => '192.168.xxx.xxx',
'user' => 'user1',
'password' => 'p@ssword',
'ssl' => 'TLS',
'novalidatecert' => true,
]);
Check if something can be done regarding other IMAP options such as authuser, user: https://github.com/jbostoen/itop-jb-mail-to-ticket-automation-v2/blob/master/documentation/configuration.md#hints-on-office-365-with-shared-mailbox
Progress has been made in a separate branch!
Doing some more checks, but it looks to properly process and move/delete (if required) the messages from a MS O365 OAuth mailbox.
Expect a formal release soon!
This was released already.