[rt-users] problem with mail-gateway conf.

stefano stefano.razzauti at yogitech.com
Wed Dec 10 04:26:12 EST 2003


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 at 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 at yogitech.com>, size=777, class=0, nrcpts=1, msgid=<3FD6E4DE.5040103 at 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 at 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 at 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:

> stefano wrote:
>
>> Hi Jorey,
>> I've tried to add a symlink in /etc/smrsh pointing to rt-mailgate and 
>> now the error I obtain is:
>>
>>  ----- The following addresses had permanent fatal errors -----
>> "|/home/rt/rt-yogitech/bin/rt-mailgate --queue ITgroup --action 
>> correspond
>>    (reason: Service unavailable)
>>    (expanded from: <rt at localhost>)
>>
>>   ----- Transcript of session follows -----
>> 553 5.0.0 "|/home/rt/rt-yogitech/bin/rt-mailgate --queue ITgroup 
>> --action correspond... Unbalanced '"'
>> smrsh: "rt-mailgate" not available for sendmail programs (stat failed)
>> 554 5.0.0 Service unavailable
>
>
> It's better to approach this systematically:
>
> First, find out if your version of sendmail is using smrsh:
>
>  sendmail -d0.20 -bv | grep smrsh
>
> If it is, then add a symlink:
>
>  cd /etc/smrsh
>  ln -s /home/rt/rt-yogitech/bin/rt-mailgate rt-mailgate
>
> Then in /etc/aliases put this (on one line):
>
>  rt:    "|/etc/smrsh/rt-mailgate --queue ITgroup --action correspond 
> --url http://itgroup.example.com/"
>
> Save the file and generate your new aliases table:
>
>  newaliases
>
> Check your log for errors. If there aren't any, send a message to RT. 
> It should work.
>
>
>
>
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>




More information about the rt-users mailing list