<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>Using postfix with RT</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi.</FONT>
</P>
<P><FONT SIZE=2>I'm setting up RT 2.0.7 and I'm having some difficulties getting it to work</FONT>
<BR><FONT SIZE=2>with postfix. When I send a mail to rt@localhost the rt-mailgate doesn't run</FONT>
<BR><FONT SIZE=2>correctly. I get the following from postfix:</FONT>
</P>
<P><FONT SIZE=2>---------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2> The Postfix program</FONT>
</P>
<P><FONT SIZE=2><rt@localhost.aastroem.se>: Command died with status 2:</FONT>
<BR><FONT SIZE=2> "/usr/local/rt2/bin/rt-mailgate --queue general --action respond". Command</FONT>
<BR><FONT SIZE=2> output: Can't locate config.pm in @INC (@INC contains: /usr/local/rt2/etc</FONT>
<BR><FONT SIZE=2> /usr/local/rt2/lib /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1</FONT>
<BR><FONT SIZE=2> /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1</FONT>
<BR><FONT SIZE=2> /usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/site_perl .) at</FONT>
<BR><FONT SIZE=2> /usr/local/rt2/lib/RT/Interface/Email.pm line 96. BEGIN failed--compilation</FONT>
<BR><FONT SIZE=2> aborted at /usr/local/rt2/lib/RT/Interface/Email.pm line 96. Compilation</FONT>
<BR><FONT SIZE=2> failed in require at /usr/local/rt2/bin/rt-mailgate line 30. BEGIN</FONT>
<BR><FONT SIZE=2> failed--compilation aborted at /usr/local/rt2/bin/rt-mailgate line 30.</FONT>
</P>
<P><FONT SIZE=2>--8796B7D91.1000912644/happy.aastroem.se</FONT>
<BR><FONT SIZE=2>Content-Description: Delivery error report</FONT>
<BR><FONT SIZE=2>Content-Type: message/delivery-status</FONT>
</P>
<P><FONT SIZE=2>Reporting-MTA: dns; happy.aastroem.se</FONT>
<BR><FONT SIZE=2>Arrival-Date: Wed, 19 Sep 2001 17:17:23 +0200 (CEST)</FONT>
</P>
<P><FONT SIZE=2>Final-Recipient: rfc822; rt@localhost.aastroem.se</FONT>
<BR><FONT SIZE=2>Action: failed</FONT>
<BR><FONT SIZE=2>Status: 5.0.0</FONT>
<BR><FONT SIZE=2>Diagnostic-Code: X-Postfix; Command died with status 2:</FONT>
<BR><FONT SIZE=2> "/usr/local/rt2/bin/rt-mailgate --queue general --action respond". Command</FONT>
<BR><FONT SIZE=2> output: Can't locate config.pm in @INC (@INC contains: /usr/local/rt2/etc</FONT>
<BR><FONT SIZE=2> /usr/local/rt2/lib /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1</FONT>
<BR><FONT SIZE=2> /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1</FONT>
<BR><FONT SIZE=2> /usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/site_perl .) at</FONT>
<BR><FONT SIZE=2> /usr/local/rt2/lib/RT/Interface/Email.pm line 96. BEGIN failed--compilation</FONT>
<BR><FONT SIZE=2> aborted at /usr/local/rt2/lib/RT/Interface/Email.pm line 96. Compilation</FONT>
<BR><FONT SIZE=2> failed in require at /usr/local/rt2/bin/rt-mailgate line 30. BEGIN</FONT>
<BR><FONT SIZE=2> failed--compilation aborted at /usr/local/rt2/bin/rt-mailgate line 30.</FONT>
</P>
<P><FONT SIZE=2>--8796B7D91.1000912644/happy.aastroem.se</FONT>
<BR><FONT SIZE=2>Content-Description: Undelivered Message</FONT>
<BR><FONT SIZE=2>Content-Type: message/rfc822</FONT>
</P>
<P><FONT SIZE=2>Received: by happy.aastroem.se (Postfix, from userid 500)</FONT>
<BR><FONT SIZE=2> id 8796B7D91; Wed, 19 Sep 2001 17:17:23 +0200 (CEST)</FONT>
<BR><FONT SIZE=2>To: rt@localhost.aastroem.se</FONT>
<BR><FONT SIZE=2>Subject: Test</FONT>
<BR><FONT SIZE=2>Message-Id: <20010919151723.8796B7D91@happy.aastroem.se></FONT>
<BR><FONT SIZE=2>Date: Wed, 19 Sep 2001 17:17:23 +0200 (CEST)</FONT>
<BR><FONT SIZE=2>From: schyman@happy.aastroem.se (Andreas Schyman)</FONT>
</P>
<P><FONT SIZE=2>Should go into general in RT</FONT>
</P>
<P><FONT SIZE=2>--8796B7D91.1000912644/happy.aastroem.se--</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------------------------</FONT>
</P>
<P><FONT SIZE=2>Okay, it says that it "Can't locate config.pm in @INC (@INC contains:</FONT>
<BR><FONT SIZE=2>/usr/local/rt2/etc ..."</FONT>
</P>
<P><FONT SIZE=2>But config.pm is in the include path:</FONT>
</P>
<P><FONT SIZE=2>---------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>schyman@happy /usr/local/rt2/etc$ pwd ; ls -l</FONT>
<BR><FONT SIZE=2>/usr/local/rt2/etc</FONT>
<BR><FONT SIZE=2>total 32</FONT>
<BR><FONT SIZE=2>-r-x------ 1 root rt 176 Sep 19 13:50 acl.mysql</FONT>
<BR><FONT SIZE=2>-r-xr-x--x 1 root rt 13663 Sep 19 15:58 config.pm</FONT>
<BR><FONT SIZE=2>-rwxr-xr-x 1 root root 12121 Sep 19 13:50 insertdata</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------------------------</FONT>
</P>
<P><FONT SIZE=2>This puzzles me a bit, and I was wondering two things:</FONT>
<BR><FONT SIZE=2>1. Does rt work with postfix? I've tried with the standard sendmail args:</FONT>
<BR><FONT SIZE=2>$SendmailArguments="-oi";</FONT>
<BR><FONT SIZE=2>as well as:</FONT>
<BR><FONT SIZE=2>$SendmailArguments="-t";</FONT>
<BR><FONT SIZE=2>but with the same results.</FONT>
</P>
<P><FONT SIZE=2>My aliases contains the following entries:</FONT>
<BR><FONT SIZE=2>rt-comment: "|/usr/local/rt2/bin/rt-mailgate --queue general --action comment"</FONT>
<BR><FONT SIZE=2>rt: "|/usr/local/rt2/bin/rt-mailgate --queue general --action respond"</FONT>
</P>
<P><FONT SIZE=2>2. The server will only be used on a intranet, and I have yet not a public IP or</FONT>
<BR><FONT SIZE=2>domainname, but I don't think that that should matter since I'm still able to</FONT>
<BR><FONT SIZE=2>send mail locally on the server.</FONT>
</P>
<P><FONT SIZE=2>Does anyone have any suggestions to where I should go from here? Should I replace</FONT>
<BR><FONT SIZE=2>Postfix with sendmail?</FONT>
</P>
<P><FONT SIZE=2>Thanks in advance, and thanks for a great piece of software. This is the third</FONT>
<BR><FONT SIZE=2>organization who I convince into using it, but I've never installed it myself</FONT>
<BR><FONT SIZE=2>before :-/</FONT>
</P>
<P><FONT SIZE=2>/Andreas</FONT>
</P>
</BODY>
</HTML>