Roundcube imapsync plugin is a Roundcube plugin, which allows users to sync their mail from external mailboxes while auto-syncing all IMAP-Folders. Including a completely rewritten ( which is much more secure.

Installs: 170

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 3

Forks: 11

Open Issues: 8

Type: roundcube-plugin

1.1.2 2017-03-14 06:55 UTC


#Roundcube imapsync plugin

Roundcube imapsync plugin is a Roundcube plugin, which allows users to sync their mail from external mailboxes

- really fast and reliable, as imapsync is
- auto-syncing all IMAP-Folders
- including a completely rewritten and much more secure Perl Script




  1. Roundcube
  2. Database (e.g. MySQL)
  3. imapsync itself


  1. First you need to install imapsync itself. For Debian you can do so by

    apt-get install imapsync

    or get it from the source (recommended), e.g. for Debian/Ubuntu:

    apt-get update
    apt-get install cpanminus git makepasswd rcs perl-doc libio-tee-perl git libmail-imapclient-perl libdigest-md5-file-perl libterm-readkey-perl libfile-copy-recursive-perl build-essential make automake libunicode-string-perl libauthen-ntlm-perl libcrypt-ssleay-perl libdigest-hmac-perl libfile-copy-recursive-perl libio-compress-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libmodule-scandeps-perl libnet-ssleay-perl libpar-packer-perl libreadonly-perl libterm-readkey-perl libtest-pod-perl libtest-simple-perl libunicode-string-perl liburi-perl
    cpanm -i JSON::WebToken Test::MockObject Unicode::String Data::Uniqid
    cd /tmp
    git clone
    cd imapsync
    mkdir dist
    make install
  2. Next you should extract the Roundcube imapsync plugin archive into your Roundcube plugins folder creating "imapsync" 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 clone this github repo (recommended), e.g.:
    apt-get install git
    cd /path/to/your/roundcube/plugins/
    git clone ./imapsync
  3. After that you need to enable newly installed plugin by adding it to Roundcube plugin list. For Debian related config file is /etc/roundcube/ (for Plesk it is and relevant setting is

    $config['plugins'] = array('plugin1','plugin2',[...],'imapsync');

Appending , 'imapsync' 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 (e.g. roundcube) database using the supplied mysql.initial.sql file. Hint: if you are using Plesk you have to open the mysql command line with

    mysql -uadmin -p`cat /etc/psa/.psa.shadow`


    • Change the database to whatever you wanna use, e.g.:
    use roundcubemail;
    • Open the mysql.initial.sql and copy it to the mysql shell.
    • Create a user and give necessary rights to the database and table, e.g.:
    CREATE USER 'imapsync'@'' IDENTIFIED BY 'onepassword';
    GRANT ALL PRIVILEGES ON roundcubemail.imapsync TO 'imapsync'@'';
  3. Open the /bin/ Folder. Rename the config file from config.sample to config.conf. Place the /bin/ Folder to where apropriate or let it in his place - your security, your choice.

  4. Next open config.conf and adapt it to your config made in Step 5.

    my $db_host="";
    my $db_name="roundcubemail";
    my $db_username="imapsync";
    my $db_password="onepassword";
  5. Next step is to configure cron for regular mail checking with sudo crontab -u mail -e or change your /etc/crontab. For example for 5 minute intervals add this: */5 * * * * /var/mail/ >/dev/null 2>&1. Worth noting that even if you configure cron for a 5 minutes interval, imapsync 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.

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

##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

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

##Acknowledgements ###Original author

Arthur Mayer, (fork)

Christian Nowak,

Christian Bischoff,

###List of contributors

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

####Currently maintained by