Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Can I configure multiple receiving email addresses?

Can I configure multiple receiving email addresses?

Added by Patrick Regan over 8 years ago

Is it possible to configure multiple receiving email accounts? For example, project1@example.com, project2@example.com…


Replies (1)

RE: Can I configure multiple receiving email addresses? - Added by Sascha Rüger over 7 years ago

Yo or Nes ;-)
Officially no you can’t.
But I solved this for our setup with a kind of ugly hack:

Since we have openproject running as a container on Openshift, I’m not familiar with a ‘normal’ setup… but you could try this:

In the repo you find a folder called ‘docker’ and inside there is a bash script called ‘cron’ , I suppose this is for fetching mails from the one (and only) mail config you can enter in your openproject settings.

This script uses variables like ${IMAP_USERNAME} and ${IMAP_PASSWORD} etc.

Now you could create more of those variables like IMAP_USERNAME_2 and IMAP_PASSWORD_2 etc
and finally clone the line including the rake task:

bundle exec rake redmine:email:receive_imap \ host="${IMAP_HOST}" \ username="${IMAP_USERNAME}" \ password="${IMAP_PASSWORD}" \ ssl=${IMAP_SSL} \ port=${IMAP_PORT} \ allow_override="${IMAP_ALLOW_OVERRIDE}"
and then replace each occurance of IMAP_USERNAME by IMAP_USERNAME_2 and so on and so on.:
bundle exec rake redmine:email:receive_imap \ host="${IMAP_HOST}" \ username="${IMAP_USERNAME_2}" \ password="${IMAP_PASSWORD_2}" \ ssl=${IMAP_SSL} \ port=${IMAP_PORT} \ allow_override="${IMAP_ALLOW_OVERRIDE}"

In each loop, your rake task should then fetch mails from all of your mail accounts that you added this way :-)

  • (1 - 1/1)
Loading...