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