Hi Stevan. Thanks for your offer of help. As my first post, I didn't want
to spam the list with a whole lot of debugging information that may or may
not have been of use, and was hoping the symptoms might be enough to let
someone point me in the correct direction. Included below are all the
information you requested.
Further investigation on my own part revealed the following:
The Performance and Quarantine tab try to read (respectively) the files
$USER.stats and $USER.mbox out of the /var/spool/dspam data directory for
the user I'm logged in as ("jesse") and neither of these files exist.
That's the obvious proximate cause for the web front end displaying no
data, those files don't exist. What I do have in that directory are these:
-rw-rw---- 1 dspam dspam 67813 2010-07-12 10:40 jesse.log
-rw-r--r-- 1 dspam dspam 1 2010-07-12 08:58 jesse.mbox.size
-rw-rw---- 1 dspam dspam 0 2010-07-12 08:58 jesse.mbox.stamp
-rw-r--r-- 1 dspam dspam 175 2010-07-08 19:58 jesse.prefs
-rw-r--r-- 1 dspam dspam 5 2010-07-08 14:12 jesse.rstats
Which seem to be sufficient for all the other web front-end functions to
work. So the question now becomes, why these two files aren't being
created. My general configuration is Postfix/dovecot/MySQL delivering to
virtual users defined in MySQL, with Postfix passing emails through to
dspam, and using the web front-end tools to train dspam, on a debian lenny
system. Below are the config files you requested:
====================
# dspam --version
DSPAM Anti-Spam Suite 3.6.8 (agent/library)
Copyright (c) 2002-2006 Jonathan A. Zdziarski
http://dspam.nuclearelephant.com
DSPAM may be copied only under the terms of the GNU General Public License,
a copy of which can be found with the DSPAM distribution kit.
Configuration parameters: /usr/share/config.site /usr/etc/config.site
======================
# cat /etc/dspam/dspam.conf | egrep -v "\#|^$"
Home /var/spool/dspam
StorageDriver /usr/lib/dspam/libmysql_drv.so
DeliveryHost 127.0.0.1
DeliveryPort 10026
DeliveryIdent "DSPAM-Daemon"
DeliveryProto SMTP
OnFail error
Trust root
Trust dspam
Trust mail
Trust postfix
Trust dovecot
Trust mailnull
Trust smmsp
Trust daemon
TrainingMode teft
TestConditionalTraining on
Feature chained
Feature whitelist
Algorithm graham burton
PValue graham
Preference "spamAction=tag"
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
HashMaxSeek 100
HashConnectionCache 10
Notifications off
LocalMX 127.0.0.1
SystemLog on
UserLog on
Opt out
TrackSources spam
ParseToHeaders off
ClamAVPort 3310
ClamAVHost 127.0.0.1
ClamAVResponse accept
ServerPID /var/run/dspam/dspam.pid
ServerMode auto
ServerPass.Relay1 "XXXXX"
ServerParameters "--deliver=innocent"
ServerIdent "localhost.localdomain"
ServerDomainSocketPath "/var/run/dspam/dspam.sock"
ClientHost /var/run/dspam/dspam.sock
ClientIdent "XXXXXX"
ProcessorBias on
Include /etc/dspam/dspam.d/
==================================
# cat /etc/postfix/main.cf | egrep -v "\#|^$"
myhostname = [DELETED].[DELETED].com
mydestination = [DELETED].[DELETED].com, localhost, localhost.localdomain
mynetworks = 127.0.0.0/8
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf,
mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd_sasl_application_name = smtpd
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_client_restrictions = check_client_access
pcre:/etc/postfix/dspam_filter_access
smtpd_recipient_restrictions = reject_unauth_pipelining,
reject_non_fqdn_recipient, reject_unknown_recipient_domain,
permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination,
reject_rbl_client xbl.spamhaus.org, check_recipient_access
pcre:/etc/postfix/dspam_check_aliases, check_sender_access
pcre:/etc/postfix/dspam_check_aliases, permit
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
transport_maps = hash:/etc/postfix/transports
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps
$virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains
$relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps
$recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
$virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
dspam_destination_recipient_limit = 1
header_checks = pcre:/etc/postfix/header_checks.pcre
nested_header_checks=
====================================
# cat /etc/postfix/master.cf | egrep -v "\#|^$"
smtp inet n - - - - smtpd
submission inet n - - - - smtpd
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
dovecot unix - n n - - pipe flags=DRhu
user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
dspam unix - n n - - pipe flags=Ru
user=dspam argv=/usr/bin/dspam --client --deliver=innocent,spam --user
${recipient} --mail-from=${sender}
localhost:10026 inet n - n - - smtpd
-o content_filter=
-o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
dspam-retrain unix - n n - - pipe
flags=Rhq user=dspam argv=/usr/bin/dspam --client --mode=teft
--class=$nexthop --source=error --user dspam
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
============================================
Again, my apologies if I have some naively misconfigured set-up. This is my
first time playing with dspam, and most of the above was cobbled together
from various sources around the web. I'd be thrilled if you could spot my
newbie configuration mistake. Please ask if there are any other files or
information that be of use in trouble-shooting this.
Thanks,
Jesse
> Date: Sat, 10 Jul 2010 15:22:58 +0200
> From: Stevan Baji? <ste...@bajic.ch>
> Subject: Re: [Dspam-user] "Performance" tab not updating, and spam not
> going to quarantine folder
> To: dspam-user@lists.sourceforge.net
> Message-ID: <20100710152258.5a3327cb.ste...@bajic.ch>
> Content-Type: text/plain; charset=UTF-8
>
> On Fri, 9 Jul 2010 11:48:49 -0700
> Jesse Mundis <jesse.mun...@gmail.com> wrote:
>
> > Hello dspam-ers.
> >
> > I've just installed dspam on a Debian (lenny) machine, being fed by
> postfix,
> > and doing most of my training via the web UI, and I have a few minor
> > problems I'm hoping someone here can help me with. They are almost
> > certainly my own configuration issues, but I've been unable to google for
> a
> > solution.
> >
> > Symptom #1
> >
> > The "Performance" tab in the Web UI shows no messages trained or
> filtered,
> > even though the analysis and history tabs do. From command line,
> > dspam_stats shows the correct info:
> >
> > # dspam_stats -H
> > dspam:
> > TP True Positives: 10
> > TN True Negatives: 24
> > FP False Positives: 0
> > FN False Negatives: 46
> > SC Spam Corpusfed: 0
> > NC Nonspam Corpusfed: 0
> > TL Training Left: 2476
> > SHR Spam Hit Rate 17.86%
> > HSR Ham Strike Rate: 0.00%
> > OCA Overall Accuracy: 42.50%
> >
> > Symptom #2
> >
> > The "Quarantine" tab still shows empty, even when the "History" tab shows
> > spam being correctly identified.
> >
> > Other than that, email is getting scored and coming through correctly.
> As I
> > said, it is quite likely I just have a simple misconfiguration in my
> set-up,
> > as I'm new to dspam and postfix, and have been mostly going off recipes
> I've
> > found online, coupled with a pretty good working knowledge of development
> > and *nix systems.
> >
> > If any one has any suggestions for where to look, or what config files
> would
> > be useful to post, please let me know. Having stuff go into Quarantine
> is
> > more important than getting the "Performance" numbers correct. And yes,
> > under "Preferences" I do have the "Quarantine" button checked. ;-)
> >
> I would like to help you but you only have written what your problems are
> without sending information how you have setup your DSPAM and Postfix
> instance. And without those information (aka: dspam.conf, output of "dspam
> --version", main.cf, master.cf) it is for me not possible to help you. And
> I think others will as well have problems helping you.
>
>
> > Thanks!
> --
> Kind Regards from Switzerland,
>
> Stevan Baji?
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user