You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Manfred Langthaller <ro...@aon.at> on 2008/01/23 15:23:30 UTC
cannot use --sql-config without -u => setuidgid
Hi!
I am running a qmail-ldap Mailserver on Debian 3.1 (sarge).
Spamassassin is called through simscan, which passes a username
(email-address) to spamd before scanning.
(Simscan passes the username running simscan, if there are more than one
recipients)
Spamassassin is configured to have user-preferences, per-user-bayes, AWL
data stored in an mysql-database.
All my qmail-ldap processes are started and supervised by DJB's daemontools.
The according run script concerning spamd looks like this:
###
...
exec setuidgid vmail /usr/bin/spamd -x -q --max-children 5
--helper-home-dir=/etc/mail/spamassassin -s stderr
--socketpath=/var/run/spamd/spamd.sock
###
Spamd runs as user vmail as you can see below.
But after upgrading to spamassassin 3.2.4 spamd refuses to start =>
"cannot use --sql-config without -u" (now spamd runs with -x -q -u vmail)
It seems that the "setuidgid to vmail" is not recognized.
root@gateway:~# ps aux |grep spamd
...
vmail 12411 0.0 0.6 4844 3380 ? R 14:46 0:00
/usr/bin/perl -T -w /usr/bin/spamd -x -q --max-children 5
--helper-home-dir=/etc/mail/spamassassin -s stderr
--socketpath=/var/run/spamd/spamd.sock
root 12413 0.0 0.1 1880 712 pts/1 R+ 14:46 0:00 grep spamd
Regards,
Manfred
Re: cannot use --sql-config without -u => setuidgid
Posted by Manfred Langthaller <ro...@aon.at>.
Manfred Langthaller schrieb:
> Hi!
>
> I am running a qmail-ldap Mailserver on Debian 3.1 (sarge).
> Spamassassin is called through simscan, which passes a username
> (email-address) to spamd before scanning.
> (Simscan passes the username running simscan, if there are more than one
> recipients)
> Spamassassin is configured to have user-preferences, per-user-bayes, AWL
> data stored in an mysql-database.
>
> All my qmail-ldap processes are started and supervised by DJB's
> daemontools.
>
> The according run script concerning spamd looks like this:
>
> ###
> ...
> exec setuidgid vmail /usr/bin/spamd -x -q --max-children 5
> --helper-home-dir=/etc/mail/spamassassin -s stderr
> --socketpath=/var/run/spamd/spamd.sock
> ###
>
> Spamd runs as user vmail as you can see below.
> But after upgrading to spamassassin 3.2.4 spamd refuses to start =>
> "cannot use --sql-config without -u" (now spamd runs with -x -q -u vmail)
>
> It seems that the "setuidgid to vmail" is not recognized.
>
> root@gateway:~# ps aux |grep spamd
> ...
> vmail 12411 0.0 0.6 4844 3380 ? R 14:46 0:00
> /usr/bin/perl -T -w /usr/bin/spamd -x -q --max-children 5
> --helper-home-dir=/etc/mail/spamassassin -s stderr
> --socketpath=/var/run/spamd/spamd.sock
> root 12413 0.0 0.1 1880 712 pts/1 R+ 14:46 0:00 grep spamd
>
> Regards,
>
> Manfred
>
>
>
Additional info:
From the debug log I can see $setuid_to_user is set to 0.
dbg: spamd: will perform setuids? 0
I think im my setup it is not necessary check for -u.
Regards,
Manfred