RT intermittently fails to send mails after recent Debian Update

Hello,

I am using RT 4 on an Debian Stable using the backports builds. On Saturday we updated the installation to 4.0.5-3~bpo60+1 in response to the latest security advisory. Since then, we have intermittent problems in the mail communication originating from the RT system. Most of the mails work fine (perhaps 99%) but a few are rejected by Postfix with this error message:

            postfix/sendmail[31546]: fatal: www-data(33): No recipient addresses found in message header

There have not been any configuration changes over the weekend except for the RT upgrade off 4.0.5-1~bpo60+1.

Upon setting the log level to Debug I had the following case just a few minutes ago:

A new mail got in over the Mail gateway from User h.s@domainmailto:h.s@domain, a user already known to RT. The ticket got created correctly in the queue MwStFreigabe in question. It had no owner and h.s@domainmailto:h.s@domain as requestor. In addition, the queue has a.s@domainmailto:a.s@domain as AdminCC configured.

Now RT fails to send both mails related to this ticket creation:

First there is Scrip scrip 4, which is configured as “On Create, Notify AdminCcs with Global Template Transaction during TransactionCreate”, there is nothing user defined beyond this.

The template Transaction is of Type Perl and looks like this:

RT-Attach-Message: yes

{$Transaction->CreatedAsString}: Anfrage {$Ticket->id} wurde verändert.
Transaktion: {$Transaction->Description}
Bereich: {$Ticket->QueueObj->Name}
Besitzer: {$Ticket->OwnerObj->Name}
Klienten: {$Ticket->RequestorAddresses}
Status: {$Ticket->Status}
Priorität: {$Ticket->Priority}/{$Ticket->FinalPriority}
Ticket <URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} >

{$Transaction->Content()}

The mail doesn’t get sent with the error above. RT logs this (some messages about skipped scripts skipped for brevity), the transaction in question was the 964235 on Ticket 53293:

[Tue Jul 31 08:47:07 2012] [debug]: Committing scrip #4 on txn #964235 of ticket #53293 (/usr/share/request-tracker4/lib/RT/Scrips.pm:192)
[Tue Jul 31 08:47:07 2012] [debug]: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0x7fcf305d8918), id 964235 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:644)
[Tue Jul 31 08:47:07 2012] [debug]: Working on mailfield Cc; recipients are (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:660)
[Tue Jul 31 08:47:07 2012] [debug]: Subject: =?UTF-8?B?W013U3QgRnJlaWdhYmUgIzUzMjkzXSBjY2QgLSAxMjUzMDcwIC0gVW50ZXJu?=
=?UTF-8?B?ZWhtZXJlaWdlbnNjaGFmdCBwcsO8ZmVu?=
In-Reply-To:
References: RT-Ticket-53293@domain
Message-ID: rt-4.0.5-31511-1343724427-334.53293-4-0@domain
Precedence: bulk
X-RT-Loop-Prevention: CANCOM Tickets
RT-Ticket: CANCOM Tickets #53293
Managed-by: RT 4.0.5 (Request Tracker — Best Practical Solutions)
Bcc: a.s@domain
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=“utf-8”
X-RT-Original-Encoding: utf-8 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)
[Tue Jul 31 08:47:07 2012] [debug]: Removing deferred recipients from Cc: line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)
[Tue Jul 31 08:47:07 2012] [debug]: Setting deferred recipients for attribute creation (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)
[Tue Jul 31 08:47:07 2012] [debug]: Working on mailfield Bcc; recipients are a.s@domain (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:660)
[Tue Jul 31 08:47:07 2012] [debug]: Subject: =?UTF-8?B?W013U3QgRnJlaWdhYmUgIzUzMjkzXSBjY2QgLSAxMjUzMDcwIC0gVW50ZXJu?=
=?UTF-8?B?ZWhtZXJlaWdlbnNjaGFmdCBwcsO8ZmVu?=
In-Reply-To:
References: <RT-Ticket-53293@domain >
Message-ID: <rt-4.0.5-31511-1343724427-334.53293-4-0@domain >
Precedence: bulk
X-RT-Loop-Prevention: CANCOM Tickets
RT-Ticket: CANCOM Tickets #53293
Managed-by: RT 4.0.5 (Request Tracker — Best Practical Solutions)
Bcc: a.s@domain
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=“utf-8”
X-RT-Original-Encoding: utf-8 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)
[Tue Jul 31 08:47:07 2012] [debug]: Got user mail preference ‘Individual messages’ for user alexander.schmucker@cancom.de (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:681)
[Tue Jul 31 08:47:07 2012] [debug]: Removing deferred recipients from Bcc: line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)
[Tue Jul 31 08:47:07 2012] [debug]: Setting deferred recipients for attribute creation (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)
[Tue Jul 31 08:47:07 2012] [debug]: No recipients found for deferred delivery on transaction #964235 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:712)
[Tue Jul 31 08:47:07 2012] [info]: rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM #53293/964235 - Scrip 4 AdminCC beim Erstellen benachrichtigen (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:301)
[Tue Jul 31 08:47:07 2012] [error]: rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 (/usr/share/request-tracker4/lib/RT/Interface/Email.pm:465)
[Tue Jul 31 08:47:07 2012] [crit]: rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: Could not send mail with command /usr/sbin/sendmail -oi -t: rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 at /usr/share/request-tracker4/lib/RT/Interface/Email.pm line 466. (/usr/share/request-tracker4/lib/RT/Interface/Email.pm:470)
[Tue Jul 31 08:47:07 2012] [warning]: No EmailInputEncodings set, fallback to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)
[Tue Jul 31 08:47:07 2012] [warning]: No EmailInputEncodings set, fallback to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)
[Tue Jul 31 08:47:07 2012] [debug]: Converting ‘iso-8859-1’ to ‘utf-8’ for text/plain - Subjectless message (/usr/share/request-tracker4/lib/RT/I18N.pm:240)

