(/usr/sbin/smrsh) exited with EX_TEMPFAIL

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay so I am still working at getting 3.0.12 fully functional before I
continue the upgrade cycle.

I am getting errors now from sendmail similar to the subject line:

May 25 00:06:40 glsrt sendmail[12707]: j4P3ND1e012364: to="|rt-mailgate

I have a script in /etc/smrsh called rt-mailgate which contains the
following:

#!/bin/sh
/opt/rt3/bin/rt-mailgate $*

It’s permissions look like this:

  • -rwxr-sr-x 1 root rt 38 May 24 23:21 /etc/smrsh/rt-mailgate

This is all running on RHEL4 and the version of sendmail is
sendmail-8.13.1-2.

I can’t think what else there is to do… does anybody else have any ideas?


Chuck Mead csm@redhat.com
Instructor II (and resident Postfix bigot), GLS
Disclaimer: "It’s Thursday and my name is Locutus of B0rk!"
Addendum: “Bwahahaha! Fire up the orbital mind-control lasers!”

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCk/u5Zfy0juH51WsRAkvnAJwLB/tbeAnjHjkfIY0lCllE0AZZzwCfT9WM
YUJNZr7inz16tTrFTeq+j4s=
=z8AT
-----END PGP SIGNATURE-----

rt-users-bounces@lists.bestpractical.com wrote:

I am getting errors now from sendmail similar to the subject line:

May 25 00:06:40 glsrt sendmail[12707]: j4P3ND1e012364:
to="|rt-mailgate - --queue general --action comment --url
http://glsrt.gls.redhat.com/",
ctladdr=rt@glsrt.gls.redhat.com (8/0), delay=00:43:27,
xdelay=00:00:00, mailer=prog, pri=304236, dsn=4.0.0,
stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL

I have a script in /etc/smrsh called rt-mailgate which contains the
following:

#!/bin/sh
/opt/rt3/bin/rt-mailgate $*

It’s permissions look like this:

  • -rwxr-sr-x 1 root rt 38 May 24 23:21 /etc/smrsh/rt-mailgate

This is all running on RHEL4 and the version of sendmail is
sendmail-8.13.1-2.

I can’t think what else there is to do… does anybody else
have any ideas?

I would look at a few things:

  1. Mail spool files. You’ll see more details in the mail spool files
    on what the program you’re calling is emitting.

  2. RT Log files. Add something like this to RT_SiteConfig.pm:

Set($LogToSyslog , ‘error’);
Set($LogToScreen , ‘error’);
Set($LogToFile , ‘debug’ );
Set($LogDir, ‘/opt/rt3/var/log’);
Set($LogToFileNamed , “rt.log”); #log to rt.log

and restart apache.

  1. Can you execute /etc/shrsh/rt-mailgate by hand? You should be
    able to invoke it with its arguments (same as in aliases) and type some
    stuff in and see what it does (or paste an actual RFC822 message into
    it).

I had some problems with wierd intermittent filesystem permissions on
my box (RHEL3) that was messing with rt-mailgate and I did this stuff to
diagnose it.

-bws

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian W. Spolarich wrote:

I can’t think what else there is to do… does anybody else
have any ideas?

I would look at a few things:

  1. Mail spool files. You’ll see more details in the mail spool files
    on what the program you’re calling is emitting.

You mean the log files? What are you saying here?

  1. RT Log files. Add something like this to RT_SiteConfig.pm:

Set($LogToSyslog , ‘error’);
Set($LogToScreen , ‘error’);
Set($LogToFile , ‘debug’ );
Set($LogDir, ‘/opt/rt3/var/log’);
Set($LogToFileNamed , “rt.log”); #log to rt.log

and restart apache.

I have exactly this in RT_SiteConfig.pm and nothing what so ever is
logged to rt.log.

  1. Can you execute /etc/shrsh/rt-mailgate by hand? You should be
    able to invoke it with its arguments (same as in aliases) and type some
    stuff in and see what it does (or paste an actual RFC822 message into
    it).

No… it does nothing.


Chuck Mead csm@redhat.com
Instructor II (and resident Postfix bigot), GLS
Disclaimer: "It’s Thursday and my name is Locutus of B0rk!"
Addendum: “Bwahahaha! Fire up the orbital mind-control lasers!”

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFClJP1Zfy0juH51WsRAoJUAKCfimj3ufa1YVXfb0JA3e3TZJosXQCfVc3d
cMy6cWFuMSjAOYkFz+wEoh8=
=tnpP
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ken O’Driscoll wrote:

Hello Chuck,

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay so I am still working at getting 3.0.12 fully functional before I
continue the upgrade cycle.

I am getting errors now from sendmail similar to the subject line:

May 25 00:06:40 glsrt sendmail[12707]: j4P3ND1e012364: to="|rt-mailgate

[ …snip… ]

I would suggest that you disable the restricted shell and see what
happens. That way, you can determine if it’s an RT issue or a sendmail
one.

Done… and now I get this…

May 25 11:25:12 glsrt sendmail[14677]: j4PFPCdZ014676:
to="|/opt/rt3/bin/rt-mailgate --queue general --action comment --url
http://glsrt.gls.redhat.com/", ctladdr=rt@glsrt.gls.redhat.com (8/0),
delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=31928, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL


Chuck Mead csm@redhat.com
Instructor II (and resident Postfix bigot), GLS
Disclaimer: "It’s Thursday and my name is Locutus of B0rk!"
Addendum: “Bwahahaha! Fire up the orbital mind-control lasers!”

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFClJkWZfy0juH51WsRAkvjAJ0bgCfUq88Cxet1Hga6XKXPZOVy7wCfU0+m
tiH1XxMoB3efYHQKveLhLfA=
=Nc7v
-----END PGP SIGNATURE-----

Chuck Mead wrote:

May 25 11:25:12 glsrt sendmail[14677]: j4PFPCdZ014676:
to="|/opt/rt3/bin/rt-mailgate --queue general --action comment --url
http://glsrt.gls.redhat.com/", ctladdr=rt@glsrt.gls.redhat.com (8/0),
delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=31928, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL

…and when you take a well-formed test email message and pipe it to
/opt/rt3/bin/rt-mailgate (with the above args), it does what?