I'm trying to understand how --enable-homedir works so I built dspam from cvs with some configure options based on the Debian v3.6.8 package and added --enable-homedir... which should...
When enabled, instead of checking for $HOME/$USER/opt-in/ $USER[.dspam|.nodspam], DSPAM will check for a .dspam|.nodspam file in the user's home directory. DSPAM will also store each user's data in ~/.dspam when this option is enabled. Because of this, DSPAM will automatically install and run setuid root so that it can read each user's home directory. Is there a way to dynamically adjust "Home /usr/var/dspam" so that the these databases reside inside the users real homedir ? # ll /usr/var/dspam/.dspam total 64 -rw-rw---- 1 daemon daemon 248 Feb 25 08:05 admin.log -rw-r----- 1 daemon daemon 21504 Feb 25 08:05 admin.sdb -rw-rw---- 1 daemon daemon 12 Feb 25 08:05 admin.stats -rw-rw---- 1 daemon daemon 126 Feb 25 08:13 markc.log -rw-r----- 1 daemon daemon 21504 Feb 25 08:13 markc.sdb -rw-rw---- 1 daemon daemon 12 Feb 25 08:13 markc.stats # cat /etc/dspam/dspam.conf Home /usr/var/dspam StorageDriver /usr/lib/dspam/libsqlite3_drv.so TrustedDeliveryAgent "/usr/bin/maildrop" OnFail error Trust root Trust dspam Trust apache Trust mail Trust mailnull Trust smmsp Trust daemon TrainingMode toe TestConditionalTraining on Feature whitelist Algorithm graham burton Tokenizer chain PValue bcr WebStats on Preference "spamAction=quarantine" Preference "signatureLocation=headers" # 'message' or 'headers' Preference "showFactors=on" AllowOverride trainingMode AllowOverride spamAction spamSubject AllowOverride statisticalSedation AllowOverride enableBNR AllowOverride enableWhitelist AllowOverride signatureLocation AllowOverride showFactors AllowOverride optIn optOut AllowOverride whitelistThreshold HashRecMax 98317 HashAutoExtend on HashMaxExtents 0 HashExtentSize 49157 HashPctIncrease 10 HashMaxSeek 10 HashConnectionCache 10 Notifications off PurgeSignatures 14 # Stale signatures PurgeNeutral 90 # Tokens with neutralish probabilities PurgeUnused 90 # Unused tokens PurgeHapaxes 30 # Tokens with less than 5 hits (hapaxes) PurgeHits1S 15 # Tokens with only 1 spam hit PurgeHits1I 15 # Tokens with only 1 innocent hit LocalMX 127.0.0.1 SystemLog on UserLog on Opt out ProcessorURLContext on ProcessorBias on ./configure \ --prefix=/usr \ --includedir=/usr/include \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-logdir=/var/log/dspam/ \ --localstatedir=/var \ --libexecdir=/usr/lib/dspam \ --sysconfdir=/etc/dspam \ --enable-domain-scale \ --enable-signature-headers \ --with-storage-driver=sqlite3_drv \ --enable-homedir \ --with-delivery-agent=/usr/bin/maildrop \ --enable-debug --markc
