RE: Change Temp Directory
User for SpamAssassin Mail List wrote: I've looked around and could not find this answer. How does one change the temp directory that spamd uses? I see it using /tmp on our debian sarge server using a debian spamassassin 3.0.3-2 version. I would like to change it to /var/tmp which on our system is a much faster SCSI raid disk. From USAGE: - SpamAssassin now uses a temporary file in /tmp (or $TMPDIR, if that's set in the environment) for Pyzor and DCC checks. Make sure that this directory is either (a) not writable by other users, or (b) not shared over NFS, for security. So, if you set $TMPDIR in the spamd user's environment to /var/tmp, that should do it. -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer
RE: Change Temp Directory
But spamd changes users id each time it's used this would not work to well would it? Ken On Fri, 11 Nov 2005 [EMAIL PROTECTED] wrote: User for SpamAssassin Mail List wrote: I've looked around and could not find this answer. How does one change the temp directory that spamd uses? I see it using /tmp on our debian sarge server using a debian spamassassin 3.0.3-2 version. I would like to change it to /var/tmp which on our system is a much faster SCSI raid disk. From USAGE: - SpamAssassin now uses a temporary file in /tmp (or $TMPDIR, if that's set in the environment) for Pyzor and DCC checks. Make sure that this directory is either (a) not writable by other users, or (b) not shared over NFS, for security. So, if you set $TMPDIR in the spamd user's environment to /var/tmp, that should do it. -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer
RE: Change Temp Directory
User for SpamAssassin Mail List wrote: But spamd changes users id each time it's used this would not work to well would it? I don't know if $ENV{TMPDIR} is queried once on startup, or at every user change... maybe the source would reveal that information... Could you symlink /tmp to /var/tmp and have everybody use the faster disk? On my own servers, I mount /tmp as a RAM disk. -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer
Re: Change Temp Directory
[EMAIL PROTECTED] wrote: User for SpamAssassin Mail List wrote: I've looked around and could not find this answer. How does one change the temp directory that spamd uses? I see it using /tmp on our debian sarge server using a debian spamassassin 3.0.3-2 version. I would like to change it to /var/tmp which on our system is a much faster SCSI raid disk. From USAGE: - SpamAssassin now uses a temporary file in /tmp (or $TMPDIR, if that's set in the environment) for Pyzor and DCC checks. Make sure that this directory is either (a) not writable by other users, or (b) not shared over NFS, for security. So, if you set $TMPDIR in the spamd user's environment to /var/tmp, that should do it. Also note this will affect every perl package that uses File::Spec-tmpdir too.
Re: Change Temp Directory
User for SpamAssassin Mail List wrote: But spamd changes users id each time it's used this would not work to well would it? spamd changes userid's with setuid, not logon. It shouldn't get a whole new environment, just new privileges and mapping for ~. Thus the TMPDIR from the original launch of spamd should carry over.