From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EJq9P-0001jZ-Sr for garchives@archives.gentoo.org; Mon, 26 Sep 2005 10:24:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8QAFcFc018236; Mon, 26 Sep 2005 10:15:38 GMT Received: from mars.ruddyperl.com (mars.ruddyperl.com [80.68.91.241]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j8QAFcij025432 for ; Mon, 26 Sep 2005 10:15:38 GMT Received: from whitestar.ruddyperl.com (82-37-106-190.cable.ubr02.sand.blueyonder.co.uk [82.37.106.190]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mars.ruddyperl.com (Postfix) with ESMTP id C9E881FE4A2 for ; Mon, 26 Sep 2005 11:22:24 +0100 (BST) From: theboywho To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] Dspam Users, Stand Up Please Date: Mon, 26 Sep 2005 11:22:35 +0100 User-Agent: KMail/1.8.2 References: <1127723064.4618.37.camel@neuromancer.home.net> In-Reply-To: <1127723064.4618.37.camel@neuromancer.home.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509261122.36045.theboywho@ruddyperl.com> X-Archives-Salt: d5eee16e-ee60-4029-9456-772b711276b4 X-Archives-Hash: 465421d294a5854ebbd9173ec6c467d0 Hi, I use a postfix->dspam->cyrus setup for my mail server, which works pretty well. The way I have it set up is that postfix uses dspam as its 'content_filter', and dspam reinjects mail into the postfix queue by using 'sendmail' as the TrustedDevliveryAgent. I have the following two extra lines in my master.cf for postfix: dspam unix - n n - 10 pipe flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent --user ${recipient} -f ${sender} -- ${recipient} dspam-retrain unix - n n - 10 pipe flags=Ru user=dspam argv=/usr/local/bin/dspam-retrain.sh ${nexthop} ${sender} ${recipient} and then my dspam.conf is as follows: ## $Id: dspam.conf.in,v 1.2 2004/11/12 16:29:19 jonz Exp $ ## dspam.conf -- DSPAM configuration file ## # # DSPAM Home: Specifies the base directory to be used for DSPAM storage # Home /etc/mail/dspam TrustedDeliveryAgent "/usr/sbin/sendmail" UntrustedDeliveryAgent "/usr/sbin/sendmail" OnFail error Trust root Trust dspam Trust apache Trust nobody TrainingMode teft Feature chained Feature tb=4 Feature whitelist Feature noise Algorithm graham burton PValue graham Preference "spamAction=deliver" Preference "signatureLocation=headers" # 'message' or 'headers' Preference "showFactors=on" #Preference "spamAction=tag" #Preference "spamSubject=SPAM" AllowOverride trainingMode # AllowOverride spamAction spamSubject AllowOverride statisticalSedation AllowOverride enableBNR AllowOverride enableWhitelist # AllowOverride signatureLocation AllowOverride showFactors AllowOverride optIn optOut AllowOverride whitelistThreshold Notifications off PurgeSignature off # Specified in purge.sql PurgeNeutral 30 PurgeUnused off # Specified in purge.sql PurgeHapaxes off # Specified in purge.sql PurgeHits1S off # Specified in purge.sql PurgeHits1I off # Specified in purge.sql LocalMX 127.0.0.1 SystemLog on UserLog on Opt in MySQLServer /var/run/mysqld.sock MySQLPort MySQLUser dspamuser MySQLPass ******* MySQLDb dspamdb MySQLCompress true I use 'Opt-in' because i do not want to process out-going email. Hope that helps!! On Monday 26 Sep 2005 09:24, Ow Mun Heng wrote: > Hi All, > > I just made a mail-server that does > > Postfix->amavisd(clamav+Spamassassin+Dspam)->cyrus > > Now, I'm wondering how to properly configure Dspam. Dspam seems to work > well enough but I"m having trouble with dspam not properly > tagging/recognising SPAM. SPAMassassin seems to do fine. > > X-DSPAM-Result: Innocent > X-DSPAM-Confidence: 0.5219 > X-DSPAM-Probability: 0.0000 > X-DSPAM-Signature: 43377f38319151441717014 > X-DSPAM-Factors: 27, > X-Virus-Scanned: amavisd-new at localhost > X-Spam-Status: Yes, hits=9.152 tagged_above=-99 required=6.31 > tests=[MSGID_FROM_MTA_HEADER=0.036, NA_DOLLARS=2.078, > NIGERIAN_BODY1=2.48, NIGERIAN_BODY2=2.4, NIGERIAN_BODY3=1.395, > SUBJ_ALL_CAPS=0.763] > X-Spam-Level: ********* > X-Spam-Flag: YES > > There's a conflict of interest so to speak. > > BTW, anyone here has any tips for doing a solely DSPAM filter that does > not integrate into amavisd-new? I'm trying to see if it will do better > in this case. > > Frankly, I'm attracted to dspam mainly for it's web-based cgi where > users can flag/unflag spam and do quarantine. (Power to the user!) > > > > > > > -- > Ow Mun Heng > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM > 98% Microsoft(tm) Free!! > Neuromancer 16:19:44 up 1 day, 21:06, 5 users, load average: 1.39, 0.89, > 0.62 -- gentoo-server@gentoo.org mailing list