Giter Site home page Giter Site logo

frederic34 / fetchmail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pf4public/fetchmail

0.0 3.0 0.0 149 KB

Roundcube Fetchmail Plugin

Home Page: http://pf4public.github.io/fetchmail

PLpgSQL 7.01% JavaScript 10.67% PHP 67.20% CSS 5.64% HTML 9.48%

fetchmail's Introduction

Roundcube fetchmail plugin

Roundcube fetchmail plugin is a Roundcube plugin, which allows users to download their mail from external mailboxes.

Screenshot

Screenshot

Prerequisites

  1. Roundcube
  2. Database (PostgreSQL or MySQL)
  3. fetchmail itself
  4. Postfix Admin provides convenient fetchmail.pl script

Installation

  1. First you need to install fetchmail itself. For Debian you can do so by sudo apt-get install fetchmail
  2. Next you should extract Roundcube fetchmail plugin archive into your Roundcube plugins folder creating "fetchmail" folder there.
  • You can do so either by using composer for which there is composer.json, still you need to follow further installation steps since those could not be accomplished with composer
  • Alternatively you can download needed release from Releases page unpacking it accordingly
  1. After that you need to enable newly installed plugin by adding it to Roundcube plugin list. For Debian related config file is /etc/roundcube/main.inc.php and relevant setting is

    $rcmail_config ['plugins'] = array();

Appending , 'fetchmail' to the list of plugins will suffice.

  1. Unless default settings are suitable for you, you need to configure the plugin. See the settings section for more information.

  2. You need to create additional table in your database using one of the supplied .sql files. Another possibility is to use Postfix Admin table if you have it installed. If using PostgreSQL you may use schemas to share fetchmail table between Roundcube and Postfix Admin. Namely creating it in public schema, whereas every other table in it's appropriate schema, like roundcube and postfixadmin. Please refer to the documentation for more information.

  3. You will need fetchmail.pl script from Postfix Admin distribution. If you don't have Postfix Admin installed, you can obtain required fetchmail.pl script from their repo trunk / ADDITIONS / fetchmail.pl. But be sure to get at least revision [r1766], at which proper handling of active field introduced. Place it to where apropriate. For example, where your mailboxes are, e.g. /var/mail.

  4. Next adapt fetchmail.pl to your config. Most likely you want to change these settings:

    # database backend - uncomment one of these
    our $db_type = 'Pg';
    #my $db_type = 'mysql';
    
    # host name
    our $db_host="127.0.0.1";
    # database name
    our $db_name="postfix";
    # database username
    our $db_username="mail";
    # database password
    our $db_password="CHANGE_ME!";
  5. Next step is to configure cron for regular mail checking with sudo crontab -u mail -e. For example for 5 minute intervals add this: */5 * * * * /var/mail/fetchmail.pl >/dev/null. Worth noting that even if you configure cron for a 5 minutes interval, fetchmail will still abide user configured checking interval. As a result setting bigger intervals here manifests them as intervals available to fetchmail, that is setting 0 * * * * here overrides any user setting wich is less then hour

  6. You might also need to install liblockfile-simple-perl and ( libsys-syslog-perl or libunix-syslog-perl ) on Debian-based systems.

  7. Lastly there might be need to do sudo mkdir /var/run/fetchmail; sudo chown mail:mail /var/run/fetchmail

Settings

In case you need to edit default-set settings, you may copy config.inc.php.dist to config.inc.php and edit setings as desired in the latter file, which will override defaults.

  • $rcmail_config ['fetchmail_limit'] limits the number of external mailboxes per user allowed. Default is 10.
  • $rcmail_config ['fetchmail_folder'] whether to allow users to specify IMAP folder they wish to download mail from. Default is false.
  • $rcmail_config ['fetchmail_mda'] allows you to specify mda field for fetchmail. This could be useful in case you want to deliver downloaded mail via MDA or LDA directly, rather than forwarding via SMTP or LMTP. For more information please refer to fetchmail manual and fetchmail.pl script. Default is '', i.e. not used.

License

This software distributed under the terms of the GNU General Public License as published by the Free Software Foundation

Further details on the GPL license can be found at http://www.gnu.org/licenses/gpl.html

By contributing to Roundcube fetchmail plugin, authors release their contributed work under this license

Acknowledgements

Original author

Arthur Mayer, https://github.com/flames

List of contributors

For a complete list of contributors, refer to Github project contributors page

Currently maintained by

fetchmail's People

Contributors

flames avatar frederic34 avatar internethering avatar pf4public avatar puzich avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.