Problem with rt-mailgate

I have smrsh setup to run rt-mailgate, but for some reason
its bombing out .

$Header: /raid/cvsroot/rt/bin/Attic/rt-mailgate,v 1.1.2.13 2001/07/25 05:05:07 jesse Exp $

It works fine from the command line, so i’m assuming that
its an environmental problem.

I seem to be running sendmail 8.9.3 . One unique circumstance
is that we’re running blackmail which proxies mail from
SMTP and pipes it to sendmail after a battery of spam checks.

rt-mailgate has the proper include lines too.
use lib “/www/rt/lib”;
use lib “/www/rt/etc”;

Any suggestions would be appreciated,

_Michael.

----- Forwarded message from Mail Delivery Subsystem MAILER-DAEMON@XXX.net -----Date: Thu, 26 Jul 2001 14:35:23 -0400
From: Mail Delivery Subsystem MAILER-DAEMON@XXX.net
To: mike@XXX.net
Subject: Returned mail: see transcript for details

The original message was received at Thu, 26 Jul 2001 14:35:22 -0400
from mike@localhost

----- The following addresses had permanent fatal errors -----
"|/www/rt/bin/rt-mailgate --queue projects --action correspond"
(reason: 2)
(expanded from: projects@megaglobal.net)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /www/rt/etc /www/rt/lib/i686-linux /www/rt/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 /www/rt/lib/RT/Interface/Email.pm line 81.
BEGIN failed–compilation aborted at /www/rt/lib/RT/Interface/Email.pm line 81.
Compilation failed in require at /usr/adm/sm.bin/rt-mailgate line 20.
BEGIN failed–compilation aborted at /usr/adm/sm.bin/rt-mailgate line 20.
554 5.3.0 “|/www/rt/bin/rt-mailgate --queue projects --action correspond”… unknown mailer error 2

Reporting-MTA: dns; XXX.net
Arrival-Date: Thu, 26 Jul 2001 14:35:22 -0400

Final-Recipient: RFC822; projects@megaglobal.net
X-Actual-Recipient: X-Unix; |/www/rt/bin/rt-mailgate --queue projects --action correspond
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Unix; 2
Last-Attempt-Date: Thu, 26 Jul 2001 14:35:22 -0400

Michael Jastremski
openphoto.net/mike

'll bet your setuid perl isn’t working properly. There’s some discussion of this
in the archives.On Thu, Jul 26, 2001 at 02:46:06PM -0400, Michael wrote:

I have smrsh setup to run rt-mailgate, but for some reason
its bombing out .

$Header: /raid/cvsroot/rt/bin/Attic/rt-mailgate,v 1.1.2.13 2001/07/25 05:05:07 jesse Exp $

It works fine from the command line, so i’m assuming that
its an environmental problem.

I seem to be running sendmail 8.9.3 . One unique circumstance
is that we’re running blackmail which proxies mail from
SMTP and pipes it to sendmail after a battery of spam checks.

rt-mailgate has the proper include lines too.
use lib “/www/rt/lib”;
use lib “/www/rt/etc”;

Any suggestions would be appreciated,

_Michael.

----- Forwarded message from Mail Delivery Subsystem MAILER-DAEMON@XXX.net -----

Date: Thu, 26 Jul 2001 14:35:23 -0400
From: Mail Delivery Subsystem MAILER-DAEMON@XXX.net
To: mike@XXX.net
Subject: Returned mail: see transcript for details

The original message was received at Thu, 26 Jul 2001 14:35:22 -0400
from mike@localhost

----- The following addresses had permanent fatal errors -----
"|/www/rt/bin/rt-mailgate --queue projects --action correspond"
(reason: 2)
(expanded from: projects@megaglobal.net)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /www/rt/etc /www/rt/lib/i686-linux /www/rt/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 /www/rt/lib/RT/Interface/Email.pm line 81.
BEGIN failed–compilation aborted at /www/rt/lib/RT/Interface/Email.pm line 81.
Compilation failed in require at /usr/adm/sm.bin/rt-mailgate line 20.
BEGIN failed–compilation aborted at /usr/adm/sm.bin/rt-mailgate line 20.
554 5.3.0 “|/www/rt/bin/rt-mailgate --queue projects --action correspond”… unknown mailer error 2

