I followed exactly your suggestions:
-bash-2.05b# sendmail -d0.20 -bv | grep smrsh
mailer 0 (prog): P=/usr/sbin/smrsh S=EnvFromL/HdrFromL R=EnvToL/HdrToL
M=0 U=0:0 F=9DFMeloqsu L=0 E=\n T=X-Unix/X-Unix/X-Unix r=100 A=smrsh -c $u
So I think smrsh is used by sendmail.
Then I put the rt-mailgate symlink inside /etc/smrsh
and I modified the /etc/aliases adding the following line:
rt:"|/etc/smrsh/rt-mailgate --queue ITgroup --action correspond
–url=http://rt.yogitech.int:9091
then I run the newaliases command to refresh them.
But when I try to send an e-mail to the rt mail account, I got the mail
reply with the following body:
----- The following addresses had permanent fatal errors -----
“|/etc/smrsh/rt-mailgate --queue ITgroup --action correspond --url=http://rt.yogitech.int:9091”
(reason: Service unavailable)
(expanded from: rt@localhost)
----- Transcript of session follows -----
smrsh: “rt-mailgate” not available for sendmail programs (stat failed)
Looking the /var/log/maillog file, the messages logged are:
Dec 10 11:17:19 jose sendmail[13247]: hBAAHJTG013247: from=stefano.razzauti@yogitech.com, size=777, class=0, nrcpts=1, msgid=3FD6E4DE.5040103@yogitech.com, bodytype=7BIT, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Dec 10 11:17:19 jose sendmail[13249]: hBAAHJTG013247: Warning: program /usr/sbin/smrsh unsafe: Group writable file
Dec 10 11:17:19 jose smrsh: uid 8: attempt to use “rt-mailgate --queue ITgroup --action correspond --url=http://rt.yogitech.int:9091” (stat failed)
Dec 10 11:17:19 jose sendmail[13248]: hBAAHJTG013247: to=“|/etc/smrsh/rt-mailgate --queue ITgroup --action correspond --url=http://rt.yogitech.int:9091”, ctladdr=rt@localhost (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30962, dsn=5.0.0, stat=Service unavailable
Dec 10 11:17:19 jose sendmail[13248]: hBAAHJTG013247: hBAAHJTG013248: DSN: Service unavailable
Dec 10 11:17:25 jose sendmail[13248]: hBAAHJTG013248: to=stefano.razzauti@yogitech.com, delay=00:00:06, xdelay=00:00:05, mailer=relay, pri=31986, relay=mail.yogitech.com. [194.153.172.36], dsn=2.0.0, stat=Sent (hBA94S918691 Message accepted for delivery)
ste
554 5.0.0 Service unavailable
Jorey Bump wrote: