Setuid

Lo all,

Does anyone have an idea why rt-mailgate aren’t able to setuid?

I know it’s more than likely a error related towards my MTU or a system
related issue, but I can’t seem to shake it. I’ve added the rt group to
Exim’s trusted users, but that also didn’t seem to be able to solve the
problem.

Relevant MTU is exim-3.36 calling RT via the aliasfile driver,

The following text was generated during the delivery attempt:

------ pipe to |/usr/local/rt/bin/rt-mailgate --queue xxx --action
correspond
generated by xxx@xxx.co.za ------

Can’t do setuid

------ This is a copy of the message, including all the headers. ------

root@netsonic:/usr/local/rt/bin# ls -l /usr/local/rt/bin/
total 80
-rwxr-sr-x 1 root rt 5140 Jul 11 23:26 mason_handler.fcgi
-rwxr-sr-x 1 root rt 4643 Jul 11 23:26 mason_handler.scgi
-rwxr-sr-x 1 root rt 31129 Jul 11 23:26 rt
-rwxr-sr-x 1 root rt 9126 Jul 11 23:26 rt-mailgate
-rwxr-sr-x 1 root rt 23833 Jul 11 23:26 rtadmin
-rwxr-xr-x 1 root rt 4471 Jul 11 23:26 webmux.pl

Thanks in advance,

me

Does anyone have an idea why rt-mailgate aren’t able to setuid?

I know it’s more than likely a error related towards my MTU or a system

If it is related to your system’s MTU size, I’ll eat my normal head
covering.

Several answers in the FAQ answer your question:

http://www.fsck.com/rtfm/search.html?LimitContent=setuid

related issue, but I can’t seem to shake it. I’ve added the rt group to
Exim’s trusted users, but that also didn’t seem to be able to solve the
problem.

‘trusted users’ in most MTAs refers to the users that are allowed to set
the ‘From’ or ‘Sender’ address to something other than that username.
Unless exim has changed some stuff recently, I don’t think it refers to
users allowed to do special things when receiving mail.

Relevant MTU is exim-3.36 calling RT via the aliasfile driver,

The following text was generated during the delivery attempt:

------ pipe to |/usr/local/rt/bin/rt-mailgate --queue xxx --action
correspond
generated by xxx@xxx.co.za ------

Have you tried running rt-mailgate as the user exim tries to run it as?
This should be in group ‘rt’.

Can’t do setuid

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security

I know it’s more than likely a error related towards my MTU or a system

If it is related to your system’s MTU size, I’ll eat my normal head
covering.

This was a simple spelling mistake, and was ment to be MTA. I’m definately
not that stupid…

Several answers in the FAQ answer your question:

http://www.fsck.com/rtfm/search.html?LimitContent=setuid

Yes thanks, I found it a few minutes after I send the message allready -
thanks.