[rt-users] rt/qmail problems

Odhiambo Washington wash at wananchi.biz
Fri Feb 14 11:04:57 EST 2003


* Kieran Barnes <kieran.barnes at stuartlawrence.com> [20030214 13:39]: wrote:
> Hi guys,
> 
> I have a problem with qmail delivering to the rt-mailgate program.
> I've searched the web and can't find anything relating to this.
> 
> This is the log entry I get. "Can't_do_setuid". I figured it was permissions on the rt-mailgate program, and the qmail-queue not having access to it.
> 
> @400000003e4cc65c12cc7a24 new msg 98739
> @400000003e4cc65c12cebc44 info msg 98739: bytes 1927 from <kieran.barnes at stuartlawrence.com> qp 26730 uid 506
> @400000003e4cc65c18018bc4 starting delivery 230: msg 98739 to local rt at support.stuartlawrence.com
> @400000003e4cc65c1801d9e4 status: local 1/10 remote 0/20
> @400000003e4cc65c18a68df4 delivery 230: deferral: setuidgid:_fatal:_unable_to_setgid:_permission_denied/
> @400000003e4cc65c18a6c4a4 status: local 0/10 remote 0/20
> 
> My qmail file was
> | setuidgid root preline /opt/rt2/bin/rt-mailgate --queue general --action correspond
> 
> 
> Is this something to do with the permissions on the rt-mailgate?
> Any ideas on this?


rt-mailgate for rt2 is setgid (chmod g+s rt-mailgate if it is not).
The other important thing would be to verify that you have suidperl and
that it is also setgid:


beastie# cd /opt/rt2/bin/
beastie# ls -al
total 85
drwxr-xr-x   2 root  rt       512 Oct  5 13:26 .
drwxr-xr-x  10 root  wheel    512 Jan 14 18:52 ..
-rwxr-xr-x   1 root  rt      2395 Sep 21 10:39 escalator
-rwxr-sr-x   1 root  rt      5545 Oct  5 13:26 mason_handler.fcgi
-rwxr-sr-x   1 root  rt      4633 Oct  5 13:26 mason_handler.scgi
-rwxr-sr-x   1 root  rt     31395 Nov 18 14:09 rt
-rwxr-sr-x   1 root  rt      9122 Oct  5 13:26 rt-mailgate
-rwxr-sr-x   1 root  rt     23823 Oct  5 13:26 rtadmin
-rwxr-xr-x   1 root  rt      4736 Oct  5 13:26 webmux.pl


        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington, wash at wananchi.com	. WANANCHI ONLINE LTD (Nairobi, KE)  |
http://ns2.wananchi.com/~wash/		. 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223			. # 10286, 00100 NAIROBI             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
						 --from a /. post



More information about the rt-users mailing list