Re[2]: [dspam-users] problem with signature in headers

From: <rassylkaformazaj@ukr.net>
Date: Thu Oct 27 2005 - 10:12:27 EDT

Hello ,

Help me plz ...

I have configured dspam to use virtual users in MySQL. For purposes of
training I have created alias like this.

spam-debug: "|/usr/bin/dspam --debug --user root --class=spam --source=error"

All works fine, dspam educating and catching spam. BUT.
I cannot use user's preferences.

in
/var/dspam/default.prefs

trainingMode=TEFT
spamAction=tag
spamSubject=[SPAM-DETECTED]
statisticalSedation=5
enableBNR=on
enableWhitelist=on
signatureLocation=message
showFactors=off

I have created

/var/dspam/mazaj-test/mazaj-test.prefs

trainingMode=TEFT
spamAction=tag
spamSubject=[SPAM-DETECTED2]
statisticalSedation=5
enableBNR=on
optIn=off
optOut=off
showFactors=off
enableWhitelist=on
signatureLocation=headers

(note signatureLocation=headers)

I sent emails as attachments.
When I sent not to spam-debug but to myself i see
x-dspam-signature: 39,4360c8e0212316100815389 in attachment and
X-DSPAM-Signature: 1,4360deb9278081752147555 in new message
so this part is correct

But in debug i see that dspam uses default preferences for root
user...

28034: [10/27/2005 17:09:21] No QuarantineAgent option found. Using standard quarantine.
28034: [10/27/2005 17:09:21] DSPAM Instance Startup
28034: [10/27/2005 17:09:21] input args: /usr/bin/dspam --debug --user root --class=spam --source=error
28034: [10/27/2005 17:09:21] pass-thru args: /usr/bin/procmail.dspam
28034: [10/27/2005 17:09:21] processing user root
28034: [10/27/2005 17:09:21] uid = 8, euid = 8, gid = 12, egid = 99
28034: [10/27/2005 17:09:21] loading preferences for user root
28034: [10/27/2005 17:09:21] Loading preference 'trainingMode' = 'TEFT'
28034: [10/27/2005 17:09:21] Loading preference 'spamAction' = 'tag'
28034: [10/27/2005 17:09:21] Loading preference 'spamSubject' = '[SPAM-DETECTED]'
28034: [10/27/2005 17:09:21] Loading preference 'statisticalSedation' = '5'
28034: [10/27/2005 17:09:21] Loading preference 'enableBNR' = 'on'
28034: [10/27/2005 17:09:21] Loading preference 'enableWhitelist' = 'on'
28034: [10/27/2005 17:09:21] Loading preference 'signatureLocation' = 'message'
28034: [10/27/2005 17:09:21] Loading preference 'showFactors' = 'off'
28034: [10/27/2005 17:09:21] Loading preference 'trainingMode' = 'TEFT'
28034: [10/27/2005 17:09:21] Loading preference 'spamAction' = 'tag'
28034: [10/27/2005 17:09:21] Loading preference 'spamSubject' = '[SPAM-DETECTED]'
28034: [10/27/2005 17:09:21] Loading preference 'statisticalSedation' = '5'
28034: [10/27/2005 17:09:21] Loading preference 'enableBNR' = 'on'
28034: [10/27/2005 17:09:21] Loading preference 'enableWhitelist' = 'on'
28034: [10/27/2005 17:09:21] Loading preference 'signatureLocation' = 'message'
28034: [10/27/2005 17:09:21] Loading preference 'showFactors' = 'off'
28034: [10/27/2005 17:09:21] loaded default preferences externally
28034: [10/27/2005 17:09:21] using /var/dspam/opt-in/root.dspam as path
28034: [10/27/2005 17:09:21] using /var/dspam/opt-out/root.nodspam as path
28034: [10/27/2005 17:09:21] sedation level set to: 5
28034: [10/27/2005 17:09:21] DSPAM Instance Shutdown. Exit Code: 0

What's wrong?

Thank you in advance.

KJ> When the signature is in the header, you have to forward messages in as an
KJ> attachment. It doesn't look like this applies to your situation, but it
KJ> can't hurt to know.
KJ> As for the global spam/notspam users: You do not need to use an alias, if
KJ> using the My/Pg/SQLUIDInSignature on option, you can simply use two real
KJ> users, as long as you also set ParseToHeaders on ChangeModeOnParse on
KJ> ChangeUserOnParse off, then it should work.

KJ> Also, when using an alias, the user has to be real, though it will change
KJ> on-the-fly as it is being processed.

[...]

--
Best regards. Mazaj.
mailto:rassylkaformazaj@ukr.net
Received on Thu Oct 27 10:14:14 2005

This archive was generated by hypermail 2.1.8 : Fri Oct 28 2005 - 00:00:00 EDT