FW: FW: novice having trouble with mail

Checked… it is there… is there any other thing I could look for this
one is really throwing me through a loop… thanks…

[root@rt root]# ls -lash /etc/smrsh/
total 8.0k
4.0k drwxr-xr-x 2 root root 4.0k Feb 5 20:33 .
4.0k drwxr-xr-x 49 root root 4.0k Feb 5 18:58 …
0 lrwxrwxrwx 1 root root 24 Feb 5 20:33 rt-mailgate ->
/opt/rt2/bin/rt-mailgate
0 lrwxrwxrwx 1 root root 19 Jan 3 04:59 slocal ->
/usr/lib/nmh/slocal-----Original Message-----
From: Rich Lafferty [mailto:rich+rt@lafferty.ca]
Sent: Tuesday, February 05, 2002 9:44 PM
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] FW: novice having trouble with mail…

On Tue, Feb 05, 2002 at 08:25:44PM -0500, Christen R. Pacheco (cpacheco@planninggroup.com) wrote:

smrsh: rt-mailgate.--queue.general not available for sendmail

programs

There’s the error. You need to let smrsh run rt-mailgate. Make a
symlink to rt-mailgate in /etc/smrsh (or wherever that directory is on
your system).

Jesse, could you add

Since the standard sendmail configuration will call rt-mailgate
with smrsh, the sendmail restricted shell, you must tell smrsh
that it is allowed to run it. To do so, make a symlink in
/etc/smrsh to rt-mailgate:

 # ln -s /path/to/rt2/bin/rt-mailgate /etc/smrsh/rt-mailgate

to the sendmail section of the docs, following the newaliases command?

(Also, I noticed that qmail Method 2 is still there. I’d encourage you
to remove it; I can’t think of any reason you’d have to add an rt user
just to configure qmail unless you already had a sufficiently complex
virtualhosts setup, in which case the recipe in Method 2 probably
wouldn’t work out of the box anyhow. If you don’t remove it, then the
pipelines MUST call preline like the ones in the example above it.)

-Rich

Rich Lafferty
Ottawa, Ontario, Canada | Save the Pacific Northwest Tree Octopus!
http://www.lafferty.ca/ | http://zapatopi.net/treeoctopus.html
rich@lafferty.ca

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

|+ Checked… it is there… is there any other thing I could look for this
|+ one is really throwing me through a loop… thanks…
|+
can you include your alias file, particular, the alias section for rt?

Here is the orginal thread… with all of that information… Sorry I
didn’t include it last time…
I am having an issue with configure the Email Gateway I am using a
default install of redhat 7.2 with sendmail. I have followed the
instructions very carefully and these are the lines I have added to my
/etc/aliases file:

    help:| /opt/rt2/bin/rt-mailgate --queue general --action

correspond
help-comment: | /opt/rt2/bin/rt-mailgate --queue general
–action comment
noc: | /opt/rt2/bin/rt-mailgate --queue network --action
correspond
noc-comment: | /opt/rt2/bin/rt-mailgate --queue network --action
comment
I then rebuild aliases of course but when i send an email from and
external address ie christen_0125@hotmail.com
I receive this back: from the server on my client…
The original message was received at Tue, 5 Feb 2002 18:00:51
-0500 from f128.law11.hotmail.com [64.4.17.128]
----- The following addresses had permanent fatal errors
| /opt/rt2/bin/rt-mailgate --queue general
(reason: service unavailable)
(expanded from: help@rt.spidergate.net)
----- Transcript of session follows -----
smrsh: rt-mailgate.–queue.general not available for sendmail
programs
554 5.0.0 Service unavailable
Reporting-MTA: dns; rt.spidergate.net
Received-From-MTA: DNS; f128.law11.hotmail.com
Arrival-Date: Tue, 5 Feb 2002 18:00:51 -0500

    Final-Recipient: RFC822; help@rt.spidergate.net
    X-Actual-Recipient: X-Unix;

|/opt/rt2/bin/rt-mailgate.–queue.general
Action: failed
Status: 5.5.0
Diagnostic-Code: X-Unix; 69
Last-Attempt-Date: Tue, 5 Feb 2002 18:00:52 -0500

Here is my tail /var/log/maillog

Feb 5 18:54:02 rt sendmail[2250]: g15Nrs802250: from=root, size=13,
class=0, nrcpts=1, msgid=200202052353.g15Nrs802250@rt.spidergate.net,
relay=root@localhost

Feb 5 18:54:02 rt smrsh: uid 8: attempt to use
rt-mailgate.–queue.general

Feb 5 18:54:02 rt sendmail[2250]: g15Nrs802250: to=|
/opt/rt2/bin/rt-mailgate --queue general, ctladdr=help@rt.spidergate.net
(8/0), delay=00:00:08, xdelay=00:00:00, mailer=prog, pri=30013,
dsn=5.0.0, stat=Service unavailable

Feb 5 18:59:35 rt sendmail[2314]: g15NxNf02314: from=root, size=10,
class=0, nrcpts=1, msgid=200202052359.g15NxNf02314@rt.spidergate.net,
relay=root@localhost

Feb 5 18:59:35 rt smrsh: uid 8: attempt to use
rt-mailgate.–queue.general.–action.correspond

Feb 5 18:59:35 rt sendmail[2314]: g15NxNf02314:
to=|/opt/rt2/bin/rt-mailgate --queue general --action correspond,
ctladdr=help@rt.spidergate.net (8/0), delay=00:00:12, xdelay=00:00:00,
mailer=prog, pri=30010, dsn=5.0.0, stat=Service unavailable

