Theo Van Dinter wrote:
On Tue, Jul 17, 2007 at 01:36:16PM -0300, Diego Pomatta wrote:
Now that I got the spamd log working again, I keep seeing these errors:
warn: util: secure_tmpfile failed to create file '/root/tmp/.spamassassin7688bq4Fdstmp': Permission denied (many times)

What I don't get is why it can't write to /root/tmp. I've checked permissions and it should be able to.

is the child spamd process running as root?  does /root/tmp exist?  is there
some acl on the directory/etc ?

Yep, they all run as root.

[]# ps -edaf|grep spamd
root 7683 1 0 11:04 ? 00:00:02 /usr/bin/perl5.8.3 -T -w /usr/bin/spamd -l -L -s stderr -r /var/run/spamd.pid --siteconfigpath=/etc/mail/spamassassin --nouser-config --socketpath=/tmp/spamd.sock qmaill 7684 1 0 11:04 ? 00:00:00 /usr/local/bin/multilog t n20 s1000000 /var/log/spamd
root     18898  7683  0 14:26 ?        00:00:05 spamd child
root     28538  7683  0 17:04 ?        00:00:00 spamd child

The directory /root/tmp exists
drwxrwx---  11 root root  4096 jul 17 16:57 tmp/

[/]# getfacl root/tmp
file: root/tmp
owner: root
group: root
user::rwx
group::rwx
other::---

In any case, what can I do? is that temp file path customizable?

It uses $ENV{'TMPDIR'} or File::Spec->tmpdir() if it's not set.  According to
the POD, tmpdir() uses $ENV{'TMPDIR'} or "/tmp".  So my guess is that you
already have TMPDIR set, potentially incorrectly.
Yes I have:
TMP=/root/tmp
TMPDIR=/root/tmp

What impact is this having in SA performance or work?
Only non-text parts should be written out to a temp file, so it would
impact any code that looks at the non-text part data.  This should (iirc)
be limited to any third party plugins, such as FuzzyOCR, etc.

However, the first failure should be caught but apparently isn't.  Can you
open a bugzilla ticket about this?  Thanks. :)
Thanks for the explaination.
About the bugzilla ticket... sure, first thing in the morning tomorrow when I get back. ;)

/Regards

Reply via email to