FW: [rt-users] rt-mailgate

Cassily, Ryan rcassily at DENOVIS.COM
Thu Jun 5 13:22:22 EDT 2003


Very interesting.  I believe we're making headway.  I had to add a symbolic link in the /etc/smrsh directory to get sendmail to use rt-mailgate.  However, I am now recieving an error in the mailog:

Jun  5 12:50:19 rttracker sendmail[711]: h55GoJSP000711: from=<rcassily at DENOVIS.COM>, size=516, class=0, nrcpts=1, msgid=<B5A4987C50B02D4B8DB479C5796346243ECC6C at exchsrvr-1.ehealthdirect.com>, proto=ESMTP, daemon=MTA, relay=exchsrvr-1.ehealthdirect.com [172.16.5.112]
Jun  5 12:50:20 rttracker sendmail[712]: h55GoJSP000711: to="|rt-mailgate --queue Monitor --action correspond --url http:/localhost/", ctladdr=<monitor at rttracker.denovis.com> (8/0), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=30749, dsn=4.0.0, stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL

and I get an error back after the relay times out after 4 hrs with:

The original message was received at Thu, 5 Jun 2003 08:30:24 -0400
from exchsrvr-1.ehealthdirect.com [172.16.5.112]

   ----- Transcript of session follows -----
Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.8.0/HTTP/Cookies.pm line 124, <> chunk 1.
An Error Occurred
=================

500 Can't connect to :80 (Bad hostname '')
"|rt-mailgate --queue Monitor --action correspond --url http:/localhost/"... Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old


Seems like I'm running into a dns issue now with it coming back with a bad hostname.

-----Original Message-----
From: Michael van Elst [mailto:mlelstv at dev.de.cw.net]
Sent: Wednesday, June 04, 2003 7:14 PM
To: Cassily, Ryan
Cc: Rt-Users at Lists. Fsck. Com (E-mail)
Subject: Re: FW: [rt-users] rt-mailgate


On Wed, Jun 04, 2003, Cassily, Ryan wrote:

> Mprog,          P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/,
>                 T=X-Unix/X-Unix/X-Unix,
>                 A=smrsh -c $u

There we go. smrsh will only allow you to execute programs in
the sm.bin directory and will bail out with 'Service unavailable'
if the program isn't there.

The exact sm.bin path depends on your system, usually that's
/usr/libexec/sm.bin or /var/adm/sm.bin.

You either have to copy rt-mailgate (or a small wrapper script) into
the sm.bin directory or you have to modify the sendmail configuration
to

Mprog,          P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/,
                T=X-Unix/X-Unix/X-Unix,
                A=sh -c $u

which will allow you to run arbitrary programs to deliver mail.
It's up to you to decide wether the more strict security of
smrsh is required on your system.

Greetings,
-- 
    ,eM""=.            a"-.                         Michael van Elst
   dWWMWM" -          :GM==;                        mlelstv at dev.de.cw.net
  :WWMWMw=--.          "W='  cable & wireless
   9WWMm==-.
    "-Wmw-"  CABLE & WIRELESS



More information about the rt-users mailing list