I’d appreciate any help to get to the bottom of this.

Best regards,
Torben Nehmer
Torben Nehmer
Diplom Informatiker (FH)
Business System Developer
CANCOM Deutschland GmbH
Messerschmittstr. 20
89343 Scheppach
Germany
Tel.: +49 8225 - 996-1118
Fax: +49 8225 - 996-41118
torben.nehmer@cancom.demailto:torben.nehmer@cancom.de
www.cancom.dehttp://www.cancom.de/
CANCOM Deutschland GmbH
Sitz der Gesellschaft: Jettingen-Scheppach
HRB 10653 Memmingen
Geschäftsführer: Martin Mayr, Tobias Hörmann
Diese E-Mail und alle mitgesendeten Dateien sind vertraulich und ausschließlich für den Gebrauch durch den Empfänger bestimmt!
This e-mail and any files transmitted with it are confidential intended solely for the use of the addressee!

You missing recepient: as you can see in logs, rt is trying to send message
to To: “AdminCc of CANCOM Tickets Ticket #53293”:;, but there is no
recepient’s email address (and postfix drops such message). Please check
your users and verifu if all of them have email address and if in your
ticket correct address is given.On Tue, Jul 31, 2012 at 11:44 AM, Nehmer Torben Torben.Nehmer@cancom.dewrote:

Hello,****


I am using RT 4 on an Debian Stable using the backports builds. On
Saturday we updated the installation to 4.0.5-3~bpo60+1 in response to the
latest security advisory. Since then, we have intermittent problems in the
mail communication originating from the RT system. Most of the mails work
fine (perhaps 99%) but a few are rejected by Postfix with this error
message:****


            postfix/sendmail[31546]: fatal: www-data(33): No recipient

addresses found in message header****


There have not been any configuration changes over the weekend except for
the RT upgrade off 4.0.5-1~bpo60+1. ****


Upon setting the log level to Debug I had the following case just a few
minutes ago:****


A new mail got in over the Mail gateway from User h.s@domain, a user
already known to RT. The ticket got created correctly in the queue *
MwStFreigabe* in question. It had no owner and h.s@domain as requestor.
In addition, the queue has a.s@domain as AdminCC configured. ****


