meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:oauth2 [2024/07/28 22:16] – [The Settings page] duncanc | plugin:oauth2 [2024/11/20 10:11] (current) – [Installation] duncanc | ||
---|---|---|---|
Line 25: | Line 25: | ||
===== Installation ===== | ===== Installation ===== | ||
- | You need to enable Common Plugin before enabling this plugin | + | The plugin requires php version 8 and phpList version 3.6.14 or later. |
- | https:// | + | |
Install this plugin using the package URL | Install this plugin using the package URL | ||
https:// | https:// | ||
- | |||
===== Configuration ===== | ===== Configuration ===== | ||
- | ==== Change | + | ==== Changes |
The OAuth2 Redirect URL is used to pass control back to the application, | The OAuth2 Redirect URL is used to pass control back to the application, | ||
Line 52: | Line 50: | ||
</ | </ | ||
+ | === Use IMAP instead of POP3 === | ||
+ | The plugin uses a package, php-imap2, to retrieve emails from the mailbox. Unlike the php IMAP extension the package does not support POP3, only IMAP. Therefore the mailbox connection settings in config.php will probably need to be changed. For example for Gmail use | ||
+ | |||
+ | <code php> | ||
+ | $bounce_mailbox_host = ' | ||
+ | $bounce_mailbox_port = ' | ||
+ | </ | ||
+ | |||
+ | instead of | ||
+ | |||
+ | <code php> | ||
+ | $bounce_mailbox_port = ' | ||
==== The Settings page ==== | ==== The Settings page ==== | ||
After enabling the plugin there will be an OAuth2 group on the Settings page. You need to enter the fields used when registering the application with Microsoft or Google | After enabling the plugin there will be an OAuth2 group on the Settings page. You need to enter the fields used when registering the application with Microsoft or Google | ||
- | * Tenant Id | + | * Tenant Id (only for Microsoft) |
* Client Id | * Client Id | ||
* Client Secret | * Client Secret | ||
Line 62: | Line 72: | ||
- | If phplist is installed in the default location then the URL will be similar to this, otherwise adjust for the actual location | + | If phplist is installed in the default location then the Redirect |
https:// | https:// | ||
- | You can select to use OAuth2, instead of the normal password verification, | ||
- | Currently the plugin supports having an access token for only one email address, so that email address would need to be used for both sending and receiving emails if this setting is set to Yes. | ||
- | The plugin previously had settings for the IMAP mailbox/ | + | === Redirect URL with Microsoft Azure === |
+ | Microsoft has restrictions on whether the redirect URL may contain query parameters, see [[https:// | ||
+ | |||
+ | If your account means query parameters in the redirect URL are not allowed then the default value shown above will be rejected when you try to add it within Azure. You will need to use an htaccess redirect rule to work-around this. | ||
+ | |||
+ | In Azure set the redirect URL to something similar to '' | ||
+ | |||
+ | < | ||
+ | # OAuth2 plugin | ||
+ | RewriteCond %{REQUEST_URI} | ||
+ | RewriteRule ^(.*)$ https:// | ||
+ | </ | ||
+ | |||
+ | === Use Oauth2 when sending using SMTP === | ||
+ | |||
+ | You can select to use OAuth2 verification, | ||
+ | |||
+ | Currently the plugin supports having an access token for only one email address, therefore that email address must be used for both sending and receiving emails if this setting is set to Yes. In the config.php file these two values would need to be the same | ||
+ | <code php> | ||
+ | $bounce_mailbox_user = ' | ||
+ | |||
+ | $phpmailer_smtpuser = ' | ||
+ | </ | ||
===== Usage ===== | ===== Usage ===== | ||
Line 132: | Line 162: | ||
</ | </ | ||
- | To stop logging simply change DEBUG to OFF. | + | To stop logging simply change |