<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Kevin Falcone ha scritto:<br>
</div>
<blockquote cite="mid:20140618193853.GO2912@jibsheet.com" type="cite">
<pre wrap="">On Wed, Jun 18, 2014 at 10:32:52AM +0000, Guadagnino Cristiano wrote:
</pre>
<blockquote type="cite">
<pre wrap="">the script that I am running comes from here:
<a class="moz-txt-link-freetext" href="http://www.cs.kent.ac.uk/people/staff/tdb/rt3/rt-remind">http://www.cs.kent.ac.uk/people/staff/tdb/rt3/rt-remind</a>

You can find a reference to this script on Wikia too:
<a class="moz-txt-link-freetext" href="http://requesttracker.wikia.com/wiki/Rt-reminder">http://requesttracker.wikia.com/wiki/Rt-reminder</a>
</pre>
</blockquote>
<pre wrap="">
Have you considered asking the author about your problems?
</pre>
</blockquote>
<br>
No, not until now.<br>
<br>
I was not sure if it was a "user error" or a program error, so I wrote to this list to seek other users of this script.<br>
<br>
<br>
<blockquote cite="mid:20140618193853.GO2912@jibsheet.com" type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">The message "Recipient names must be specified" does not come from the 
script itself, I guess it is coming from sendmail.
Unfortunately a google search, while finding a few hits, did not turn up 
to be enlightening.
</pre>
</blockquote>
<pre wrap="">
This implies nothing is being passed to sendmail correctly.

Show a debug output, especially the part where it shows how it calls
sendmail and what it passes.

-kevin
</pre>
<br>
</blockquote>
<br>
I think I found out the problem. I am reporting it here just for documentation if someone has the same problem in the future.<br>
<br>
This is an example of invoking "<b>rt-remind -A -d</b>" (i.e. with the debug flag activated):<br>
<br>
<hr size="2" width="100%">
<big><tt>====== Would call '/usr/lib/sendmail -oi' with this input:</tt><tt><br>
</tt><tt>Content-Type: text/plain; charset="ISO-8859-15"</tt><tt><br>
</tt><tt>From: RT Reminder <a class="moz-txt-link-rfc2396E" href="mailto:dba@amended.it">
<dba@amended.it></a></tt><tt><br>
</tt><tt>To: "Cristiano Guadagnino" <a class="moz-txt-link-rfc2396E" href="mailto:guadagnino.cristiano@amended.it">
<guadagnino.cristiano@amended.it></a></tt><tt><br>
</tt><tt>Subject: Outstanding RT tickets</tt><tt><br>
</tt><tt><br>
</tt><tt>This is a summary of all open, new, stalled or future tickets assigned to:</tt><tt><br>
</tt><tt><br>
</tt><tt>  "Cristiano Guadagnino" <a class="moz-txt-link-rfc2396E" href="mailto:guadagnino.cristiano@amended.it">
<guadagnino.cristiano@amended.it></a></tt><tt><br>
</tt><tt><br>
</tt><tt>   Id  Status  Pri  Created       Subject                       </tt><tt><br>
</tt><tt>50993  stalled  50  Thu 09-05-13  I: Quadrivio RMBS 2013 - Analisi storiche - Aggiornamento Aprile 2013</tt><tt><br>
</tt><tt><br>
</tt><tt><a class="moz-txt-link-freetext" href="http://rtbkd.amended.bkd/">http://rtbkd.amended.bkd/</a></tt></big><br>
<br>
<br>
<br>
<hr size="2" width="100%">
<br>
As you can see, it would call "<b>/usr/lib/sendmail -oi</b>". I found out that it should be calling "<b>/usr/lib/sendmail
<font color="#cc0000">-t</font> -oi</b>" so that sendmail picks the address of the recipient from the message itself. Otherwise, sendmail expects to find the address of the recipient as a command-line argument.<br>
<br>
The strange this is that it gets the command line from RT configuration (you can see it at line 136 of the script), and RT is sending emails corectly.<br>
And even stranger is the fact that this script has worked for years.<br>
<br>
However, I solved the problem amending the script to add "-t" to the command line. Since this is not part of the core product, I guess we can consider this solved.<br>
<br>
Thank you!<br>
Cris<br>
<br>
</body>
</html>