Another problem with mailgate

Hi Guys,

I’ve been reading the archives and have seen this sort of question pop up a
lot. Mine is a little different, when posting to the address
rt@dogmatix.highway1.com.au I get a bounce message as follows:

The original message was received at Wed, 18 Jul 2001 13:29:08 +0800
from staff-mail.highway1.com.au [203.32.127.95]
----- The following addresses had permanent fatal errors -----
"/usr/local/rt2/bin/rt-mailgate --queue support --action correspond"
(reason: can’t create (user) output file)
(expanded from: rt@dogmatix.highway1.com.au)
----- Transcript of session follows -----
554 5.3.0 /usr/local/rt2/bin/rt-mailgate --queue support --action
correspond… cannot open /usr/local/rt2/bin/rt-mailgate --queue
support --action correspond: Permission denied
550 5.0.0 “/usr/local/rt2/bin/rt-mailgate --queue support --action
correspond”… Can’t create output

I have already put a link in /etc/smrsh and I’m running sendmail 8.11.4

Any help would be much appreciated.
Best regards,
Robin Marshall

Thanks Phil,

That fixed part of the problem, now I’m suffering another apparently common
problem.

I initially had sendmail 8.11.4 installed which apparently causes the
following error to occur:

The original message was received at Wed, 18 Jul 2001 15:44:26 +0800
from staff-mail.highway1.com.au [203.32.127.95]
----- The following addresses had permanent fatal errors -----
"|/usr/local/rt2/bin/rt-mailgate --queue support --action correspond"
(reason: 2)
(expanded from: rt@dogmatix.highway1.com.au)

----- Transcript of session follows -----
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.6.0 /usr/lib/perl5/site_perl .) at
/usr/local/rt2/lib/RT/Interface/Email.pm line 81.

BEGIN failed–compilation aborted at
/usr/local/rt2/lib/RT/Interface/Email.pm line 81.
Compilation failed in require at /usr/local/rt2/bin/rt-mailgate line 18.
BEGIN failed–compilation aborted at /usr/local/rt2/bin/rt-mailgate line 18.
554 5.3.0 “|/usr/local/rt2/bin/rt-mailgate --queue support --action
correspond”… unknown mailer error 2

I removed sendmail 8.11.4 and replaced it with 8.10.2, also resulting in the
same problem. I noticed that Lars Leuchter has a similar problem, have you
Lars, or anyone else found a solution?

Thanks,
Robin----- Original Message -----
From: “Phil Homewood” pdh@lineo.com
To: “Robin Marshall” robin2@staff.highway1.com.au
Cc: rt-users@lists.fsck.com
Sent: Wednesday, July 18, 2001 3:26 PM
Subject: Re: [rt-users] Another problem with mailgate

Robin Marshall wrote:

----- The following addresses had permanent fatal errors -----
"/usr/local/rt2/bin/rt-mailgate --queue support --action correspond"
(reason: can’t create (user) output file)
(expanded from: rt@dogmatix.highway1.com.au)

You’re missing a pipe. Try:

“|/usr/local/rt2/bin/rt-mailgate --queue support --action correspond”

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /usr/local/rt2/etc

Your mailgate appears to have lost its setgid bit. "make fixperms"
in the RT source directory might be advisable, then check to make
sure mailgate is setgid to the RT group, and that config.pm is
readable by that group (and /usr/local/rt2/etc is as well.)

You might also want to ensure that /usr/bin/suidperl is in fact
setuid root.

“RM” == Robin Marshall robin2@staff.highway1.com.au writes:

RM> The original message was received at Wed, 18 Jul 2001 13:29:08 +0800
RM> from staff-mail.highway1.com.au [203.32.127.95]
RM> ----- The following addresses had permanent fatal errors -----
RM> "/usr/local/rt2/bin/rt-mailgate --queue support --action correspond"
RM> (reason: can’t create (user) output file)
RM> (expanded from: rt@dogmatix.highway1.com.au)

It looks like it is attempting to write the fie
/usr/local/rt2/bin/rt-mailgate. Did you forget the pipe ``|’’ in
front of the command to tell your mailer to pipe the mail instead of
writing to that file?

Robin Marshall wrote:

----- The following addresses had permanent fatal errors -----
"/usr/local/rt2/bin/rt-mailgate --queue support --action correspond"
(reason: can’t create (user) output file)
(expanded from: rt@dogmatix.highway1.com.au)

You’re missing a pipe. Try:

“|/usr/local/rt2/bin/rt-mailgate --queue support --action correspond”