Project

General

Profile

Actions

Defect #15349

closed

Email Notification :: sendmail :: Missing destination address

Added by Richard Gomes about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Sympton:

When using method :sendmail, the resulting message does not contain the destination address.

config/configuration.yml
------------------------

production:
email_delivery:
delivery_method: :sendmail

The message below was generated, rejected and returned to the sender address. Notice that there are two fields "From:" but no field "To:".
There should have a field "To:" containing the email address of an user the administrator registered manually.

============================================================

A message that you sent contained no recipient addresses, and therefore no
delivery could be attempted.

------ This is a copy of your message, including all the headers. ------

Date: Thu, 14 Nov 2013 02:46:02 +0000
From:
From:
Message-ID: <>
Subject: Your Redmine account activation
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_5284396a45578_12715cd85c6618";
charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailer: Redmine
X-Redmine-Host: localhost:3000
X-Redmine-Site: Redmine
X-Auto-Response-Suppress: OOF
Auto-Submitted: auto-generated
List-Id: <redmine.apache.xkbmedia.com>
X-rewrote-sender:

----==_mimepart_5284396a45578_12715cd85c6618
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit

Your account information:
  • Login: rgomes
  • Password: XXXXXXXX

...

Actions #1

Updated by Richard Gomes about 11 years ago

Environment:
Redmine version 2.3.3.stable
Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter PostgreSQL
Redmine plugins:
no plugin installed

Actions #2

Updated by Richard Gomes about 11 years ago

Report about the same problem

See: https://github.com/mikel/mail/issues/70#issuecomment-2639987

It's a problem in Debian boxes.
Changing the default arguments, it's possible to circumvent the trouble.

Solution

Review your config/configuration.yml and make sure you define sendmail_settings arguments as shown below:

# default configuration options for all environments
default:
  email_delivery:    
    delivery_method: :sendmail
    sendmail_settings:
      arguments: "-i" 
Actions #4

Updated by Jean-Philippe Lang about 11 years ago

  • Status changed from New to Closed

Thanks for the update.

Actions

Also available in: Atom PDF