Your message dated Thu, 08 Mar 2007 13:52:11 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#413753: spampd: auto-whitelist broken due to wrong file
permissions
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: spampd
Version: 2.30-16
Severity: important
Heya,
during the start of the spampd daemon the awl.mutex is created with
root:root permissions, which results in this error message:
spampd[32464]: auto-whitelist: open of auto-whitelist file failed:
locker: safe_lock: cannot create lockfile /var/cache/spampd/awl.mutex:
Permission denied
Looks liek the spampd-childs try to access the lockfile which is held by
the parent process.
one:/var/cache/spampd# ll
total 9640
-rw------- 1 spampd spampd 5234688 2007-02-26 02:56 awl
-rw------- 1 root root 6 2007-03-03 09:27 awl.mutex
-rw------- 1 spampd spampd 18864 2007-03-07 00:02 bayes_journal
-rw------- 1 spampd spampd 14364 2007-03-07 00:02 bayes.mutex
-rw------- 1 spampd spampd 2510848 2007-03-07 00:02 bayes_seen
-rw------- 1 spampd spampd 5046272 2007-03-07 00:02 bayes_toks
one:/var/cache/spampd# rm awl.mutex
one:/var/cache/spampd# ll
total 9636
-rw------- 1 spampd spampd 5234688 2007-02-26 02:56 awl
-rw------- 1 spampd spampd 18864 2007-03-07 00:02 bayes_journal
-rw------- 1 spampd spampd 14364 2007-03-07 00:02 bayes.mutex
-rw------- 1 spampd spampd 2510848 2007-03-07 00:02 bayes_seen
-rw------- 1 spampd spampd 5046272 2007-03-07 00:02 bayes_toks
one:/var/cache/spampd# /etc/init.d/spampd restart
Stopping spam checking proxy daemon: spampd .
Starting spam checking proxy daemon: spampd.
one:/var/cache/spampd# ll
total 9640
-rw------- 1 spampd spampd 5234688 2007-02-26 02:56 awl
-rw------- 1 root root 6 2007-03-07 00:24 awl.mutex
-rw------- 1 spampd spampd 18864 2007-03-07 00:02 bayes_journal
-rw------- 1 spampd spampd 14364 2007-03-07 00:02 bayes.mutex
-rw------- 1 spampd spampd 2510848 2007-03-07 00:02 bayes_seen
-rw------- 1 spampd spampd 5046272 2007-03-07 00:02 bayes_toks
one:/var/cache/spampd#
I also have the same problem which was reported in #395355, everything
else seems to work well.
Thanks and best regards,
Bernd
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.2-grsec
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages spampd depends on:
ii adduser 3.102 Add and remove users and groups
ii dpkg 1.13.25 package maintenance system for Deb
ii libnet-server-perl 0.94-1 An extensible, general perl server
ii lsb-base 3.1-23 Linux Standard Base 3.1 init scrip
ii perl 5.8.8-7 Larry Wall's Practical Extraction
ii spamassassin 3.1.7-2 Perl-based spam filter using text
spampd recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Bernd Zeimetz schrieb:
> during the start of the spampd daemon the awl.mutex is created with
> root:root permissions, which results in this error message:
>
> spampd[32464]: auto-whitelist: open of auto-whitelist file failed:
> locker: safe_lock: cannot create lockfile /var/cache/spampd/awl.mutex:
> Permission denied
>
> Looks liek the spampd-childs try to access the lockfile which is held by
> the parent process.
There isn't anything I see I could do about this. But you can:
Add "auto_whitelist_file_mode 0666" to your SpamAssassin configuration
(see "perldoc Mail::SpamAssassin::Plugin::AWL" for details).
This solution isn't very safe, but I recommend using MySQL or PostgreSQL
for storing AWL and Bayes data anyway (see
/usr/share/doc/spamassassin/sql for details).
I'm adding an appropriate hint to README.Debian in future releases.
Regards,
Sven
PS: Closing the bug as there isn't anything I could do in spampd
automatically but the problem doesn't surface with the proper configuration.
PPS: 395255 (multi recipient LMTP) is pending upload.
--- End Message ---