Users not receiving random password with new auto-reply template

I am using the following auto reply template, expecting new users to
receive a generated, random password. The ticket is created, but
passwords are not generated. I am using version 3.8 on Ubuntu.

Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:
"{$Ticket->Subject()}",
a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = &RT::User::_GenerateRandomNextChar;

if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value(‘Password’) eq ‘NO-PASSWORD’)
) {

my $user = RT::User->new($RT::SystemUser);
$user->Load($Transaction->CreatorObj->Id);
my ($stat, $pass) = $user->SetRandomPassword();

if (!$stat) {
$OUT .=
“An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.”;

}

$OUT .= "
You can check the current status and history of your requests at:

“.$RT::WebURL.”

When prompted, enter the following username and password:

Username: ".$user->Name.“
Password: “.$pass.”
”;
}
}

Thank you.
{$Ticket->QueueObj->CorrespondAddress()}

{$Transaction->Content()}

I am using the following auto reply template, expecting new users to
receive a generated, random password. The ticket is created, but
passwords are not generated. I am using version 3.8 on Ubuntu.

You don’t say what you found in your logs, and you really want to
specify your full RT version

-kevin

You don’t say what you found in your logs, and you really want to
specify your full RT version

-kevin

OK… I am using version 3.8 on Ubuntu 11.04. I installed it via:
“apt-get update; apt-get install rt3.8-apache2 rt3.8-clients
rt3.8-db-mysql request-tracker3.8 fetchmail”

I have logging set to syslog info.

created a new user (tom at lctn.org) and gave him create, reply, and see
queue permissions.

An email submission works fine and user gets a response the ticket was
created, but nothing about a password. Here is the log from the submission:

Sep 21 10:57:15 rt postfix/smtpd[8304]: connect from
mail.lctn.org[10.10.4.13]
Sep 21 10:57:15 rt postfix/smtpd[8304]: 9045344B7F:
client=mail.lctn.org[10.10.4.13]
Sep 21 10:57:15 rt postfix/cleanup[8308]: 9045344B7F:
message-id=1289117.641316620703230.JavaMail.root@mail.lctn.org
Sep 21 10:57:15 rt postfix/qmgr[1123]: 9045344B7F: from=tom@lctn.org,
size=1273, nrcpt=1 (queue active)
Sep 21 10:57:15 rt postfix/smtpd[8304]: disconnect from
mail.lctn.org[10.10.4.13]
Sep 21 10:57:15 rt RT:
rt-3.8.10-8270-1316620635-1005.15-3-0@rt3.lctn.org #15/162 - Scrip 3
On Create Autoreply To Requestors
(/usr/share/request-tracker3.8/lib/RT/Action/SendEmail.pm:302)
Sep 21 10:57:15 rt postfix/pickup[8179]: DCEEC44B82: uid=33 from=
Sep 21 10:57:15 rt postfix/cleanup[8308]: DCEEC44B82:
message-id=rt-3.8.10-8270-1316620635-1005.15-3-0@rt3.lctn.org
Sep 21 10:57:15 rt RT:
rt-3.8.10-8270-1316620635-1005.15-3-0@rt3.lctn.org sent To:
tom@lctn.org (/usr/share/request-tracker3.8/lib/RT/Action/SendEmail.pm:333)
Sep 21 10:57:15 rt postfix/qmgr[1123]: DCEEC44B82:
from=www-data@lctn.org, size=1322, nrcpt=1 (queue active)
Sep 21 10:57:15 rt RT:
rt-3.8.10-8270-1316620635-1177.15-4-0@rt3.lctn.org #15/162 - Scrip 4
On Create Notify AdminCcs
(/usr/share/request-tracker3.8/lib/RT/Action/SendEmail.pm:302)
Sep 21 10:57:15 rt RT:
rt-3.8.10-8270-1316620635-1177.15-4-0@rt3.lctn.org No recipients
found. Not sending.
(/usr/share/request-tracker3.8/lib/RT/Interface/Email.pm:352)
Sep 21 10:57:15 rt RT: Ticket 15 created in queue ‘General’ by tom at
lctn.org (/usr/share/request-tracker3.8/lib/RT/Ticket_Overlay.pm:671)
Sep 21 10:57:15 rt postfix/local[8309]: 9045344B7F: to=, relay=local, delay=0.38, delays=0.01/0/0/0.37, dsn=2.0.0,
status=sent (delivered to command: /usr/bin/rt-mailgate --queue general
–action correspond --url http://rt3.lctn.org/rt)
Sep 21 10:57:15 rt postfix/qmgr[1123]: 9045344B7F: removed
Sep 21 10:57:15 rt postfix/smtp[8314]: DCEEC44B82: to=,
relay=lctn.org[10.10.4.13]:25, delay=0.09, delays=0.01/0.01/0.01/0.06,
dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 689751D2512)
Sep 21 10:57:15 rt postfix/qmgr[1123]: DCEEC44B82: removed

Here is a debug log from a ticket submission of the new user: