signatureLocation=headers looks doesn't work fine!

From: Leandro D. Alves <leandro@ceb.unicamp.br>
Date: Wed Aug 03 2005 - 18:56:43 EDT

Hi,

I am having a problem when I set "signatureLocation=headers" in dspam.conf
to forward the message to my spam alias and I get this error in my maillog:

Aug 3 19:35:31 vitoria dspam[10729]: Unable to find a valid signature.
Aborting.
Aug 3 19:35:31 vitoria dspam[10729]: process_message returned error -5.
dropping message.

When I set "signatureLocation=message", dspam works fine!

I have looked for the answer in dpsam-users archives and I have seen that
many people had this problem, but I didn't find the solve...

Please could someone help-me...

-Config:

+postfix (main.cf)
mailbox_command = /usr/local/bin/dspam --deliver=innocent --user $USER -- -d
%u

+Aliases:
spam: "|/usr/local/bin/dspam --user root --class=spam --source=error"
notspam: "|/usr/local/bin/dspam --user
root --class=innocent --source=error"

+setup
useradd -c "DSPAM Server User" -d /var/empty -s /sbin/nologin -G
postdrop,mail dspam

cd /usr/local/src
wget http://dspam.nuclearelephant.com/sources/dspam-3.5.3.tar.gz
tar -zxvf dspam-3.5.3.tar.gz
cd dspam-3.5.3

./configure \
--with-storage-driver=mysql_drv \
--with-mysql-libraries=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include/mysql \
--enable-preferences-extension \
--enable-clamav \
--enable-debug
make && make install

mysql -u root -p -e "create database dspam"
mysql -u root -p -e "grant all on dspam.* to dspam@localhost identified by
'<pass>'"
mysql -u root -p dspam <
/usr/local/src/dspam-3.5.3/src/tools.mysql_drv/mysql_objects-4.1.sql
mysql -u root -p -e "flush privileges"

chown root /usr/bin/procmail
chmod 4755 /usr/bin/procmail
chmod o+x /usr/local/bin/dspam

+dspam.conf

Home /usr/local/var/dspam
TrustedDeliveryAgent "/usr/bin/procmail"
UntrustedDeliveryAgent "/usr/bin/procmail -d %u"
OnFail error

Trust root
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
Trust postfix
Trust postdrop
Trust apache
Trust dspam
Trust nobody

TrainingMode teft
Feature chained
Feature tb=5
Feature whitelist
Algorithm graham burton
PValue graham
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

MySQLServer /tmp/mysql.sock
MySQLPort
MySQLUser dspam
MySQLPass <pass>
MySQLDb dspam
MySQLCompress true

MySQLUIDInSignature on

Notifications on

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

Thanks in Advance!!!

--
Leandro D. Alves
Centro de Engenharia Biomédica - CEB
Universidade Estadual de Campinas - UNICAMP
"Chamam-me de aventureiro, mas sou do tipo que dá a vida por aquilo que 
acredito..." 
Received on Wed Aug 3 18:57:45 2005

This archive was generated by hypermail 2.1.8 : Thu Sep 29 2005 - 13:51:28 EDT