Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Compile problem on CentOS 4.2

2006-03-29 by Kai Schaetzl

Emmanuel Dreyfus wrote on Wed, 29 Mar 2006 09:24:03 +0000:

> Maybe we should just check if euid == 0 and skip any setuid/setgid/initgroups 
> if it's not the case?

Not sure what exactly euid is? uid? effective uid?

After all the explanations I think it is simply the init script which is wrong. 
It's wrong to put the intended milter-greylist user as startup option for 
daemon.

Either:
user="smmsp"
OPTIONS="-u $user -P $pidfile -p $socket"

or
#user="smmsp"
OPTIONS="-P $pidfile -p $socket"
#(user is in greylist.conf, anyway)

together with startup line:
daemon /usr/local/bin/milter-greylist $OPTIONS
#(no --user=$user)

will do it.
We don't need any startup user for daemon, it should be started from root 
anyway, shouldn't it?

I verified that it works for me. I also verified that -u overrides the ini 
option.





Kai

-- 
Kai Sch\ufffdtzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.