Reporting-MTA: dns; XXX.net
Arrival-Date: Thu, 26 Jul 2001 14:35:22 -0400

Final-Recipient: RFC822; projects@megaglobal.net
X-Actual-Recipient: X-Unix; |/www/rt/bin/rt-mailgate --queue projects --action correspond
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Unix; 2
Last-Attempt-Date: Thu, 26 Jul 2001 14:35:22 -0400


Michael Jastremski
openphoto.net/mike


Rt-devel mailing list
Rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

. . . when not in doubt, get in doubt. – Old Discordian Proveb

feargal@thecia.ie wrote a 3.6KB message. i replied …
There may also be something in the FAQ at http://www.helgrim.com/rtdocs/

Its definately because of suidperl.

Problem is , i rebuilt perl in six different ways (suid,no suid, suid emulation…)
and now all it says is ‘Can’t do suid’.

I’m running redhat 6.2 and there is next to no chance that i can get the kernel
rebuilt in the correct way (if that is even necessary).

Is there a way to run mailgate non-suid rt ?
If so, what are the consequences?

Going to do some more research on this sperl stuff …

thanks,

_M.

ps: thanks Jesse!> On Thu, 26 Jul 2001 19:30:54 -0400 Jesse jesse@fsck.com wrote:

'll bet your setuid perl isn’t working properly. There’s some discussion of this
in the archives.

On Thu, Jul 26, 2001 at 02:46:06PM -0400, Michael wrote:

I have smrsh setup to run rt-mailgate, but for some reason
its bombing out .

$Header: /raid/cvsroot/rt/bin/Attic/rt-mailgate,v 1.1.2.13 2001/07/25 05:05:07 jesse Exp $

It works fine from the command line, so i’m assuming that
its an environmental problem.

I seem to be running sendmail 8.9.3 . One unique circumstance
is that we’re running blackmail which proxies mail from
SMTP and pipes it to sendmail after a battery of spam checks.

rt-mailgate has the proper include lines too.
use lib “/www/rt/lib”;
use lib “/www/rt/etc”;

Any suggestions would be appreciated,

_Michael.

----- Forwarded message from Mail Delivery Subsystem MAILER-DAEMON@XXX.net -----

Date: Thu, 26 Jul 2001 14:35:23 -0400
From: Mail Delivery Subsystem MAILER-DAEMON@XXX.net
To: mike@XXX.net
Subject: Returned mail: see transcript for details

The original message was received at Thu, 26 Jul 2001 14:35:22 -0400
from mike@localhost

----- The following addresses had permanent fatal errors -----
"|/www/rt/bin/rt-mailgate --queue projects --action correspond"
(reason: 2)
(expanded from: projects@megaglobal.net)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /www/rt/etc /www/rt/lib/i686-linux /www/rt/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 /www/rt/lib/RT/Interface/Email.pm line 81.
BEGIN failed–compilation aborted at /www/rt/lib/RT/Interface/Email.pm line 81.
Compilation failed in require at /usr/adm/sm.bin/rt-mailgate line 20.
BEGIN failed–compilation aborted at /usr/adm/sm.bin/rt-mailgate line 20.
554 5.3.0 “|/www/rt/bin/rt-mailgate --queue projects --action correspond”… unknown mailer error 2

Reporting-MTA: dns; XXX.net
Arrival-Date: Thu, 26 Jul 2001 14:35:22 -0400

Final-Recipient: RFC822; projects@megaglobal.net
X-Actual-Recipient: X-Unix; |/www/rt/bin/rt-mailgate --queue projects --action correspond
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Unix; 2
Last-Attempt-Date: Thu, 26 Jul 2001 14:35:22 -0400