Feb 5 19:00:29 rt sendmail[2365]: g1600OQ02365: from=root, size=5,
class=0, nrcpts=1, msgid=200202060000.g1600OQ02365@rt.spidergate.net,
relay=root@localhost

Feb 5 19:00:29 rt smrsh: uid 8: attempt to use
rt-mailgate.–queue.general.–action.correspond

Feb 5 19:00:29 rt sendmail[2365]: g1600OQ02365:
to=|/opt/rt2/bin/rt-mailgate --queue general --action correspond,
ctladdr=help@rt.spidergate.net (8/0), delay=00:00:05, xdelay=00:00:00,
mailer=prog, pri=30005, dsn=5.0.0, stat=Service unavailable

Any help would be greatly appreciated I have been searching deja with no
luck… Thanks

Christen-----Original Message-----
From: Darrin Walton [mailto:darrinw@nixc.net]
Sent: Wednesday, February 06, 2002 11:18 AM
To: Christen R. Pacheco
Cc: rt-users@lists.fsck.com
Subject: Re: FW: [rt-users] FW: novice having trouble with mail…

On Wed, Feb 06, 2002 at 10:26:45AM -0500, Christen R. Pacheco wrote:
|+ Checked… it is there… is there any other thing I could look for
this
|+ one is really throwing me through a loop… thanks…
|+
can you include your alias file, particular, the alias section for rt?

    help:| /opt/rt2/bin/rt-mailgate --queue general --action

correspond

Try (the quotes are important):

help: "| /opt/rt2/bin/rt-mailgate --queue general --action

correspond"

http://www.fsck.com/rtfm/factoid.html?id=111 will also help you.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

|+ help:| /opt/rt2/bin/rt-mailgate --queue general --action
|+ correspond
|+ help-comment: | /opt/rt2/bin/rt-mailgate --queue general
|+ --action comment
|+ noc: | /opt/rt2/bin/rt-mailgate --queue network --action
|+ correspond
|+ noc-comment: | /opt/rt2/bin/rt-mailgate --queue network --action
|+ comment

You need to have things in quotation marks.

noc: “|/opt/rt2/bin/rt-mailgate --queue network --action comment”

-darrin

I have them in quotes and it still is not working correctly… here is a
mail from the command line…

sendmail -v -t help@rt.spidergate.net
help@rt.spidergate.net… aliased to “| /opt/rt2/bin/rt-mailgate --queue
general --action correspond"
tst
.
”| /etc/smrsh/rt-mailgate --queue general --action correspond"…
Connecting to prog…
/root/dead.letter… Saved message in /root/dead.letter
[root@rt bin]# Feb 6 12:53:23 rt sendmail[6451]: g16HrII06451:
from=root, size=4, class=0, nrcpts=1,
msgid=200202061753.g16HrII06451@rt.spidergate.net,
relay=root@localhost
Feb 6 12:53:23 rt sendmail[6451]: g16HrII06451: to="|
/etc/smrsh/rt-mailgate --queue general --action correspond",
ctladdr=help@rt.spidergate.net (8/0), delay=00:00:05, xdelay=00:00:00,
mailer=prog, pri=30004, dsn=5.3.0, stat=unknown mailer error 2-----Original Message-----
From: Darrin Walton [mailto:darrinw@nixc.net]
Sent: Wednesday, February 06, 2002 11:50 AM
To: Christen R. Pacheco
Cc: rt-users@lists.fsck.com
Subject: Re: FW: [rt-users] FW: novice having trouble with mail…

|+ help:| /opt/rt2/bin/rt-mailgate --queue general --action
|+ correspond
|+ help-comment: | /opt/rt2/bin/rt-mailgate --queue general
|+ --action comment
|+ noc: | /opt/rt2/bin/rt-mailgate --queue network --action
|+ correspond
|+ noc-comment: | /opt/rt2/bin/rt-mailgate --queue network
–action
|+ comment

You need to have things in quotation marks.

noc: “|/opt/rt2/bin/rt-mailgate --queue network --action comment”

-darrin

I have them in quotes and it still is not working correctly… here is a
mail from the command line…

sendmail -v -t help@rt.spidergate.net
help@rt.spidergate.net… aliased to “| /opt/rt2/bin/rt-mailgate --queue
general --action correspond"
tst
.
”| /etc/smrsh/rt-mailgate --queue general --action correspond"…
Connecting to prog…
/root/dead.letter… Saved message in /root/dead.letter

A ‘perl -c /etc/smrsh/rt-mailgate’ will show you whether the RT system can
run, or whether it is missing some libraries.

Regards,

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

Thanks for all of your help… Yesterday I re-examined my install and decided to recompile and reinstall the system… after that everything worked great…
thank you everyone for responding and helping me out…
Christen-----Original Message-----
From: Bruce Campbell [mailto:bruce_campbell@ripe.net]
Sent: Thursday, February 07, 2002 7:29 AM
To: Christen R. Pacheco
Cc: rt-users@lists.fsck.com
Subject: RE: FW: [rt-users] FW: novice having trouble with mail…

On Wed, 6 Feb 2002, Christen R. Pacheco wrote:

I have them in quotes and it still is not working correctly… here is a
mail from the command line…

sendmail -v -t help@rt.spidergate.net
help@rt.spidergate.net… aliased to “| /opt/rt2/bin/rt-mailgate --queue
general --action correspond"
tst
.
”| /etc/smrsh/rt-mailgate --queue general --action correspond"…
Connecting to prog…
/root/dead.letter… Saved message in /root/dead.letter

A ‘perl -c /etc/smrsh/rt-mailgate’ will show you whether the RT system can
run, or whether it is missing some libraries.

Regards,

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations