SA Bugzilla – Bug 3832
$TMPDIR causes spamd to hang
Last modified: 2004-09-27 07:06:11 UTC
On my Fedora 2 system, spamd starts normally but goes into an infinite loop when spamc calls it. When I did an strace on spamd, it turned out to be a problem with permissions on files in /root/tmp, which is what root has as its TMPDIR. If TMPDIR is unset, spamd/spamc work normally. This problem is presumably related to the following change: SpamAssassin now uses a temporary file in /tmp (or $TMPDIR, if that's set in the environment) for Pyzor and DCC checks.
I've been advised that having drwxrwxrwt permissions on $TMPDIR isn't enough; the path to it must be world-executable. So perhaps this should be added to the documentation (if the temporary file can't be created before dropping root privileges).