Michael Jastremski
openphoto.net/mike


Rt-devel mailing list
Rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

. . . when not in doubt, get in doubt. – Old Discordian Proveb


Rt-devel mailing list
Rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel


Feargal Reilly,
Systems Administrator,
The CIA.

Michael Jastremski
openphoto.net/mike

Hi all,

I have an up and running RT 3.2.1 system using Apache 1.3.33 and
mod_perl 1.27 on gentoo. The web interface works perfectly well and I
was just trying to setup the rt and rt-comment email addresses with
these aliases:

rt-comment: "|/usr/bin/rt-mailgate --queue general --action comment
–url http://frank2k3.plusone.com/rt/"
rt: “|/usr/bin/rt-mailgate --queue general --action
correspond --url http://frank2k3.plusone.com/rt/

But if I email either one with a small plain-text test message, I get
the following error message in my maillog:

Feb 10 12:27:59 frank2k3 postfix/local[24047]: C597615D8:
to=rt@frank2k3.plusone.com, relay=local, delay=47010, status=deferred
(temporary failure. Command output: RT server error. The RT server
which handled your email did not behave as expected. It said:

System error

error:  Undefined subroutine &MIME::Decoder::QuotedPrint::encode_qp_threearg called at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Decoder/QuotedPrint.pm line 95.
context:  91:  # and storage of messages. WARNING: we can only do this if the line won't
... 
92:  QuotedPrint.pm. However I have the 3.03
version of QuotedPrint.pm which uses encode_qp_threearg so I don’t know
what the problem could be.
What should I look at?

thanks
Chris

Chris,

This was/is an issue with versions (>5.412) of MIME-tools (which installs
MIME::QuotedPrint) and incompatibilities with MIME-Base64.

I placed a bug report on it:
http://bugs.gentoo.org/show_bug.cgi?id=76970

Submit a post to that bug which confirms its existence.

I was able to work around this problem by rolling back and emerging version
5.411a-r2 of MIME-tools.

Now supposedly the new version of MIME-tools (5.416, which is still ~x86) is
supposed to fix the incompatibilities, but I have not confirmed this.

Thanks,

Ryan Roland

Application Developer
Information Technology
Division of Recreational Sports
Indiana University

812.855.9617
rmroland@indiana.edu-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Covington,
Chris
Sent: Thursday, February 10, 2005 12:45
To: rt-users@lists.bestpractical.com
Subject: [rt-users] problem with rt-mailgate

Hi all,

I have an up and running RT 3.2.1 system using Apache 1.3.33 and
mod_perl 1.27 on gentoo. The web interface works perfectly well and I
was just trying to setup the rt and rt-comment email addresses with
these aliases:

rt-comment: "|/usr/bin/rt-mailgate --queue general --action comment
–url http://frank2k3.plusone.com/rt/"
rt: “|/usr/bin/rt-mailgate --queue general --action
correspond --url http://frank2k3.plusone.com/rt/

But if I email either one with a small plain-text test message, I get
the following error message in my maillog:

Feb 10 12:27:59 frank2k3 postfix/local[24047]: C597615D8:
to=rt@frank2k3.plusone.com, relay=local, delay=47010, status=deferred
(temporary failure. Command output: RT server error. The RT server
which handled your email did not behave as expected. It said:

System error

error:  Undefined subroutine &MIME::Decoder::QuotedPrint::encode_qp_threearg called at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Decoder/QuotedPrint.pm line 95.
context:  91:  # and storage of messages. WARNING: we can only do this if the line won't
... 
92:  QuotedPrint.pm. However I have the 3.03
version of QuotedPrint.pm which uses encode_qp_threearg so I don’t know
what the problem could be.
What should I look at?

thanks
Chris

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon!
(Boston, San Francisco, Austin, Sydney) Contact training@bestpractical.com
for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

smime.p7s (2.96 KB)