Config.pm problem with rt2

My setup:

RedHat 7.1 box (PC)
RT: version 2.0.7

my /etc/aliases:

rt-comment: |“/opt/rt2/bin/rt-mailgate --queue general --action comment”
rt: |“/opt/rt2/bin/rt-mailgate --queue general --action correspond”
rt-requests-comment: |“/opt/rt2/bin/rt-mailate --queue rt-requests
–action comment”
rt-requests: |“/opt/rt2/bin/rt-mailgate --queue rt-requests --action
correspond”

I installed all packages, no problems. Got the web interface working.

Now, working on the e-mail gateway, and I am having the following
problem:

When I try to e-mail to rt or rt-requests (two aliases), I get the
following e-mail (I e-mailed from the localhost to rt@localhost and to
rt-requests@localhost):

The original message was received at Sat, 6 Oct 2001 12:07:28 -0700
from root@localhost

----- The following addresses had permanent fatal errors -----
|“/opt/rt2/bin/rt-mailgate --queue general --action correspond”
(reason: 2)
(expanded from: rt@localhost)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /opt/rt2/etc /opt/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /opt/rt2/lib/RT/Interface/Email.pm
line 96.
BEGIN failed–compilation aborted at /opt/rt2/lib/RT/Interface/Email.pm
line 96.
Compilation failed in require at /etc/smrsh/rt-mailgate line 30.
BEGIN failed–compilation aborted at /etc/smrsh/rt-mailgate line 30.
554 5.3.0 unknown mailer error 2

I checked and the config.pm file is there, in /opt/rt2/etc. I even
moved it to /opt/rt2/lib and to /usr/local/lib/perl5/5.6.1, but still no
luck. I’ve read ALL archives and tried a lot of suggestions, but nothing
worked for me yet.

What I also found out is that I cannot e-mail to the above aliases from
any other box either–that’s why I decided to e-mail from localhost to
localhost to see if I can fix that one first.

How can I get it working?

Thanks,
–Ed.

The ReadMe file has “| instead of |”. Could that be the problem?

John DeBerry-----Original Message-----
From: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]On
Behalf Of Ratiner, Ed
Sent: Friday, October 05, 2001 2:14 PM
To: rt-users@lists.fsck.com
Cc: Ratiner, Ed
Subject: [rt-users] config.pm problem with rt2

My setup:
RedHat 7.1 box (PC)
RT: version 2.0.7
my /etc/aliases:
rt-comment: |“/opt/rt2/bin/rt-mailgate --queue general --action comment”
rt: |“/opt/rt2/bin/rt-mailgate --queue general --action correspond”
rt-requests-comment: |“/opt/rt2/bin/rt-mailate --queue rt-requests --action
comment”
rt-requests: |“/opt/rt2/bin/rt-mailgate --queue rt-requests --action
correspond”

I installed all packages, no problems. Got the web interface working.
Now, working on the e-mail gateway, and I am having the following problem:
When I try to e-mail to rt or rt-requests (two aliases), I get the following
e-mail (I e-mailed from the localhost to rt@localhost and to
rt-requests@localhost):
The original message was received at Sat, 6 Oct 2001 12:07:28 -0700
from root@localhost
----- The following addresses had permanent fatal errors -----
|“/opt/rt2/bin/rt-mailgate --queue general --action correspond”
(reason: 2)
(expanded from: rt@localhost)
----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /opt/rt2/etc /opt/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /opt/rt2/lib/RT/Interface/Email.pm line
96.
BEGIN failed–compilation aborted at /opt/rt2/lib/RT/Interface/Email.pm line
96.
Compilation failed in require at /etc/smrsh/rt-mailgate line 30.
BEGIN failed–compilation aborted at /etc/smrsh/rt-mailgate line 30.
554 5.3.0 unknown mailer error 2
I checked and the config.pm file is there, in /opt/rt2/etc. I even moved
it to /opt/rt2/lib and to /usr/local/lib/perl5/5.6.1, but still no luck.
I’ve read ALL archives and tried a lot of suggestions, but nothing worked
for me yet.
What I also found out is that I cannot e-mail to the above aliases from any
other box either–that’s why I decided to e-mail from localhost to localhost
to see if I can fix that one first.
How can I get it working?
Thanks,
–Ed.

Andrey,

Thanks a lot! I appreciate your help. It worked like a charm.

Cheers,
–Ed.From: Andrey Vovk [mailto:vovk@ncbi.nlm.nih.gov]
Sent: Friday, October 05, 2001 1:08 PM
To: Ratiner, Ed
Subject: Re: [rt-users] config.pm problem with rt2

check permissions on comfig.pm
Set them to 644.

regards
Andrey

My setup:

RedHat 7.1 box (PC)
RT: version 2.0.7

my /etc/aliases:

rt-comment: |“/opt/rt2/bin/rt-mailgate --queue general --action
comment”
rt: |“/opt/rt2/bin/rt-mailgate --queue general --action correspond”
rt-requests-comment: |“/opt/rt2/bin/rt-mailate --queue rt-requests
–action comment”
rt-requests: |“/opt/rt2/bin/rt-mailgate --queue rt-requests
–action
correspond”

I installed all packages, no problems. Got the web interface
working.

Now, working on the e-mail gateway, and I am having the following
problem:

When I try to e-mail to rt or rt-requests (two aliases), I get the
following e-mail (I e-mailed from the localhost to rt@localhost and
to
rt-requests@localhost):

The original message was received at Sat, 6 Oct 2001 12:07:28 -0700
from root@localhost

  ----- The following addresses had permanent fatal errors -----

|“/opt/rt2/bin/rt-mailgate --queue general --action correspond”
(reason: 2)
(expanded from: rt@localhost)

  ----- Transcript of session follows -----

Can’t locate config.pm in @INC (@INC contains: /opt/rt2/etc
/opt/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at
/opt/rt2/lib/RT/Interface/Email.pm line 96.
BEGIN failed–compilation aborted at
/opt/rt2/lib/RT/Interface/Email.pm line 96.
Compilation failed in require at /etc/smrsh/rt-mailgate line 30.
BEGIN failed–compilation aborted at /etc/smrsh/rt-mailgate line

554 5.3.0 unknown mailer error 2

I checked and the config.pm file is there, in /opt/rt2/etc. I
even
moved it to /opt/rt2/lib and to /usr/local/lib/perl5/5.6.1, but
still
no luck. I’ve read ALL archives and tried a lot of suggestions, but
nothing worked for me yet.

What I also found out is that I cannot e-mail to the above aliases
from any other box either–that’s why I decided to e-mail from
localhost to localhost to see if I can fix that one first.

How can I get it working?

Thanks,
–Ed.

Ratiner, Ed wrote:

Andrey,

Thanks a lot! I appreciate your help. It worked like a charm.

Cheers,
–Ed.

> > check permissions on comfig.pm > Set them to 644.

Bad move. Bad, bad move.

Unless you /like/ having world readable admin passwords…

config.pm is 0550 for a reason.

The list archives are full of suggestions for resolving this.
Chances are your suidperl isn’t being very suid. You want to
fix that, not open up your RT installation for any user to
trash.