Now RT fails to send both mails related to this ticket creation:****


First there is Scrip scrip 4, which is configured as “On Create, Notify
AdminCcs with Global Template Transaction during TransactionCreate”, there
is nothing user defined beyond this. ****


The template Transaction is of Type Perl and looks like this:****


RT-Attach-Message: yes****



{$Transaction->CreatedAsString}: Anfrage {$Ticket->id} wurde verändert.***
*

Transaktion: {$Transaction->Description}****

 Bereich: {$Ticket->QueueObj->Name}****

 Betreff: {$Transaction->Subject || $Ticket->Subject || "(No subject

given)"}****

Besitzer: {$Ticket->OwnerObj->Name}****

Klienten: {$Ticket->RequestorAddresses}****

  Status: {$Ticket->Status}****

Priorität: {$Ticket->Priority}/{$Ticket->FinalPriority}****

Ticket <URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} >****



{$Transaction->Content()}****


The mail doesn’t get sent with the error above. RT logs this (some
messages about skipped scripts skipped for brevity), the transaction in
question was the 964235 on Ticket 53293:****


[Tue Jul 31 08:47:07 2012] [debug]: Committing scrip #4 on txn #964235 of
ticket #53293 (/usr/share/request-tracker4/lib/RT/Scrips.pm:192)****

[Tue Jul 31 08:47:07 2012] [debug]: Calling SetRecipientDigests for
transaction RT::Transaction=HASH(0x7fcf305d8918), id 964235
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:644)****

[Tue Jul 31 08:47:07 2012] [debug]: Working on mailfield Cc; recipients
are (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:660)****

[Tue Jul 31 08:47:07 2012] [debug]: Subject:
=?UTF-8?B?W013U3QgRnJlaWdhYmUgIzUzMjkzXSBjY2QgLSAxMjUzMDcwIC0gVW50ZXJu?=**
**

=?UTF-8?B?ZWhtZXJlaWdlbnNjaGFmdCBwcsO8ZmVu?=****

From: “The RT System itself via RT” queue@domain****

Reply-To: queue.rt@domain****

In-Reply-To: ****

References: RT-Ticket-53293@domain****

Message-ID: rt-4.0.5-31511-1343724427-334.53293-4-0@domain****

Precedence: bulk****

X-RT-Loop-Prevention: CANCOM Tickets****

RT-Ticket: CANCOM Tickets #53293****

Managed-by: RT 4.0.5 (Request Tracker... So much more than a help desk — Best Practical Solutions)****

Bcc: a.s@domain****

To: “AdminCc of CANCOM Tickets Ticket #53293”:;****

MIME-Version: 1.0****

Content-Transfer-Encoding: 8bit****

Content-Type: text/plain; charset=“utf-8”****

X-RT-Original-Encoding: utf-8
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)****

[Tue Jul 31 08:47:07 2012] [debug]: Removing deferred recipients from Cc:
line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)****

[Tue Jul 31 08:47:07 2012] [debug]: Setting deferred recipients for
attribute creation
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)****

[Tue Jul 31 08:47:07 2012] [debug]: Working on mailfield Bcc; recipients
are a.s@domain(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:660)


[Tue Jul 31 08:47:07 2012] [debug]: Subject:
=?UTF-8?B?W013U3QgRnJlaWdhYmUgIzUzMjkzXSBjY2QgLSAxMjUzMDcwIC0gVW50ZXJu?=**
**

=?UTF-8?B?ZWhtZXJlaWdlbnNjaGFmdCBwcsO8ZmVu?=****

From: “The RT System itself via RT” queue@domain****

Reply-To: queue@domain****

In-Reply-To: ****

References: <RT-Ticket-53293@domain >****

Message-ID: <rt-4.0.5-31511-1343724427-334.53293-4-0@domain >****

Precedence: bulk****

X-RT-Loop-Prevention: CANCOM Tickets****

RT-Ticket: CANCOM Tickets #53293****

