Project

General

Profile

How to set DMSF notifications "from"

Added by Marco Nobler over 11 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 163.162.154.71 at 2012-07-12 15:13:49) [POST]
Parameters: {"action"=>"entries_email", "controller"=>"dmsf", "id"=>"ct001", "email"=>{"zipped_content"=>"/tmp/120712151247_dmsf_email_sent_documents.zip", "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 http://163.162.187.70/dmsf/ct001?folder_id=2
Completed in 606ms (DB: 10) | 302 Found [http://163.162.187.70/dmsf/entries_email/ct001?folder_id=2]

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?
thanks
Marco Nobler


Replies (2)

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

Afternoon:

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 11 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":
development:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
address: smtp.telecomitalia.it
  1. address: smartrelay1.griffon.local
    port: 25
    domain: telecomitalia.it
    authentication: :login
  2. authentication: :none
    user_name: xxxxxxxxx
    password: yyyyyyyy

any suggestion about it?
bye
Marco

    (1-2/2)