RT-Mailgate not in service?

Hey guys,

I finally got sendmail to receive my email from outside. Now trying to autocreate ticket, I get this response back…

The original message was received at Fri, 15 Aug 2003 23:34:22 -0700 from [172.16.1.24] ----- The following addresses had permanent fatal errors ----- “|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://172.16.1.222/” (reason: Service unavailable) (expanded from: ) ----- Transcript of session follows ----- smrsh: “rt-mailgate” not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable

In my /etc/aliases file…I have

rt3: “|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://172.16.1.222/
rt3-comment: "|/opt/rt3/bin/rt-mailgate --queue general --action comment --url http://172.16.1.222/ http://172.16.1.222/ "

Any ideas? I’ve tried to go through archive and have not found an answer that is 100% similar to mine and tried the ones similar and it did not work.

Thanks for any help!

-Jonathan

The original message was received at Fri, 15 Aug 2003 23:34:22 -0700 from [172.16.1.24] ----- The following addresses had permanent fatal errors ----- “|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://172.16.1.222/” (reason: Service unavailable) (expanded from: ) ----- Transcript of session follows ----- smrsh: “rt-mailgate” not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable

“smrsh: “rt-mailgate” not available for sendmail programs (stat failed)”

sounds like a pretty clear sendmail/smrsh error to me.

Any ideas? I’ve tried to go through archive and have not found an
answer that is 100% similar to mine and tried the ones similar and
it did not work.

I’m fairly sure this has been covered on this list, as well as being
in the sendmail docs.

seph

Well I found this link and I tried to add it in and still it didn’t work…
http://lists.fsck.com/pipermail/rt-users/2003-July/015356.html

Basically adding…

define(confEBINDIR', /usr/libexec’)dnl
FEATURE(smrsh',/usr/local/libexec/smrsh’)dnl

I guess I can try again with little modification…

define(confEBINDIR', /usr/libexec’)dnl
FEATURE(smrsh',/usr/sbin/smrsh’)dnl <=== was already in sendmail.mc

After that…I typed…

m4 /etc/mail/sendmail.mc /etc/mail/sendmail.cf
and restarted sendmail

Jonathan Chen
PS - Running on Redhat 9From: seph [mailto:seph@directionless.org]
Sent: Saturday, August 16, 2003 6:44 AM
To: JChen@paymentone.com
Cc: rt-users@lists.fsck.com
Subject: Re: RT-Mailgate not in service?

The original message was received at Fri, 15 Aug 2003 23:34:22 -0700 from [172.16.1.24] ----- The following addresses had permanent fatal errors ----- “|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://172.16.1.222/” (reason: Service unavailable) (expanded from: ) ----- Transcript of session follows ----- smrsh: “rt-mailgate” not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable

“smrsh: “rt-mailgate” not available for sendmail programs (stat failed)”

sounds like a pretty clear sendmail/smrsh error to me.

Any ideas? I’ve tried to go through archive and have not found an
answer that is 100% similar to mine and tried the ones similar and
it did not work.

I’m fairly sure this has been covered on this list, as well as being
in the sendmail docs.

seph

Wow it worked!!! I am sooo freaken happy!!! I’m chipping away till rt 3 works the way I want it to work.

Finally found the answer…

  1. Create “ln -s /opt/rt3/bin/rt-mailgate rt-mailgate” in /etc/smrsh/ dir.
  2. Change the “Everyone” group to have access to creating a ticket.

-----Original Message-----
From: JChen@paymentone.com [mailto:JChen@paymentone.com]

For emails sent to a queue called “helpdesk” I would need to
create an helpdesk account and leave rt3 account for queue
“general” right?

Your fix, creating a symlink to rt-mailgate in the smrsh directory, and
having the “Everyone” permissions correct, should work for any alias.
So, for the helpdesk@chaching.org and helpdesk-comment@chaching.org
addys you would add the following to /etc/aliases (watch the wrap):

helpdesk: “|/opt/rt3/bin/rt-mailgate --queue helpdesk --action
correspond --url http://chaching.org/
helpdesk-comment: “|/opt/rt3/bin/rt-mailgate --queue helpdesk --action
comment --url http://chaching.org/