Managed-by: RT 4.0.5 (Request Tracker... So much more than a help desk — Best Practical Solutions)****

Bcc: a.s@domain****

To: “AdminCc of CANCOM Tickets Ticket #53293”:;****

MIME-Version: 1.0****

Content-Transfer-Encoding: 8bit****

Content-Type: text/plain; charset=“utf-8”****

X-RT-Original-Encoding: utf-8
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)****

[Tue Jul 31 08:47:07 2012] [debug]: Got user mail preference ‘Individual
messages’ for user alexander.schmucker@cancom.de(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:681)


[Tue Jul 31 08:47:07 2012] [debug]: Removing deferred recipients from Bcc:
line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)****

[Tue Jul 31 08:47:07 2012] [debug]: Setting deferred recipients for
attribute creation
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)****

[Tue Jul 31 08:47:07 2012] [debug]: No recipients found for deferred
delivery on transaction #964235
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:712)****

[Tue Jul 31 08:47:07 2012] [info]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM #53293/964235 - Scrip 4
AdminCC beim Erstellen benachrichtigen
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:301)****

[Tue Jul 31 08:47:07 2012] [error]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75
(/usr/share/request-tracker4/lib/RT/Interface/Email.pm:465)****

[Tue Jul 31 08:47:07 2012] [crit]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: Could not send mail
with command /usr/sbin/sendmail -oi -t:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 at
/usr/share/request-tracker4/lib/RT/Interface/Email.pm line 466.
(/usr/share/request-tracker4/lib/RT/Interface/Email.pm:470)****

[Tue Jul 31 08:47:07 2012] [warning]: No EmailInputEncodings set, fallback
to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)****

[Tue Jul 31 08:47:07 2012] [warning]: No EmailInputEncodings set, fallback
to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)****

[Tue Jul 31 08:47:07 2012] [debug]: Converting ‘iso-8859-1’ to ‘utf-8’ for
text/plain - Subjectless message
(/usr/share/request-tracker4/lib/RT/I18N.pm:240)****


I’d appreciate any help to get to the bottom of this.****


Best regards,
Torben Nehmer****


Torben Nehmer
Diplom Informatiker (FH)
Business System Developer****

CANCOM Deutschland GmbH
Messerschmittstr. 20
89343 Scheppach
Germany****

Tel.: +49 8225 - 996-1118
Fax: +49 8225 - 996-41118
torben.nehmer@cancom.de
www.cancom.de****

CANCOM Deutschland GmbH
Sitz der Gesellschaft: Jettingen-Scheppach
HRB 10653 Memmingen
Geschäftsführer: Martin Mayr, Tobias Hörmann****

Diese E-Mail und alle mitgesendeten Dateien sind vertraulich und
ausschließlich für den Gebrauch durch den Empfänger bestimmt!
This e-mail and any files transmitted with it are confidential intended
solely for the use of the addressee!****


Jack Zabolotnyi
Arces Network, LLC

e: jzabolotnyi@arces.net
w: http://www.arces.net

PGP key: 2048R/7F2AB658 2012-07-02
PGP fingerprint: 4C7E 00A8 5210 F3D9 0509 C70E 87C8 666E 7F2A B658

Did any perl modules get updated as part of the upgrade?

What version of Email::Address is installed?
(perl -e ‘use Email::Address; print $Email::Address::VERSION;’)On 7/31/12 6:51 AM, Jack Zabolotnyi wrote:

You missing recepient: as you can see in logs, rt is trying to send message
to To: “AdminCc of CANCOM Tickets Ticket #53293”:;, but there is no
recepient’s email address (and postfix drops such message). Please check
your users and verifu if all of them have email address and if in your
ticket correct address is given.

On Tue, Jul 31, 2012 at 11:44 AM, Nehmer Torben Torben.Nehmer@cancom.dewrote:

Hello,****


I am using RT 4 on an Debian Stable using the backports builds. On
Saturday we updated the installation to 4.0.5-3~bpo60+1 in response to the
latest security advisory. Since then, we have intermittent problems in the
mail communication originating from the RT system. Most of the mails work
fine (perhaps 99%) but a few are rejected by Postfix with this error
message:****


             postfix/sendmail[31546]: fatal: www-data(33): No recipient

