Project

General

Profile

Redmine + Exim = Sends email to itself

Added by Роман Сoлдатов almost 12 years ago

Hello, I need help with redmine. It sends notification emails to itself. In exim main.log:
2012-12-27 20:56:07 1ToJYl-00018h-NI <= <> R=1ToJYl-00018f-Jk U=exim P=local S=4469 from <> for
2012-12-27 20:56:08 1ToJYl-00018h-NI => redmine <> R=procmail T=dovecot_lda
2012-12-27 20:56:08 1ToJYl-00018h-NI Completed

How to fix it? Thank you!


Replies (13)

RE: Redmine + Exim = Sends email to itself - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

First of all: I don't know exim. But I just googled a bit and came up with the following.

From the exim specification (http://exim.work.de/exim-html-3.20/doc/html/spec_51.html):

A delivery error message is shown with the sender address `<>', and if it is a locally-generated error message, this is normally followed by an item of the form R=<message id> which is a reference to the local identification of the message that caused the error message to be sent.

For locally generated messages, the H field is omitted, and the U field contains the login name of the caller of Exim.

So I bet what we're seeing here is a delivery error message, something like:
Redmine tried to write a letter (message) to someone (mailbox), but the postman (remote MTA) could not deliver the letter (message) and instead wrote back to redmine, that the delivering the message failed.

You can find out what's wrong by examining the msgid 1ToJYl-00018f-Jk.
Hope that helps.

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

Thank you for the reply.

In headers I fount this: A message that you sent contained no recipient addresses, and therefore no
delivery could be attempted. Example in attachment.

Redmine didnt insert recipients address into email :(

P.S. This troubles begins after migration from redmine 1.3 to 2.2

231.png (276 KB) 231.png

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

Yes, but it sends mail without recipient too :(

RE: Redmine + Exim = Sends email to itself - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

See #10955, perhaps that can help? I bet it's some kind of misconfiguration...

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

Thank you for the link but it doesnt help to solve the problem :(

How can i look, which command redmine execute when sending email? In message headers i fond this warning:

A message that you sent using the -t command line option contained no
addresses that were not also on the command line, and were therefore
suppressed. This left no recipient addresses, and so no delivery could
be attempted.

RE: Redmine + Exim = Sends email to itself - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

Please post the relevant part of your configuration.yml - what's your delivery_method?

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

Its standard.
  1. ==== Sendmail command
    production:
    email_delivery:
    delivery_method: :sendmail

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

Nothing. It does not try to send a message. Exim log is empty.

RE: Redmine + Exim = Sends email to itself - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

Sorry, no idea... Must be something in between ActionMailer and Exim...
What's your ruby and rails version? Perhaps someone else can help you.

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

  1. ruby -v
    ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  2. rails -v
    Rails 3.2.9

is there any utility to debug mail sending process?

RE: Redmine + Exim = Sends email to itself - Added by Роман Сoлдатов almost 12 years ago

OMG, fixed just after installation of sendmail.

yum install sendmail exim
chkconfig sendmail off

    (1-13/13)