Gentoo Archives: gentoo-server

From: theboywho <theboywho@×××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Dspam Users, Stand Up Please
Date: Mon, 26 Sep 2005 10:24:00
Message-Id: 200509261122.36045.theboywho@ruddyperl.com
In Reply to: [gentoo-server] Dspam Users, Stand Up Please by Ow Mun Heng
1 Hi,
2
3 I use a postfix->dspam->cyrus setup for my mail server, which works pretty
4 well. The way I have it set up is that postfix uses dspam as its
5 'content_filter', and dspam reinjects mail into the postfix queue by using
6 'sendmail' as the TrustedDevliveryAgent.
7
8 I have the following two extra lines in my master.cf for postfix:
9
10 dspam unix - n n - 10 pipe
11 flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent --user
12 ${recipient} -f ${sender} -- ${recipient}
13
14 dspam-retrain unix - n n - 10 pipe
15 flags=Ru user=dspam argv=/usr/local/bin/dspam-retrain.sh ${nexthop}
16 ${sender} ${recipient}
17
18 and then my dspam.conf is as follows:
19
20 ## $Id: dspam.conf.in,v 1.2 2004/11/12 16:29:19 jonz Exp $
21 ## dspam.conf -- DSPAM configuration file
22 ##
23
24 #
25 # DSPAM Home: Specifies the base directory to be used for DSPAM storage
26 #
27 Home /etc/mail/dspam
28
29 TrustedDeliveryAgent "/usr/sbin/sendmail"
30 UntrustedDeliveryAgent "/usr/sbin/sendmail"
31 OnFail error
32 Trust root
33 Trust dspam
34 Trust apache
35 Trust nobody
36
37 TrainingMode teft
38
39 Feature chained
40 Feature tb=4
41 Feature whitelist
42 Feature noise
43
44 Algorithm graham burton
45
46 PValue graham
47
48 Preference "spamAction=deliver"
49 Preference "signatureLocation=headers" # 'message' or 'headers'
50 Preference "showFactors=on"
51 #Preference "spamAction=tag"
52 #Preference "spamSubject=SPAM"
53
54 AllowOverride trainingMode
55 # AllowOverride spamAction spamSubject
56 AllowOverride statisticalSedation
57 AllowOverride enableBNR
58 AllowOverride enableWhitelist
59 # AllowOverride signatureLocation
60 AllowOverride showFactors
61 AllowOverride optIn optOut
62 AllowOverride whitelistThreshold
63
64 Notifications off
65
66 PurgeSignature off # Specified in purge.sql
67 PurgeNeutral 30
68 PurgeUnused off # Specified in purge.sql
69 PurgeHapaxes off # Specified in purge.sql
70 PurgeHits1S off # Specified in purge.sql
71 PurgeHits1I off # Specified in purge.sql
72
73 LocalMX 127.0.0.1
74
75 SystemLog on
76 UserLog on
77
78 Opt in
79
80 MySQLServer /var/run/mysqld.sock
81 MySQLPort
82 MySQLUser dspamuser
83 MySQLPass *******
84 MySQLDb dspamdb
85 MySQLCompress true
86
87 I use 'Opt-in' because i do not want to process out-going email.
88
89 Hope that helps!!
90
91
92 On Monday 26 Sep 2005 09:24, Ow Mun Heng wrote:
93 > Hi All,
94 >
95 > I just made a mail-server that does
96 >
97 > Postfix->amavisd(clamav+Spamassassin+Dspam)->cyrus
98 >
99 > Now, I'm wondering how to properly configure Dspam. Dspam seems to work
100 > well enough but I"m having trouble with dspam not properly
101 > tagging/recognising SPAM. SPAMassassin seems to do fine.
102 >
103 > X-DSPAM-Result: Innocent
104 > X-DSPAM-Confidence: 0.5219
105 > X-DSPAM-Probability: 0.0000
106 > X-DSPAM-Signature: 43377f38319151441717014
107 > X-DSPAM-Factors: 27,
108 > X-Virus-Scanned: amavisd-new at localhost
109 > X-Spam-Status: Yes, hits=9.152 tagged_above=-99 required=6.31
110 > tests=[MSGID_FROM_MTA_HEADER=0.036, NA_DOLLARS=2.078,
111 > NIGERIAN_BODY1=2.48, NIGERIAN_BODY2=2.4, NIGERIAN_BODY3=1.395,
112 > SUBJ_ALL_CAPS=0.763]
113 > X-Spam-Level: *********
114 > X-Spam-Flag: YES
115 >
116 > There's a conflict of interest so to speak.
117 >
118 > BTW, anyone here has any tips for doing a solely DSPAM filter that does
119 > not integrate into amavisd-new? I'm trying to see if it will do better
120 > in this case.
121 >
122 > Frankly, I'm attracted to dspam mainly for it's web-based cgi where
123 > users can flag/unflag spam and do quarantine. (Power to the user!)
124 >
125 >
126 >
127 >
128 >
129 >
130 > --
131 > Ow Mun Heng
132 > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
133 > 98% Microsoft(tm) Free!!
134 > Neuromancer 16:19:44 up 1 day, 21:06, 5 users, load average: 1.39, 0.89,
135 > 0.62
136 --
137 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] Dspam Users, Stand Up Please Ow Mun Heng <Ow.Mun.Heng@×××.com>