Hi RT-Users,<div>I'm having a bit of trouble getting my RT config to work. Initially, MSMTP was working and sending blank e-mails (they were appearing from "unknown sender" and the message headers were almost empty). I'm not sure what I did to break this, but I assure you it was in an attempt to fix something. I am using mod_perl if this matters (perl version 5.8.8). I have followed all of the documentation on the bestpractical wiki, and as far as I can tell everythign seems to be in place. When I create a new ticket I get the following messages in /var/log/messages:</div>
<div><br></div><div><div>Jun 30 13:40:09 testbed RT: <<a href="mailto:rt-3.8.8-4957-1277930409-1228.2-3-0@corp.takelessons.com">rt-3.8.8-4957-1277930409-1228.2-3-0@corp.takelessons.com</a>> #2/35 - Scrip 3 On Create Autoreply To Requestors (/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:300)</div>
<div>Jun 30 13:40:09 testbed RTmailer: CALL /usr/local/bin/msmtp -nt --from=<a href="mailto:helpdesk@domain.com">helpdesk@domain.com</a> -C /opt/rt3/etc/msmtp_wrapper.conf RETURNED 78</div><div>Jun 30 13:40:09 testbed RT: <<a href="mailto:rt-3.8.8-4957-1277930409-1228.2-3-0@corp.domain.com">rt-3.8.8-4957-1277930409-1228.2-3-0@corp.domain.com</a>> sent To: <a href="mailto:mdubendris@gmail.com">mdubendris@gmail.com</a> (/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:331) </div>
<div>Jun 30 13:40:09 testbed RT: <<a href="mailto:rt-3.8.8-4957-1277930409-1816.2-4-0@corp.domain.com">rt-3.8.8-4957-1277930409-1816.2-4-0@corp.domain.com</a>> #2/35 - Scrip 4 On Create Notify AdminCcs (/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:300)</div>
<div>Jun 30 13:40:09 testbed RT: <<a href="mailto:rt-3.8.8-4957-1277930409-1816.2-4-0@corp.domain.com">rt-3.8.8-4957-1277930409-1816.2-4-0@corp.domain.com</a>> No recipients found. Not sending. (/opt/rt3/bin/../lib/RT/Interface/Email.pm:352)</div>
<div>Jun 30 13:40:09 testbed RT: Ticket 2 created in queue 'General' by root (/opt/rt3/bin/../lib/RT/Ticket_Overlay.pm:671)</div></div><div><br></div><div><br></div><div>This is what I'm getting for output... the line that says "RTmailer: CALL /usr/local/bin/msmtp" etc has been hacked up a bit as I made some changes to it trying to get things to work... what I have figured out is that RETURNED 78 is supposed to be a configuration file error. However, when I issue the same exact command as the same user as RT I am able to send mail. Let me show you that:</div>
<div><br></div><div><div>sudo -u apache cat test.txt | ./msmtp_wrapper</div></div><div>This pipes a file to the msmtp_wrapper that is being called and it successfully sends mail and returns 0. I imagine this is what should be happening when RT does it.</div>
<div><br></div><div>I'll include my RT_SiteConfig for reference as well:</div><div><br></div><div><br></div><div><br></div><div><div># vim /etc/request-tracker3.8/RT_SiteConfig.pm</div><div>#TIMEZONE – takes the timezone from linux installation.</div>
<div>my $zone = "UTC";</div><div>$zone='/bin/cat /etc/timezone'</div><div>if -f "/etc/timezone";</div><div>chomp $zone;</div><div>Set($Timezone, $zone);</div><div># THE BASICS:</div><div>Set($rtname, 'domainrt');</div>
<div>Set($Organization, '<a href="http://corp.domain.com">corp.domain.com</a>');</div><div>Set($CorrespondAddress , 'helpdesk\@<a href="http://domain.com">domain.com</a>');</div><div>Set($CommentAddress , 'helpdesk\@<a href="http://domain.com">domain.com</a>');</div>
<div># THE WEBSERVER:</div><div>Set($WebPath , "/rt");</div><div>Set($WebBaseURL , "<a href="http://testbed/rt">http://testbed/rt</a>");</div><div># THE DATABASE:</div><div>Set($DatabaseType, 'mysql');</div>
<div>Set($DatabaseHost, 'localhost');</div><div>Set($DatabasePort, '3306');</div><div>Set($DatabaseUser , 'rt_user');</div><div>Set($DatabasePassword , 'rt_pass');</div><div>Set($DatabaseName, 'rt3');</div>
<div>#MAIL</div><div>Set($SendmailPath , "/opt/rt3/etc/msmtp_wrapper");</div><div>Set($MailCommand , "sendmailpipe");</div><div>Set($SendmailArguments, "--from=\"helpdesk\@<a href="http://domain.com">domain.com</a>\" -C /opt/rt3/etc/msmtp_wrapper.conf");</div>
<div>Set($OwnerEmail , "mdubendris\@<a href="http://domain.com">domain.com</a>");</div><div>Set($RTAddressRegexp , "helpdesk\@domain\.com");</div><div>Set($OverrideOutgoingMailFrom, {</div><div> 'Default' => "helpdesk\@<a href="http://domain.com">domain.com</a>",</div>
<div> 'General' => "helpdesk\@<a href="http://domain.com">domain.com</a>",</div><div>});</div></div><div><br></div><div><br></div><div><br></div><div>Any assistance would be greatly appreciated, this has been a bit of a nightmare for me. Let me know if there is any more information you need from me. Thanks a lot.</div>
<div><br></div><div>-Mike</div>