addresses found in message header****


There have not been any configuration changes over the weekend except for
the RT upgrade off 4.0.5-1~bpo60+1. ****


Upon setting the log level to Debug I had the following case just a few
minutes ago:****


A new mail got in over the Mail gateway from User h.s@domain, a user
already known to RT. The ticket got created correctly in the queue *
MwStFreigabe* in question. It had no owner and h.s@domain as requestor.
In addition, the queue has a.s@domain as AdminCC configured. ****


Now RT fails to send both mails related to this ticket creation:****


First there is Scrip scrip 4, which is configured as �On Create, Notify
AdminCcs with Global Template Transaction during TransactionCreate�, there
is nothing user defined beyond this. ****


The template Transaction is of Type Perl and looks like this:****


RT-Attach-Message: yes****



{$Transaction->CreatedAsString}: Anfrage {$Ticket->id} wurde ver�ndert.***
*

Transaktion: {$Transaction->Description}****

  Bereich: {$Ticket->QueueObj->Name}****

  Betreff: {$Transaction->Subject || $Ticket->Subject || "(No subject

given)"}****

 Besitzer: {$Ticket->OwnerObj->Name}****

 Klienten: {$Ticket->RequestorAddresses}****

   Status: {$Ticket->Status}****

Priorit�t: {$Ticket->Priority}/{$Ticket->FinalPriority}****

Ticket <URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} >****



{$Transaction->Content()}****


The mail doesn�t get sent with the error above. RT logs this (some
messages about skipped scripts skipped for brevity), the transaction in
question was the 964235 on Ticket 53293:****


[Tue Jul 31 08:47:07 2012] [debug]: Committing scrip #4 on txn #964235 of
ticket #53293 (/usr/share/request-tracker4/lib/RT/Scrips.pm:192)****

[Tue Jul 31 08:47:07 2012] [debug]: Calling SetRecipientDigests for
transaction RT::Transaction=HASH(0x7fcf305d8918), id 964235
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:644)****

[Tue Jul 31 08:47:07 2012] [debug]: Working on mailfield Cc; recipients
are (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:660)****

[Tue Jul 31 08:47:07 2012] [debug]: Subject:
=?UTF-8?B?W013U3QgRnJlaWdhYmUgIzUzMjkzXSBjY2QgLSAxMjUzMDcwIC0gVW50ZXJu?=**
**

=?UTF-8?B?ZWhtZXJlaWdlbnNjaGFmdCBwcsO8ZmVu?=****

From: “The RT System itself via RT” queue@domain****

Reply-To: queue.rt@domain****

In-Reply-To: ****

References: RT-Ticket-53293@domain****

Message-ID: rt-4.0.5-31511-1343724427-334.53293-4-0@domain****

Precedence: bulk****

X-RT-Loop-Prevention: CANCOM Tickets****

RT-Ticket: CANCOM Tickets #53293****

Managed-by: RT 4.0.5 (Request Tracker... So much more than a help desk — Best Practical Solutions)****

Bcc: a.s@domain****

To: “AdminCc of CANCOM Tickets Ticket #53293”:;****

MIME-Version: 1.0****

Content-Transfer-Encoding: 8bit****

Content-Type: text/plain; charset=“utf-8”****

X-RT-Original-Encoding: utf-8
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)****

[Tue Jul 31 08:47:07 2012] [debug]: Removing deferred recipients from Cc:
line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)****

[Tue Jul 31 08:47:07 2012] [debug]: Setting deferred recipients for
attribute creation
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)****

[Tue Jul 31 08:47:07 2012] [debug]: Working on mailfield Bcc; recipients
are a.s@domain(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:660)


[Tue Jul 31 08:47:07 2012] [debug]: Subject:
=?UTF-8?B?W013U3QgRnJlaWdhYmUgIzUzMjkzXSBjY2QgLSAxMjUzMDcwIC0gVW50ZXJu?=**
**

