From owner-freebsd-isp@FreeBSD.ORG Thu Oct 27 00:20:46 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2277316A41F for ; Thu, 27 Oct 2005 00:20:46 +0000 (GMT) (envelope-from ernie@puremail.eis.net.au) Received: from puremail.eis.net.au (puremail.eis.net.au [203.12.171.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CDB043D4C for ; Thu, 27 Oct 2005 00:20:45 +0000 (GMT) (envelope-from ernie@puremail.eis.net.au) Received: from puremail.eis.net.au (localhost.eis.net.au [127.0.0.1]) by puremail.eis.net.au (8.13.4/8.13.4) with ESMTP id j9R0Kqfh006750 for ; Thu, 27 Oct 2005 10:20:52 +1000 (EST) (envelope-from ernie@puremail.eis.net.au) Received: (from ernie@localhost) by puremail.eis.net.au (8.13.4/8.13.4/Submit) id j9R0KpXn006749 for freebsd-isp@freebsd.org; Thu, 27 Oct 2005 10:20:52 +1000 (EST) (envelope-from ernie) From: User Ernie Message-Id: <200510270020.j9R0KpXn006749@puremail.eis.net.au> In-Reply-To: <013001c5da2c$6fa4e1a0$8adb7bd1@icarz.com> To: freebsd-isp@freebsd.org Date: Thu, 27 Oct 2005 10:20:51 +1000 (EST) X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Subject: Re: DSPAM and Sendmail X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 00:20:46 -0000 DSPAM is not a milter, it's a stand alone application that can run as a daemon or be piped to directly. It's basically an advanced adaptive spam filter written in C. I am currently running MailScanner -> SpamAssassin as a gateway feeding a bunch of hosting servers and client mailservers, it's been working for a year but a few problems have cropped up that make me want to cut to DSPAM. Firstly the Perl nature of the current setup uses stacks of RAM as I add more MailScanner processess to handle the load. Secondly a lot of SPAM is creeping through as the spammers get smarter, and I am always having to tweak rulesets. Lastly the whole set up is slooowww, especially if you use a lot of DCC/Pyzor, and other offsite checks, the average mail delay as reported by the vspan GUI, is about 25sec, and can be minutes in busy periods, hence the need to seek change. DSPAM is a C program, small footprint very fast especially if you use MySQL for the backend database. It has fantastic SPAM capture rate, and a GUI for clients to edit quarantined SPAM. I have DSPAM 3.6.0 from the ports collection running on 2 FreeBSD boxen, a 5.4-STABLE and a 6.0-RC1 machine, just as the Mlocal delevery agent which then passes to procmail on one machine and just to mail.local on the other machine, both configs work fine. I thought I would be smart and set the delivery agent in the dspam.conf file to /usr/sbin/sendmail and see what happened, got a mail loop and the queue filled up and I had to kill the process. So my problem is how to get DSPAM, remembering that it is set as the Mlocal program on the recieving sendmail process, to pass the mail after it has finished with it to the sendmail process that can do both external delivery to another email server or to a local delivery program like procmail? {Internet} --> [Sendmail IN] -->[DSPAM] --> [Sendmail OUT] --> [Other Servers] \ [procmail]-->[local users] I sort of thought it might be the sendmail process that uses the submit.cf file, however it does not seem to have a Mlocal entry that makes sense to me. - Ernie. > Hi Ernie, > I don't know DSPAM, is it a "milter" like mimedefang and > spamassassin? I use mimedefang and spamassassin (mimedefang calls > spamassassin) in a gateway spam filter/virus scanner etc config. In > my /etc/mail/hostname.mc file I put in > dnl # icarz customizations here > INPUT_MAIL_FILTER(`mimedefang', > `S=local:/var/spool/MIMEDefang/mimedefang.sock, > F=T,T=C:15m;S:4m;R:4m;E:10m')dnl > define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl > dnl Custom rate limits should be OK with 1 gig > > define(`confCONNECTION_RATE_THROTTLE',`10') > define(`confMAX_DAEMON_CHILDREN', `40' ) > > define(`SMART_HOST', `mailhost.icarz.com') > > > You can change the mail filter to be any mail filter. The SMART_HOST > sends everything to my real mail server. My mx records point to this > host. I am sure there are better configurations, but this was easy. > > I hope this helps you with you question, > Ken > ----- Original Message ----- > From: "User Ernie" > To: > Sent: Tuesday, October 25, 2005 5:32 AM > Subject: DSPAM and Sendmail > > > >I am trying to get the DSPAM 3.6.0 port running as an SMTP relay > >gateway > > receiving/filtering mail for several hosting servers. I am using > > FreeBSD 5.4-STABLE and sendmail. On the DSPAM website it only gives > > examples for either DSPAM as Mlocal delivery, or using Postfix as a > > relay. > > I am not familiar with the FreeBSD dual sendmail instance setup, so > > I can't > > get my head around how to configure Sendmail to listen to port 25 > > and do it's > > usual RBL checks I have set up, then pass mail to DSPAM, then finaly > > have DSPAM > > pass it back to sendmail to forward it to the correct mail hosting > > server. > > > > Has anyone done this, or can anyone suggest what to try? I had a > > look at the > > perl dspampd script but with no instructions I was stuck there as > > well. > > > > I also posted the question to the DSPAM mail list last week and got > > no > > replies. > > > > - Ernie.