SendEmail.pm line 250

After a bit of work, I have everything working as expected with rt-3.2.2
with the exception of email. I have the following in RT_Config.pm:

Set($MailCommand , ‘sendmail’);

These options are good for most sendmail wrappers and workalikes

#Set($SendmailArguments , “-oi -t”);

These arguments are good for sendmail brand sendmail 8 and newer

Set($SendmailArguments,“-oi -ODeliveryMode=b -OErrorMode=m”);

I get the following errors:

Fri Oct 15 17:10:11 2004] [info]:
rt-3.2.2-13-151-5.17.6126404689169@cs.duke.edu #13/151 - Scrip 5
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:231)
[Fri Oct 15 17:10:12 2004] [crit]:
rt-3.2.2-13-151-5.17.6126404689169@cs.duke.eduCould not send mail. -No
such file or directory at /usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm
line 250.

Stack:
[/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:250]
[/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:102]
[/usr/pkg/rt-3.2.2/lib/RT/ScripAction_Overlay.pm:225]
[/usr/pkg/rt-3.2.2/lib/RT/Scrip_Overlay.pm:497]
[/usr/pkg/rt-3.2.2/lib/RT/Scrips_Overlay.pm:188]
[/usr/pkg/rt-3.2.2/lib/RT/Transaction_Overlay.pm:154]
[/usr/pkg/rt-3.2.2/lib/RT/Ticket_Overlay.pm:3707]
[/usr/pkg/rt-3.2.2/lib/RT/Ticket_Overlay.pm:2527]
[/usr/pkg/rt-3.2.2/lib/RT/Ticket_Overlay.pm:2460]
[/usr/pkg/rt-3.2.2/lib/RT/Interface/Web.pm:432]
[/usr/pkg/rt-3.2.2/share/html/Ticket/Display.html:133]
[/usr/pkg/rt-3.2.2/share/html/Ticket/Update.html:200]
[/usr/pkg/rt-3.2.2/share/html/autohandler:221]
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:255)
[Fri Oct 15 17:10:12 2004] [info]:
rt-3.2.2-13-151-5.17.6126404689169@cs.duke.edu sent To: Cc: Bcc:
lab, user1@cs.duke.edu (/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:291)
[Fri Oct 15 17:10:12 2004] [info]:
rt-3.2.2-13-151-6.8.40529743892859@cs.duke.edu #13/151 - Scrip 6
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:231)
[Fri Oct 15 17:10:12 2004] [crit]:
rt-3.2.2-13-151-6.8.40529743892859@cs.duke.eduCould not send mail. -No
such file or directory at /usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm
line 250.

Stack:
[/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:250]
[/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:102]
[/usr/pkg/rt-3.2.2/lib/RT/ScripAction_Overlay.pm:225]
[/usr/pkg/rt-3.2.2/lib/RT/Scrip_Overlay.pm:497]
[/usr/pkg/rt-3.2.2/lib/RT/Scrips_Overlay.pm:188]
[/usr/pkg/rt-3.2.2/lib/RT/Transaction_Overlay.pm:154]
[/usr/pkg/rt-3.2.2/lib/RT/Ticket_Overlay.pm:3707]
[/usr/pkg/rt-3.2.2/lib/RT/Ticket_Overlay.pm:2527]
[/usr/pkg/rt-3.2.2/lib/RT/Ticket_Overlay.pm:2460]
[/usr/pkg/rt-3.2.2/lib/RT/Interface/Web.pm:432]
[/usr/pkg/rt-3.2.2/share/html/Ticket/Display.html:133]
[/usr/pkg/rt-3.2.2/share/html/Ticket/Update.html:200]
[/usr/pkg/rt-3.2.2/share/html/autohandler:221]
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:255)
[Fri Oct 15 17:10:12 2004] [info]:
rt-3.2.2-13-151-6.8.40529743892859@cs.duke.edu sent To:
user2@cs.duke.edu Cc: Bcc:
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:291)
[Fri Oct 15 17:10:12 2004] [info]:
rt-3.2.2-13-151-7.16.3904475122967@cs.duke.edu #13/151 - Scrip 7
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:231)
[Fri Oct 15 17:10:12 2004] [info]:
rt-3.2.2-13-151-7.16.3904475122967@cs.duke.edu No recipients found.
Not sending.
(/usr/pkg/rt-3.2.2/lib/RT/Action/SendEmail.pm:243)

I get this error even if I comment out the line 250, and make an
explicit call to send:

open( MAIL, “| /usr/lib/sendmail -oi -t -ODeliveryMode=b
-OErrorMode=m” ) || warn $!;

open( MAIL, “|$RT::SendmailPath $RT::SendmailArguments” )

|| die $!;

I have added watchers to the queue, and it does seem to want to send the
mail. This is a solaris box running solaris 9, with perl 5.8.5.

Thanks,

Joe
Joe Shamblin wjs@cs.duke.edu
Senior Systems Administrator Department of Computer Science
(919) 660-6582 Duke University

After a bit of work, I have everything working as expected with rt-3.2.2
with the exception of email. I have the following in RT_Config.pm:

Set($MailCommand , ‘sendmail’);

So. Um. What’s your $SendmailPath set to?

Does user that apache runs under has rights to read & execute sendmail?

Try from shell
sudo -u apache_user /path/to/sendmail

Joe Shamblin wrote:

Jesse Vincent wrote:

After a bit of work, I have everything working as expected with rt-3.2.2
with the exception of email. I have the following in RT_Config.pm:

Set($MailCommand , ‘sendmail’);

So. Um. What’s your $SendmailPath set to?

Set($SendmailPath , “/usr/lib/sendmail”);

Try from shell
sudo -u apache_user /path/to/sendmail

That works just fine.

Joe
Joe Shamblin wjs@cs.duke.edu
Senior Systems Administrator Department of Computer Science
(919) 660-6582 Duke University

Joe Shamblin wrote:

Jesse Vincent wrote:

After a bit of work, I have everything working as expected with
rt-3.2.2 with the exception of email. I have the following in
RT_Config.pm:

Set($MailCommand , ‘sendmail’);

So. Um. What’s your $SendmailPath set to?

Set($SendmailPath , “/usr/lib/sendmail”);

Try from shell
sudo -u apache_user /path/to/sendmail

That works just fine.

After an upgrade to 3.2-HEAD this seems to work so… I am not sure
what the problem was, but it seems fixed now.

Joe
Joe Shamblin wjs@cs.duke.edu
Senior Systems Administrator Department of Computer Science
(919) 660-6582 Duke University