Plugins Directory » Redmine Mail Checker

Author: Nicolas Rodriguez
Website: http://jbox-web.github.io/redmine_mail_checker/
Code repository: https://github.com/jbox-web/redmine_mail_checker
Registered on: 2015-01-30 (almost 7 years ago)
Current version: 1.0.0
Compatible with: Redmine 3.0.x, 2.6.x, 2.5.x, 2.4.x
User ratings:   (2)

This plugin replaces Redmine rake task to check mails.

Why?

Running periodicaly bundle exec rake redmine:email:receive_imap to check your mails leads to high memory consumption : Redmine is loaded twice, once for your webserver and once for the cron task.
This is not very efficient : for VPS with small memory size this can lead to memory saturation and the intervention of the OOM Killer who will kill the job.

Installation notes

1. Install this plugin with git clone

redmine$ cd REDMINE_ROOT/plugins
redmine$ git clone https://github.com/jbox-web/redmine_mail_checker.git
redmine$ cd redmine_mail_checker/
redmine$ git checkout 1.0.0

No need of db:migrate or bundle update, just restart Redmine.

2. Enable WS for mail reception (in Administration -> Settings -> Incoming emails) and generate an API key.

3. Configure your mailbox settings (in Administration -> Plugins -> Configure)

4. Then configure your crontab to call a specific url to trigger mailbox check instead of bundle exec rake redmine:email:receive_imap

curl http://redmine.example.net/check_mails?key=<API_KEY>

Changelog

1.0.0 (2015-01-31)

Compatible with Redmine 3.0.x, 2.6.x, 2.5.x, 2.4.x.

First release!

redmine_mail_checker-1.0.0.tar.gz (4.34 KB) Nicolas Rodriguez, 2015-01-31 00:44

User ratings

  by Will Holland almost 6 years ago

Works perfectly for me. Stops the server from running out of memory on a regular basis!

  by Nicolas Rodriguez almost 7 years ago

Great plugin! ;)