I'm looking for some pointers in getting the proper configurations accomplish the following setup.

Incoming mail is filtered with results stored by mail user. 
Training is accomplished by forwarding false negatives (should be spam) to [EMAIL PROTECTED] and false positives to [EMAIL PROTECTED]

Here's my current setup, which delivers mail with a DSPAM signature but doesn't seem to train or track users.

In Postfix' main.cf:
smtpd_recipient_restrictions = 
<other options ommited>
check_recipient_access pcre:/etc/postfix/dspam_incoming

dspam_incoming reads:
#
# This will match on _anything_ and cause the action FILTER. It will use LMTP
# (Local Message Transport Protocol) to stick the message into DSPAM's socket. 
/./     FILTER dspam:unix:/tmp/dspam.sock

master.cf reads:
# dspam content filtering
#
# mail is first sent to dspam via lmtp:
dspam     unix  -       -       n       -       10      lmtp
#
# filtered mail is returned to postfix on port 10025
127.0.0.1:10025 inet    n       -       n       -       -       smtpd
  -o smtpd_authorized_xforward_hosts=127.0.0.0/8
  -o smtpd_client_restrictions=
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  ; -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/8
  -o receive_override_options=no_unknown_recipient_checks

I have two aliases set up:
spam:"|/usr/bin/dspam --user root --class=spam --source=error"
notspam:"|/usr/bin/dspam --user root --class=innocent --source=error"

In dspam.conf I have included:
DebugOpt process spam fp classify
ParseToHeaders on
ChangeUserOnParse on

In mysql.conf I have:
MySQLUIDInSignature    on

spam sent back to [EMAIL PROTECTED] shows delivered in the mail logs.

The dspam_stats table in mySQL shows:
Full Textsuidspam_learnedinnocent_learnedspam_misclassifiedinnocent_misclassifiedspam_corpusfedinnocent_corpusfedspam_classifiedinnocent_classified
EditDelete10184000000

I would have expected to see a count in the misclassified field after sending a correction.

There is only one entry in the dspam_virtual_uids table, which matches uid 1 with dspam.  I was expecting to see our small list of email users here.

dspam is running in daemon mode with debug turned on in /etc/defaults (ubuntu linux)  There isn't any dspam.debug in /tmp so I would think that dspam is not encountering an error. 

Any thoughts?
!DSPAM:1011,491336ef150924019512633!

Reply via email to