=?UTF-8?B?ZWhtZXJlaWdlbnNjaGFmdCBwcsO8ZmVu?=****

From: “The RT System itself via RT” queue@domain****

Reply-To: queue@domain****

In-Reply-To: ****

References: <RT-Ticket-53293@domain >****

Message-ID: <rt-4.0.5-31511-1343724427-334.53293-4-0@domain >****

Precedence: bulk****

X-RT-Loop-Prevention: CANCOM Tickets****

RT-Ticket: CANCOM Tickets #53293****

Managed-by: RT 4.0.5 (Request Tracker... So much more than a help desk — Best Practical Solutions)****

Bcc: a.s@domain****

To: “AdminCc of CANCOM Tickets Ticket #53293”:;****

MIME-Version: 1.0****

Content-Transfer-Encoding: 8bit****

Content-Type: text/plain; charset=“utf-8”****

X-RT-Original-Encoding: utf-8
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)****

[Tue Jul 31 08:47:07 2012] [debug]: Got user mail preference ‘Individual
messages’ for user alexander.schmucker@cancom.de(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:681)


[Tue Jul 31 08:47:07 2012] [debug]: Removing deferred recipients from Bcc:
line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)****

[Tue Jul 31 08:47:07 2012] [debug]: Setting deferred recipients for
attribute creation
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)****

[Tue Jul 31 08:47:07 2012] [debug]: No recipients found for deferred
delivery on transaction #964235
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:712)****

[Tue Jul 31 08:47:07 2012] [info]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM #53293/964235 - Scrip 4
AdminCC beim Erstellen benachrichtigen
(/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:301)****

[Tue Jul 31 08:47:07 2012] [error]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75
(/usr/share/request-tracker4/lib/RT/Interface/Email.pm:465)****

[Tue Jul 31 08:47:07 2012] [crit]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: Could not send mail
with command /usr/sbin/sendmail -oi -t:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 at
/usr/share/request-tracker4/lib/RT/Interface/Email.pm line 466.
(/usr/share/request-tracker4/lib/RT/Interface/Email.pm:470)****

[Tue Jul 31 08:47:07 2012] [warning]: No EmailInputEncodings set, fallback
to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)****

[Tue Jul 31 08:47:07 2012] [warning]: No EmailInputEncodings set, fallback
to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)****

[Tue Jul 31 08:47:07 2012] [debug]: Converting ‘iso-8859-1’ to ‘utf-8’ for
text/plain - Subjectless message
(/usr/share/request-tracker4/lib/RT/I18N.pm:240)****


I�d appreciate any help to get to the bottom of this.****


Best regards,
Torben Nehmer****


Torben Nehmer
Diplom Informatiker (FH)
Business System Developer****

CANCOM Deutschland GmbH
Messerschmittstr. 20
89343 Scheppach
Germany****

Tel.: +49 8225 - 996-1118
Fax: +49 8225 - 996-41118
torben.nehmer@cancom.de
www.cancom.de****

CANCOM Deutschland GmbH
Sitz der Gesellschaft: Jettingen-Scheppach
HRB 10653 Memmingen
Gesch�ftsf�hrer: Martin Mayr, Tobias H�rmann****

Diese E-Mail und alle mitgesendeten Dateien sind vertraulich und
ausschlie�lich f�r den Gebrauch durch den Empf�nger bestimmt!
This e-mail and any files transmitted with it are confidential intended
solely for the use of the addressee!****


[Tue Jul 31 08:47:07 2012] [crit]:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: Could not send mail
with command /usr/sbin/sendmail -oi -t:
rt-4.0.5-31511-1343724427-334.53293-4-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 at
/usr/share/request-tracker4/lib/RT/Interface/Email.pm line 466.
(/usr/share/request-tracker4/lib/RT/Interface/Email.pm:470)

Please send your Apache config for RT. Based on the error above, it may
be you’re using the wrong mod_perl handler.

