olia-dev / kopano-webapp-fetchmail

The Plugin allows the user to configure one or more accounts to be polled via fetchmail inside of Kopano WebApp.
Other
7 stars 6 forks source link

kopano-webapp-fetchmail

The Plugin allows the user to configure one or more accounts to be polled via fetchmail inside of Kopano WebApp.

It's recommended to read the fetchmail documentation (http://www.fetchmail.info/fetchmail-man.html or man fetchmail) to understand how fetchmail delivers emails to the end user. With this plugin the daemon retrieves and distributes the emails via a MTA on the host machine.

Why use the Plugin?

It unifies your mailbox. Instead of checking multiple different email addresses, they can all be retrieved and delivered to your kopano mailbox. Also if your MTA is configured to check for Spam (spamassassin) or Viruses (clamav), you can be sure that all your email is checked before delivery.

Screenshots

Fetchmail Plugin Settings: Fetchmail Plugin Settings Create a new Account: Create new Account Account Status in Plugin Settings and Log Message: Fetchmail Plugin Settings with Error Modify Account and Log Message

Requirements

How to install

Configuration

How to enable

How to disable

Backup

How to change the AES Key used for Password Encryption of an existing Installation

If you need to change the Key used to encrypt the Passwords stored in the Database for any reason (Security Breach, etc), a function "changeAESKey" is implemented in the class PluginFetchmailModule. To call this function, you have to create a simple PHP script and execute it.

An example, of how to call this function:

<?php

$oldkey="changethis!";
$newkey="changethis!";

define('BASE_PATH', "/usr/share/kopano-webapp/");
define('PATH_PLUGIN_DIR' , "plugins" );

require_once (BASE_PATH . PATH_PLUGIN_DIR . "/fetchmail/config.php");
require_once (BASE_PATH . PATH_PLUGIN_DIR . "/fetchmail/php/class.pluginfetchmailmodule.php");

$fetchmailModule = new PluginFetchmailModule(null, null);

$fetchmailModule->changeAESKey($oldkey, $newkey);

?>

Save the above code to (for example): /usr/share/kopano-webapp/plugins/fetchmail/changeAESKey.php (Modify the parameters $oldkey and $newkey). Afterwards call it via CLI: php /usr/share/kopano-webapp/plugins/fetchmail/changeAESKey.php

Remember to change the parameter PLUGIN_FETCHMAIL_PASSWORDS_AES_KEY in /usr/share/kopano-webapp/plugins/fetchmail/config.php !

How to uninstall

Notes

Feedback and Bug Reports are always welcome!

Project Contributors

Andreas Brodowski (aka dw2412), haggybear

License

The Fetchmail Plugin is available under the GNU AGPLv3 license. See LICENSE file.