FW: novice having trouble with mail

-----Original Message-----
From: Christen R. Pacheco
Sent: Tuesday, February 05, 2002 7:30 PM
To: ‘rt-users@lists.fsck.com’
Subject: novice having trouble with mail…

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

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/ | Save The Pacific Northwest Tree Octopus
rich@lafferty.ca -----------±----------------------------------------------