/opt/rt/bin/rt-mailgate wonky

So, I’m having a spot of trouble trying to make a request via the
mail. The web gateway works fine, and even mails to the correct people
the correct stuff.

My problem is when I try to create a request or try to respond to a
request. I keep getting “Returned mail: Can’t create output: Permission
denied” errors.

----- The following addresses had permanent fatal errors -----
“/opt/rt/bin/rt-mailgate neu correspond”
(expanded from: rt@dsl254-086-228-nyc1.dsl-isp.net)

----- Transcript of session follows -----
550 “/opt/rt/bin/rt-mailgate neu correspond”… Can’t create
output: Permission
denied

now, rt-mailgate is chmod 777, and it points to suid_wrapper, which is
chmod 4111 as shown below.

—s–x–x 3 rt root 12800 Jul 26 16:06 suid_wrapper*

Do I need to change the permissions on suid_wrapper? Or is it something
else?

-Sheeri

By the way, I really like RT. thanx Jesse! It’s made organizing my life
as well as my freelance work a whole lot easier (I can just put in my
queue called “life” things like, “pay phone bill” and stuff…very
useful).

what about the dir where the transactions are stored? maybe its perms
are too restrictive. I believe they should be 750 and uid/gid should be
rt/rt.

So, I’m having a spot of trouble trying to make a request via the
mail. The web gateway works fine, and even mails to the correct people
the correct stuff.

My problem is when I try to create a request or try to respond to a
request. I keep getting “Returned mail: Can’t create output: Permission
denied” errors.

----- The following addresses had permanent fatal errors -----
“/opt/rt/bin/rt-mailgate neu correspond”
(expanded from: rt@dsl254-086-228-nyc1.dsl-isp.net)

----- Transcript of session follows -----
550 “/opt/rt/bin/rt-mailgate neu correspond”… Can’t create
output: Permission
denied

now, rt-mailgate is chmod 777, and it points to suid_wrapper, which is
chmod 4111 as shown below.

—s–x–x 3 rt root 12800 Jul 26 16:06 suid_wrapper*

Do I need to change the permissions on suid_wrapper? Or is it something
else?

-Sheeri

By the way, I really like RT. thanx Jesse! It’s made organizing my life
as well as my freelance work a whole lot easier (I can just put in my
queue called “life” things like, “pay phone bill” and stuff…very
useful).


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

Happy Landings,

Jon Detert
Unix System Administrator, Milwaukee School of Engineering
1025 N. Broadway, Milwaukee, Wisconsin 53202

what about the dir where the transactions are stored? maybe its perms
are too restrictive. I believe they should be 750 and uid/gid should be
rt/rt.

[sheeri@localhost rt]$ ll transactions/ -d
drwxr-x— 3 rt rt 4096 Aug 2 15:27 transactions//

so apparently they are OK…any other suggestions?

-Sheeri

try capturing a mail message to a file on disk
and then running “cat file | /opt/rt/bin/rt-mailgate queue correspond”
ahd tell me what happens.

I ended up getting an e-mail message that says I don’t have permission to
create users in queues. I know you recently told Jim Clark to check out
%rt users and %rt pass, but what exactly does that mean? The
documentation on the mail gateway is, um, nonexistent. When I send a mail
to rt, with the body %RT HELP, I get nothing.

-Sheeri

I ended up getting an e-mail message that says I don’t have permission to
create users in queues.

Well, the last time I saw a message resembling that, I had to go back to my RT
admin screen, select the queue for which I wanted to send mail to, and check
the box that says “non-users may create requests” or something like that.

The documentation on the mail gateway is, um, nonexistent. When I send a
mail
to rt, with the body %RT HELP, I get nothing.

The documentation is a bit sparse - I just keep everything on correspond. Can
you send a copy of the aliases file that contains your mail gateway configs?
Are you using sendmail to handle your mail or something else?

Based on the error message, the error 550 seems to indicate that the mail
gateway may not be properly configured (and therefore the mailer is trying to
deliver to a non-existent account on your server, rather than forward it off
to the mail queue).

So, I’m having a spot of trouble trying to make a request via the
mail. The web gateway works fine, and even mails to the correct people
the correct stuff.

My problem is when I try to create a request or try to respond to a
request. I keep getting “Returned mail: Can’t create output: Permission
denied” errors.

----- The following addresses had permanent fatal errors -----
“/opt/rt/bin/rt-mailgate neu correspond”
^— It seems to me that there is missing a pipe character
so your local mailer tries to write info file /opt/rt/bin/rt-mailgate
(instead its invocation). I suggest to look at correctness of your mail
aliases.

(expanded from: rt@dsl254-086-228-nyc1.dsl-isp.net)

----- Transcript of session follows -----
550 “/opt/rt/bin/rt-mailgate neu correspond”… Can’t create
output: Permission
denied

now, rt-mailgate is chmod 777, and it points to suid_wrapper, which is
chmod 4111 as shown below.

—s–x–x 3 rt root 12800 Jul 26 16:06 suid_wrapper*

Do I need to change the permissions on suid_wrapper? Or is it something
else?

-Sheeri

By the way, I really like RT. thanx Jesse! It’s made organizing my life
as well as my freelance work a whole lot easier (I can just put in my
queue called “life” things like, “pay phone bill” and stuff…very
useful).


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

Jan Okrouhly
-----------------------------------------+---–okrouhly@civ.zcu.cz—
Laboratory for Computer Science | phone: (420 19) 7491588
University of West Bohemia | location: Univerzitni 22
Americka 42, 306 14 Pilsen, Czech Republic | room: UI404
------------------------------------------73!-de-OK1INC@OK0PPL.#BOH.CZE.EU-

----- The following addresses had permanent fatal errors -----
“/opt/rt/bin/rt-mailgate neu correspond”
^— It seems to me that there is missing a pipe character
so your local mailer tries to write info file /opt/rt/bin/rt-mailgate
(instead its invocation). I suggest to look at correctness of your mail
aliases.

That makes sense. I was having problems before, with the pipe in place,
and so I had taken it out. However, I have now placed the pipe back in so
the lines in my /etc/aliases look like this:

rt: |“/opt/rt/bin/rt-mailgate neu correspond”

rt-action: |“opt/rt/bin/rt-mailgate neu action”

and when I send a message to rt, with a line in the body %RT HELP I get
the error attached at the bottom.

I’m a bit bothered by the “sh: rt-mailgate not available for sendmail
programs” message in the error message…

thanx for any suggestions…

-Sheeri

error message:

The original message was received at Thu, 10 Aug 2000 09:24:27 -0500
from sheeri@localhost

----- The following addresses had permanent fatal errors -----
|“/opt/rt/bin/rt-mailgate neu correspond”
(expanded from: rt@dsl254-086-228-nyc1.dsl-isp.net)

----- Transcript of session follows -----
sh: rt-mailgate not available for sendmail programs
554 |“/opt/rt/bin/rt-mailgate neu correspond”… Service unavailable

[ Part 2: "Delivery Status" ]

Reporting-MTA: dns; dsl254-086-228-nyc1.dsl-isp.net
Arrival-Date: Thu, 10 Aug 2000 09:24:27 -0500

Final-Recipient: RFC822; rt@dsl254-086-228-nyc1.dsl-isp.net
X-Actual-Recipient: RFC822; |/opt/rt/bin/rt-mailgate neu
correspond@dsl254-086-228-nyc1.dsl-isp.net
Action: failed
Status: 5.5.0
Last-Attempt-Date: Thu, 10 Aug 2000 09:24:28 -0500

[ Part 3: "Included Message" ]Date: Thu, 10 Aug 2000 09:24:27 -0500 (CDT)

From: Sheeri Kritzer sheeri@dsl254-086-228-nyc1.dsl-isp.net
To: Request Tracker rt@dsl254-086-228-nyc1.dsl-isp.net
Subject: help

%RT HELP

| I’m a bit bothered by the “sh: rt-mailgate not available for sendmail
| programs” message in the error message…
±–>8

Your sendmail is configured with smrsh, and smrsh hasn’t been set up to
accept rt-mailgate. Typically you need to make a link to rt-mailgate in
whatever directory smrsh restricts access to.

brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
electrical and computer engineering KF8NH
carnegie mellon university [“better check the oblivious first” -ke6sls]

Your sendmail is configured with smrsh, and smrsh hasn’t been set up to
accept rt-mailgate. Typically you need to make a link to rt-mailgate in
whatever directory smrsh restricts access to.

Ah, yes, that was it. Thanks very much…I remembered seeing something
about that on the FAQ, so I made the link, and voila! e-mail gateways!

-Sheeri