You missing recepient: as you can see in logs, rt is trying to send
message to To: “AdminCc of CANCOM Tickets Ticket #53293”:;, but there is
no recepient’s email address (and postfix drops such message). Please
check your users and verifu if all of them have email address and if in
your ticket correct address is given.

I suspect the postfix error is misleading (i.e. NO message headers were
found, not just no recipients).

The To: header is just RT’s UseFriendlyToLine option. The real AdminCc
recipients are in the Bcc: header, as normal.

Hi there,

the various questions in order:

Did any perl modules get updated as part of the upgrade?

from dpkg.log:
2012-07-27 15:11:55 upgrade libplack-perl 0.9980-1~bpo60+2 0.9986-1~bpo60+1

What version of Email::Address is installed?

That would be 1.889 (using the Debian package 1.889-2).

Please send your Apache config for RT.

Directives exceeding Apache Standard:

# RT Include file /etc/request-tracker4/apache-modperl2.conf
PerlSetEnv RT_SITE_CONFIG /etc/request-tracker4/RT_SiteConfig.pm
<Location />    
  SetHandler modperl
  PerlResponseHandler Plack::Handler::Apache2
  PerlSetVar psgi_app /usr/share/request-tracker4/libexec/rt-server
</Location>
<Location /REST/1.0/NoAuth>
    Order Allow,Deny
    Allow from 127.0.0.1
</Location>
        
<Perl>  
  use Plack::Handler::Apache2;
  Plack::Handler::Apache2->preload("/usr/share/request-tracker4/libexec/rt-server");
</Perl>

    Header add X-UA-Compatible "IE=edge"

    # Some CGI Scripts accessing RT directly
    ScriptAlias /cgi-bin/ /usr/local/lib/cgi-bin-rt.cancom.de/
    <Directory "/usr/local/lib/cgi-bin-rt.cancom.de">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>
    <Location /cgi-bin/>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
    </Location>

Best regards,
Torben Nehmer
Torben Nehmer
Diplom Informatiker (FH)
Business System Developer
CANCOM Deutschland GmbH
Messerschmittstr. 20
89343 Scheppach
Germany
Tel.: +49 8225 - 996-1118
Fax: +49 8225 - 996-41118
torben.nehmer@cancom.de

CANCOM Deutschland GmbH
Sitz der Gesellschaft: Jettingen-Scheppach
HRB 10653 Memmingen
Geschäftsführer: Martin Mayr, Tobias Hörmann
Diese E-Mail und alle mitgesendeten Dateien sind vertraulich und ausschließlich für den Gebrauch durch den Empfänger bestimmt!
This e-mail and any files transmitted with it are confidential intended solely for the use of the addressee!

Hi,

I have made a few more experiments here:

First, I tried to forward a failed message. It failed again, but differently. rt.log says:

[Wed Aug 1 14:05:40 2012] [error]: : /usr/sbin/sendmail -oi -t exited with code 75 (/usr/share/request-tracker4/lib/RT/Interface/Email.pm:465)
[Wed Aug 1 14:05:40 2012] [crit]: : Could not send mail with command /usr/sbin/sendmail -oi -t: : /usr/sbin/sendmail -oi -t exited with code 75 at /usr/share/request-tracker4/lib/RT/Interface/Email.pm line 466.

Stack:
[/usr/share/request-tracker4/lib/RT/Interface/Email.pm:466]
[/usr/share/request-tracker4/lib/RT/Interface/Email.pm:767]
[/usr/share/request-tracker4/lib/RT/Interface/Email.pm:626]
[/usr/share/request-tracker4/html/Ticket/Forward.html:98]
[/usr/share/request-tracker4/html/Ticket/autohandler:19]
[/usr/share/request-tracker4/lib/RT/Interface/Web.pm:568]
[/usr/share/request-tracker4/lib/RT/Interface/Web.pm:318]
[/usr/share/request-tracker4/html/autohandler:53] (/usr/share/request-tracker4/lib/RT/Interface/Email.pm:470)
[Wed Aug 1 14:05:40 2012] [debug]: Encode::Guess guessed encoding: ascii (/usr/share/request-tracker4/lib/RT/I18N.pm:474)
[Wed Aug 1 14:05:40 2012] [debug]: Encode::Guess guessed encoding: ascii (/usr/share/request-tracker4/lib/RT/I18N.pm:474)
[Wed Aug 1 14:05:40 2012] [debug]: Converting ‘ascii’ to ‘utf-8’ for text/plain - Subjectless message (/usr/share/request-tracker4/lib/RT/I18N.pm:240)

