Hello Tim,
thanks for sharing your experience with us!
--
Kind Regards from Switzerland,
Stevan Bajić
On 08.05.2012 19:10, Tim Streit wrote:
Greetings everyone,
I've been now running successfully running DSPAM for the past 3 days
or so. Its not trained as fast as I'd hoped yet, but it is definitely
improving (as long as we get to the finish line, thats what counts,
right?).
Stevan suggested that I document the things he helped me with to get
things going, and to which I fully agree (and had planned to).
I had several problems. I'll list them by key points.
- - - -
I was using TEFT. I'm sure its not WRONG, but from what I gather, TOE
is a lot more popular among the people who should know best. Stevan
cited a good example of the differences between TUM, TEFT and TOE on
another post. I am now using TOE.
- - - -
I had an issue with DSPAM not retraining. It errored with the error :
May 2 14:59:47 bp01 dspam[3104]: bailing on error 22
May 2 14:59:47 bp01 dspam[3104]: received invalid result (!DSR_ISSPAM&&
!DSR_ISINNOCENT): 22
May 2 14:59:47 bp01 dspam[3104]: process_message returned error -5. delivering.
I had no clue what the problem was. As it turned out, I had followed
a bad tutorial (or at least an outdated one) which had dropped a lot
of settings. Once a complete configuration was put into place,
retraining did not throw this error.
- - - -
I was using the wrong retraining command.
echo X-DSPAM-Signature: XXXX | /usr/bin/dspam --client --mode=teft --class=spam
--source=error --user dspam
-becomes-
/usr/bin/dspam --client --class=spam --source=error --user dpsam
--signature=XXXX
- - - -
I was receiving an empty email for every spam retrained (or attempted,
since it was not working for me before). It was sent to the dspam
user, and had no body or subject, but did contain the DSPAM signature
in its headers. Figured out the problem to be (at least for me, using
a global group)
ServerParameters "--deliver=innocent,spam -d %u"
-becomes-
ServerParameters "--deliver=innocent,spam"
The '-d %u' was causing it. Note that I am having it deliver innocent
and spam mail both. I have my mail server configured to drop any mail
containing the dpsam 'spam' header into my junk boxes.
- - - -
I also had an issue initially after getting past the 'bailing on error
22' error above where a "#015" was being appended to the end of my
DSPAM signature. This was of course freaking DSPAM out, it can't find
the signature!
Problem turned out to be in how I was re-training. Long story short,
my script was looping through a list of signatures, and this list had
a hidden control character at the end of the line which was apparently
interpreted by DSPAM as a #015. Fixed my script, problem disappeared.
- - - -
I wrote a bash script that uses pure IMAP (not Maildir, as Zarafa uses
another storage format) and pulls the DSPAM signatures out of both the
'DSPAM/Not Spam' and 'DSPAM/Spam', trains, and moves the messages
either to INBOX or Junk Mail, depending on what it is. It might not
be the best way to do it, but I can tell you its working like a top,
and it is doing everything that I wanted it to do (it easily processes
300+ messages at a crack and does not even break a sweat). I just
schedule it to run every 15 mintes. Additionally, I am using this
script to purge spam and deleted stuff over 30 days old every night.
For those who decide to write their own script, I remember seeing on
another post that it is important to include a locking mechanism to
prevent the script from running more than once at a time.
Hope this information above helps someone out there. Thanks much to
Stevan, who without his help, I'd have probably gone another route or
still be stuck trying to figure out why its not working!
Thanks,
Tim
On 05/05/2012 04:45 AM, Stevan Bajić wrote:
Hello Tim,
perfect! Can you now please write back on the DSPAM mailing list that
it works and what you did for getting it working? The mailing list is
the place users search when they have issues and your experience
could help others in the future.
--
Kind Regards from Switzerland,
Stevan Bajić
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user