I'm trying out --enable-homedir and --enable-virtual-users and sure enough I 
get this
in /var/spool/dsapm/.dspam but obviously either Home is not a valid user pref 
and/or
it needs to be available before /usr/bin/dspam is invoked. I'm trying to get 
*.log, *.sdb
and *.prefs into individual users home dirs if possible. Can anyone suggest how 
?

Are environmental vars available to the dspam binary perhaps ?

# ll /var/spool/dspam/.dspam
total 72
-rw-rw---- 1 daemon daemon   123 Mar  1 03:20 admin.log
-rw-r--r-- 1 root   root      30 Mar  1 03:20 admin.prefs
-rw-r----- 1 daemon daemon 22528 Mar  1 03:20 admin.sdb
-rw-rw---- 1 daemon daemon    12 Mar  1 03:20 admin.stats
-rw-rw---- 1 daemon daemon   123 Mar  1 03:35 markc.log
-rw-r--r-- 1 root   root      30 Mar  1 03:35 markc.prefs
-rw-r----- 1 daemon daemon 22528 Mar  1 03:35 markc.sdb
-rw-rw---- 1 daemon daemon    12 Mar  1 03:35 markc.stats

# dspam_admin ch pref [EMAIL PROTECTED] Home /home/markc
operation successful.

# cat /var/spool/dspam/.dspam/markc.prefs
Home=/home/markc

# cat /etc/courier/maildroprc
  import RECIPIENT
  RECIPIENT=tolower($RECIPIENT)
  xfilter "/usr/bin/dspam --user $RECIPIENT --stdout --deliver=innocent,spam 
--debug"

  if (/^X-DSPAM-Result: Spam/:h)
  {
    to "./Maildir/.Spam/."
  }


Compilation flags for the version from CVS...

./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 \
  --enable-long-usernames \
  --with-delivery-agent=/usr/bin/maildrop \
  --with-dspam-home=/var/spool/dspam \
  --enable-virtual-users \
  --with-dspam-group=daemon \
  --with-dspam-home-owner=daemon \
  --with-dspam-home-group=daemon \
  --enable-debug

# cat /etc/dspam/dspam.conf
Home /var/spool/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
ParseToHeaders on
ChangeUserOnParse user
ChangeModeOnParse on

Reply via email to