How to set DMSF notifications "from"

Added by Marco Nobler over 9 years ago

Hi all,
i have a problem with the DMSF plugin (redmine 1.3.2, DMSF 1.2.2): when an authenticated redmine user try to send notifications we get (production.log) this message:

Processing DmsfController#entries_email (for at 2012-07-12 15:13:49) [POST]
Parameters: {"action"=>"entries_email", "controller"=>"dmsf", "id"=>"ct001", "email"=>{"zipped_content"=>"/tmp/", "subject"=>"prova notifica RFC", "body"=>"", "cc"=>"", "to"=>"......"}, "commit"=>"Send", "folder_id"=>"2", "authenticity_token"=>"qGdHPC4T6UHKYqtIugdPAZvc5DNMYRB210hO3KXCcjI="}
Sending email notification to: ........
The following error occured while sending email notification: "550 5.7.1 Client does not have permissions to send as this sender
". Check your configuration in config/configuration.yml.
Redirected to
Completed in 606ms (DB: 10) | 302 Found []

As i understood the authenticated user doesn't have mail send permissions: how can i use the redmine mail sender setting (config.yml) to send emails from DMSF plugin?
Marco Nobler

Replies (2)

RE: How to set DMSF notifications "from" - Added by Daniel Munn over 9 years ago


The from declaration can be found in: redmine_dmsf/app/models/dmsf_mailer.rb

If you look at line 53, from is set as from user.mail if you were to comment the line out, believe it should revert to default.

RE: How to set DMSF notifications "from" - Added by Marco Nobler over 9 years ago

thanks Daniel for your reply, i tried as you suggested and it works: the notification email is sent using the default mailbox specified for notification, with credentials specified in "configuration.yml".
I think it's a strange behavoiur: i cannot specify, from inside the DMSF plugin, as mail sender the authenticated user.
In other words: what configuration enable me to use the authenticated mailbox as mail sender?

This is my "configuration.yml":
delivery_method: :smtp
tls: true
enable_starttls_auto: true
  1. address: smartrelay1.griffon.local
    port: 25
    authentication: :login
  2. authentication: :none
    user_name: xxxxxxxxx
    password: yyyyyyyy

any suggestion about it?