Postfix says at the same time:

Aug 1 16:05:40 jetws003 postfix/sendmail[1741]: fatal: www-data(33): internal protocol error

However, this is not reproducible with other failed messages.

I am starting to believe that I have two different errors here.

What I can reproduce, is a mail triggered by an CGI script which fails all the time.

The CGI Script looks like this: #!/usr/bin/perl -wuse lib '/usr/share/request-tracker4/lib';use strict; - Pastebin.com

When called with testdata, it creates the ticket, returns OK but the mail doesn’t get sent, again with the No Recipient error message of Postfix. According to the logs, the mail did have an receiver:

[Wed Aug 1 14:11:12 2012] [debug]: Subject: [Leasing #53426] Automatische Antwort: ccd’ - test - test - test
In-Reply-To:
References: RT-Ticket-53426@CANCOM
Message-ID: rt-4.0.5-1953-1343830271-576.53426-3-0@domain
Precedence: bulk
X-RT-Loop-Prevention: CANCOM Tickets
RT-Ticket: CANCOM Tickets #53426
Managed-by: RT 4.0.5 (Request Tracker — Best Practical Solutions)
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=“utf-8”
X-RT-Original-Encoding: utf-8 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:667)
[Wed Aug 1 14:11:12 2012] [debug]: Removing deferred recipients from Bcc: line (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:690)
[Wed Aug 1 14:11:12 2012] [debug]: Setting deferred recipients for attribute creation (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:699)
[Wed Aug 1 14:11:12 2012] [debug]: No recipients found for deferred delivery on transaction #966607 (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:712)
[Wed Aug 1 14:11:12 2012] [info]: rt-4.0.5-1953-1343830271-576.53426-3-0@CANCOM #53426/966607 - Scrip 3 Auto-Reply beim Erstellen an Klient (/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:301)
[Wed Aug 1 14:11:12 2012] [error]: rt-4.0.5-1953-1343830271-576.53426-3-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 (/usr/share/request-tracker4/lib/RT/Interface/Email.pm:465)
[Wed Aug 1 14:11:12 2012] [crit]: rt-4.0.5-1953-1343830271-576.53426-3-0@CANCOM: Could not send mail with command /usr/sbin/sendmail -oi -t: rt-4.0.5-1953-1343830271-576.53426-3-0@CANCOM: /usr/sbin/sendmail -oi -t exited with code 75 at /usr/shar
[Wed Aug 1 14:11:12 2012] [warning]: No EmailInputEncodings set, fallback to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)
[Wed Aug 1 14:11:12 2012] [warning]: No EmailInputEncodings set, fallback to iso-8859-1 (/usr/share/request-tracker4/lib/RT/I18N.pm:431)

However, forwarding that message to me does work.

Please note, that both RTs configuration and the code of that CGI script has been unchanged for weeks (perhaps even months) now and it did work last week before the update.

Best regards,
Torben Nehmer
Torben Nehmer
Diplom Informatiker (FH)
Business System Developer
CANCOM Deutschland GmbH
Messerschmittstr. 20
89343 Scheppach
Germany
Tel.: +49 8225 - 996-1118
Fax: +49 8225 - 996-41118
torben.nehmer@cancom.de

CANCOM Deutschland GmbH
Sitz der Gesellschaft: Jettingen-Scheppach
HRB 10653 Memmingen
Geschäftsführer: Martin Mayr, Tobias Hörmann
Diese E-Mail und alle mitgesendeten Dateien sind vertraulich und ausschließlich für den Gebrauch durch den Empfänger bestimmt!
This e-mail and any files transmitted with it are confidential intended solely for the use of the addressee!