From owner-freebsd-questions@FreeBSD.ORG Wed Jul 18 18:32:24 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B79F16A400 for ; Wed, 18 Jul 2007 18:32:24 +0000 (UTC) (envelope-from bazy@goofy.celuloza.ro) Received: from goofy.celuloza.ro (goofy.celuloza.ro [89.137.178.124]) by mx1.freebsd.org (Postfix) with ESMTP id 527D913C4EA for ; Wed, 18 Jul 2007 18:32:24 +0000 (UTC) (envelope-from bazy@goofy.celuloza.ro) Received: from [192.168.0.3] (unknown [192.168.0.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by goofy.celuloza.ro (Postfix) with ESMTP id 2240D61C151 for ; Wed, 18 Jul 2007 03:57:06 +0300 (EEST) Message-ID: <469D654D.5010007@goofy.celuloza.ro> Date: Wed, 18 Jul 2007 03:56:45 +0300 From: Bazy User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <469A06D1.4030601@wlink.com.np> <20070717155834.GK46587@nemesis.frida.mouhaha.de> In-Reply-To: <20070717155834.GK46587@nemesis.frida.mouhaha.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91, clamav-milter version 0.91 on goofy.celuloza.ro X-Virus-Status: Clean Subject: Re: Integrating Postfix + Amavisd-new + Clamav + DSpam + DBmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 18:32:24 -0000 Oliver Peter wrote: > On Sun, Jul 15, 2007 at 05:21:49PM +0545, Tek Bahadur Limbu wrote: > >> Hi All, >> >> I was wondering if anybody on this list has successfully implemented the >> following setup on a FreeBSD machine? >> >> Postfix + Amavisd-new + Clamav + DSpam + DBmail (PostgreSQL) >> >> Can I use the following diagram for this? >> >> Postfix --> Amavisd-new --> Clamav --> Amavisd-new --> DSpam --> Postfix >> --> DBmail-lmtpd --> DBmail-Database? >> >> Is this the correct or optimal setup? >> >> Being relatively new to the world of MTAs, please forgive me for any >> naive questions. >> >> >> Any pointers, suggestions and tips will be highly appreciated. >> > > I'm using FreeBSD 6.2-RELEASE-p2 with Postfix, Cyrus-SASL2, amavisd-new, clamav > and dbmail (only IMAP with stunnel) with a pgsql backend. > > I would like to switch back to a filesystem based e-mail backend > (maybe dovecot) - feels better to me. Furthermore I think that dbmail > has no good pgsql support (it has some bugs with IMAP) - > maybe you would like to try mysql instead (*hirgs*). > > If you would like I can show you my configuration files and table > structures. > > I'm using it with MySQL, my database is only 900MB with 15000 mails and it works fine. How did you integrate clamav with postfix? I think through milter is the fastest solution, and if the milter crashes, the mail won't just get scanned, but if a "smtpd_proxy_filter" crashes, the mail will wait in queue and will not be delivered to dbmail. # clamav-milter smtpd_milters = unix:/var/run/clamav/clmilter.sock