How to setup single e-mail address for all / several projects?
Set incoming mail server parameters
Fill in the form at project Settings, Helpdesk tab, section Mail server settings
You can fetch mail with the following ruby rake task:
$ bundle exec rake redmine:email:helpdesk:receive RAILS_ENV=production allow_override=project
On UNIX systems this can be automized with a cron job . Customize and add the following line to the
crontab file (in this example, task will be executed every 5 minutes):
*/5 * * * * redmineuser rake -f /path/to/redmine/appdir/Rakefile redmine:email:helpdesk:receive RAILS_ENV="production" allow_override=project
If your system is running on Windows, refer to this article .
allow_override option specifies which issue attributes can be updated through e-mail. In our case, those can be
project,status,tracker,category,priority (or a subset thereof).
allow_override=project enables us to specify project name, which is useful when you use a single mail address for multiple projects. Incoming mails (issues) can be assigned to proper one by containing the line
Project: Project Name
After this setup, you can update issues by responding to the email notification. For example:
... produces the following result (after mail processing takes place):
If you want to send only selected messages as emails, then by the end of the body add
@@sendmail@@ command. This, however, will only work with the default redmine mail receiving task:
$ bundle exec rake redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar firstname.lastname@example.org password=xxx
The respective line for the
crontab file is
*/5 * * * * redmineuser rake -f /path/to/redmine/appdir/Rakefile rake redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar email@example.com password=xxx