Defect #8733

Sending email fails when one of members has illegal characters in email address

Added by Konrad Kosmowski over 6 years ago. Updated almost 3 years ago.

Status:ClosedStart date:2011-07-01
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution:Duplicate Affected version:1.2.0

Description

Hello everybody,

When adding or modifying an issue (or anything that generates email notification for that matter) email notifications were not sent.

I've analyzed the problem and it seems like when a user sets his email to contain national characters f.e. "paweĊ‚@kosmosik.net" and he is a member in project entire notification (to all members will be not send).

I think it is Redmine or maybe RoR bug but I am not a Ruby person to debug it throughly.

When I set config.action_mailer.logger to log entire message to file the generated message lacks any "To:" or "BCC:" headers - basically it lacks recipients.

When the underlying Ruby SMTP class processes the message it gets an error from SMTP server:

Net::SMTPSyntaxError (501 5.1.3 Bad recipient address syntax
):
  /usr/lib/ruby/1.8/net/smtp.rb:942:in `check_response'
  /usr/lib/ruby/1.8/net/smtp.rb:911:in `getok'
  /usr/lib/ruby/1.8/net/smtp.rb:854:in `rcptto'
  /usr/lib/ruby/1.8/net/smtp.rb:835:in `rcptto_list'
  /usr/lib/ruby/1.8/net/smtp.rb:833:in `each'
  /usr/lib/ruby/1.8/net/smtp.rb:833:in `rcptto_list'
  /usr/lib/ruby/1.8/net/smtp.rb:654:in `sendmail'
  /usr/lib/ruby/1.8/net/smtp.rb:526:in `start'
  app/models/mailer.rb:312:in `deliver!'
  app/models/issue_observer.rb:20:in `after_create'
  /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers'
  /usr/lib/ruby/1.8/observer.rb:184:in `each'
  /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'
  app/controllers/issues_controller.rb:139:in `create'
  public/dispatch.fcgi:24

On SMTP server side I get:

Jul  1 13:22:33 p069000xsvm162 postfix/smtpd[22237]: warning: Illegal address syntax from localhost.localdomain[127.0.0.1] in RCPT command: <>

Some information about my setup:

# gem list

*** LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
fcgi (0.8.8)
i18n (0.4.2)
rack (1.1.2)
rails (2.3.11)
rake (0.8.7)

Related issues

Related to Redmine - Defect #7917: Creating users via email fails if user real name containe... Closed 2011-03-18
Related to Redmine - Defect #8157: Redmine do not send notification emails if a recipients e... New

History

#1 Updated by Etienne Massip over 6 years ago

  • Category set to Email notifications

#2 Updated by Konrad Kosmowski over 6 years ago

I think it is strictly related to #8157.

#3 Updated by Go MAEDA almost 3 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Konrad Kosmowski wrote:

I think it is strictly related to #8157.

Indeed.

#4 Updated by Go MAEDA almost 3 years ago

  • Related to Defect #8157: Redmine do not send notification emails if a recipients email address is not valid added

Also available in: Atom PDF