Problem using mailgate

Hi,
I installed RT2.0 without any problem (except all the dependencies…
:slight_smile: ).

Now I try to use mailgate to create new tickets by email.
I have installed sendmail on my Linux box and sending mail to local
users work fine.
If I put an alias:
rt: jec
Mail is delivered as expected to user “jec”

But if I have an alias:
rt: “|/opt/rt2/bin/rt-mailgate --queue general --action
correspond”
An error is returned. The mail is attached. The PATH
“/opt/rt2/bin/rt-mailgate” is correct.

Must I modify sendmail.cf to let it accept running script when receiving
mails?
Thanks for any help
-jec


Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 19, 1020 Renens Switzerland
Tel +41 21 632 9043 Fax +41 21 632 9090
http://www.linkvest.com E-mail: jean-eric.cuendet@linkvest.com


mail.txt (1.41 KB)

Thanks for the tip! I works now.
It would be cool to have a reference to it in the installation help
file.

The problem is that sendmail can use a wrapper called smrsh (SendMail
Restricted Shell) to enhance security through script based aliases (like
rt-mailgate).
To let sendmail run rt-mailgate, you must symlink the executable in the
/etc/smrsh (on RH7.1 at least).
A command like:
ln -sf /opt/rt2/bin/rt-mailgate /etc/smrsh/
would do the trick.

Thanks for the help.
-jec