[rt-users] Problem configuring the mail gateway

Rainer Weigle weigle at dkrz.de
Wed Apr 5 09:06:33 EDT 2000


Hi everyone,

I have configured the mailgateway according to the documentation.
If I send an email to the mail alias it is send back by sendmail with the
follwing error:

----- The following addresses had permanent fatal errors -----
|"/opt/rt/bin/rt-mailgate Test correspond"
(expanded from: <rt-test at arbogaan.dkrz.de>)

----- Transcript of session follows -----
sh: /opt/rt/bin/rt-mailgate: cannot execute
554 |"/opt/rt/bin/rt-mailgate Test correspond"... unknown mailer error 1

To solve this I changed the permissions of the suid-wrapper (I know that this
should be wrong):

arbogaan: /<2>bin # ls -la
total 42
dr-xr-xr-x   3 root     root         512 Apr  4 17:19 ./
dr-xr-xr-x   5 root     root         512 Apr  4 09:01 ../
...
lrwxrwxrwx   1 root     other         24 Apr  4 17:19 rt-mailgate ->/opt/rt/bin/suid_wrapper* 
...
-rwxr-xr-x   3 rt       rt          7792 Apr  4 17:19 suid_wrapper*

to allow execution by others.

But than sendmail answers: 

----- The following addresses had permanent fatal errors -----
|"/opt/rt/bin/rt-mailgate Test correspond"
(expanded from: <rt-test at arbogaan.dkrz.de>)

----- Transcript of session follows -----
Can't locate /opt/rt/etc/config.pm in @INC (@INC contains: /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 /opt/rt/lib) at /opt/rt/bin/rtmux.pl line 20.
554 |"/opt/rt/bin/rt-mailgate Test correspond"... unknown mailer error 13

This can be solved by making config.pm world readable but than the problems
continue:

----- The following addresses had permanent fatal errors -----
|"/opt/rt/bin/rt-mailgate Test correspond"
(expanded from: <rt-test at arbogaan.dkrz.de>)

----- Transcript of session follows -----
Could not create dir /var/rt/transactions/2000: Permission denied
554 |"/opt/rt/bin/rt-mailgate Test correspond"... unknown mailer error 13

My conclusion:
rt-mailgate isn't executed under the right user and group (rt:rt).
How can I tell sendmail which user or group it should use ???

Can anyone help me with that ???

Thanks Rainer

 -- 
Rainer Weigle - MPI fuer Meteorologie
weigle at dkrz.de
040 / 41173 - 373 







More information about the rt-users mailing list