A few smtp servers in configuration.yml
Added by Dmitry Yashin about 1 year ago
Hello, community!
Can anybody help me?
I have a few projects in my Redmine.
Each project must have different email-address (on different mail-servers) for sent notifications.
For example:
Project 1: support@gmail.com
Project 2: support@yahoo.com
Project 3: support@hotmail.com
etc.
How can I realize that?
Can I use a few smtp servers for each project via plugin or configuration.yml?
Thanks for answers. :)
Replies (5)
RE: A few smtp servers in configuration.yml
-
Added by Mayama Takeshi about 1 year ago
Hi, I never had this need but this was discussed before and some people mentioned some hacks and some plugins:
https://www.redmine.org/issues/4462
https://www.redmine.org/issues/7349
https://github.com/ajwalters/redmine_project_specific_email_sender
The sender email-address can be adjusted (optional, per project)
https://github.com/jfqd/redmine_helpdesk
RE: A few smtp servers in configuration.yml
-
Added by Dmitry Yashin about 1 year ago
Hi, Mayama!
Thanks for you reply.
I read this issues (in your post) and I know about both of these plugins.
I already use plugin redmine_helpesk. It allows set specific sender emails per project, but all of these emails should belong to one mail-server (with the same domain after @).
But I want to set sender-emails with different domain-names.
RE: A few smtp servers in configuration.yml
-
Added by Mayama Takeshi about 1 year ago
Hi, i tried to use latest commit 8e3331aec of redmine_helpdesk with my redmine 5 installation but I could not make it work.
I could set sender email with different domain per project but it always used the default redmine email address.
However, the fact is that redmine_helpdesk didn't prevent setting something like:
Project 1: support@gmail.com
Project 2: support@yahoo.com
Project 3: support@hotmail.com
so assuming you have a working installation of redmine_helpdesk, I think the solution would be to run a local SMTP server that would receive such email requests and relay them to correct remote SMTP server based on the sender address domain (gmail, yahoo etc).
RE: A few smtp servers in configuration.yml
-
Added by Rohit Thakral about 1 year ago
So this seems to be my lucky day as we have the same set of requirements and I came to the forum to post this as a new thread. Dmitry, thank you for saving me from creating another post around this.
We are using Redmine 5.0.3-stable and the redmine_helpdesk plugin. First of all, the outbound email address change on the project page never worked for us but our requirements are to send from a server which is authenticated to a different domain etc and hence very similar to those highlighted here.
So this is what we have done so far, we asked a developer to write a new plugin for us, and the plugin gives us:
- A configuration in the backend to define new mail servers in the backend of Redmine. It supports creating tokens etc for secure mailboxes such as O365 and Google Apps.
- A setting on the project page to select the mailbox (default or others)
Once we have set up a new mailbox and selected it in the dropdown the project should ideally email from that particular email address. The plugin is done and ready but we are having issues with some emails when the email address is switched without notification and the user creation emails are not going out anymore.
I am happy to collaborate with a good developer who can support us with this and glad to put this plugin in the public/open-source domain. I am not a developer but a sysadmin and I can help with documentation etc.
Any thoughts?