From owner-freebsd-questions@FreeBSD.ORG Wed Jun 9 11:32:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C8BD16A4CE for ; Wed, 9 Jun 2004 11:32:40 +0000 (GMT) Received: from outmx002.isp.belgacom.be (outmx002.isp.belgacom.be [195.238.3.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC4E343D49 for ; Wed, 9 Jun 2004 11:32:39 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx002.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i59BWSkE006732 for ; Wed, 9 Jun 2004 13:32:28 +0200 (envelope-from ) Received: from lori.mine.nu (61-18.244.81.adsl.skynet.be [81.244.18.61]) with ESMTP id i59BWRVi006724; Wed, 9 Jun 2004 13:32:27 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id CB9DB653; Wed, 9 Jun 2004 13:32:26 +0200 (CEST) Date: Wed, 9 Jun 2004 13:32:26 +0200 From: Geert Hendrickx To: "Reed L. O'Brien" Message-ID: <20040609113225.GA5306@lori.mine.nu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-GPG-Key: http://www.win.ua.ac.be/~s005085/gnupgkey.txt X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en cc: freebsd-questions@freebsd.org Subject: Re: dspam X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 11:32:40 -0000 dspam keeps its database in root-owned files in /usr/local/etc/dspam, so you must run it as root or use suid. I use spamprobe, a very similar spamfilter (also based on John Grahams ideas in A plan for spam), but it stores its database under the users home-directory, which will give you no problems with file-permissions. You can easily use spamprobe with procmail or maildrop to filter your spam, it's well-documented. GH On Sat, Jun 05, 2004 at 10:15:22PM -0400, Reed L. O'Brien wrote: > Anyone here use dspam? I posted to the dspam maillist but apparen;ty > noone is lurking there today. > > FreeBSD 5.2.1 > maildrop 1.6.3 > dspam 2.10.6 > > > I had maildrop delivering fine. Then I built dspam from the ports and > modified postfix main.cf > to read: > mailbox_command = /usr/local/bin/dspam --user $USER -d %u > #mailbox_command = /usr/local/bin/maildrop -d ${USER} > local_destination_concurrency_limit = 1 > maildrop_recipient_limit = 1 > > I was receiving a permission denied error and modified > /usr/local/bin/dspam permissions to match > /usr/local/bin/maildrop and now it delivers. I setup aliases and it > attemmpts to deliver them but I am getting an error in the log and no > delivery. I am not sure how to test if dspam is working otherwise. > > permissions of /usr/local/dspam > drwxrwx--- 2 root mail 512 Jun 5 19:24 dspam > > -rw-r--r-- 1 root mail 33 Jun 5 19:24 untrusted.users > -rw-r--r-- 1 root mail 78 Jun 5 19:22 trusted.users > > the maillog errors: > > Jun 5 20:08:33 server postfix/smtpd[71739]: connect from [server] > Jun 5 20:08:33 server postfix/smtpd[71739]: 25A1911422: [server] > Jun 5 20:08:33 server postfix/cleanup[71741]: 25A1911422: > message-id=<40C26090.8000101@domain.com> > Jun 5 20:08:33 server postfix/qmgr[71738]: 25A1911422: > from=, size=4405, nrcpt=1 (queue active) > Jun 5 20:08:33 server dspam[71744]: unable to open > /usr/local/etc/dspam/trusted.users for reading: Permission denied. > Jun 5 20:08:33 server dspam[71744]: forcing username for untrusted user > nobody > Jun 5 20:08:33 server dspam[71744]: unable to locate > /usr/local/etc/dspam/untrusted.mailer_args: Permission denied. allowing > untrusted user to specify passthru delivery parameters > Jun 5 20:08:33 server dspam[71744]: DB_ENV->open failed: > /usr/local/etc/dspam/nobody: Permission denied > Jun 5 20:08:33 server dspam[71744]: unable to initialize dspam context > Jun 5 20:08:33 server dspam[71744]: process_message returned error -2. > delivering message. > Jun 5 20:08:33 server maildrop[71746]: Unable to change to home directory. > Jun 5 20:08:33 server postfix/local[71742]: 25A1911422: > to=, relay=local, delay=0, status=deferred > (temporary failure. Command output: 71744: [Sat Jun 5 20:08:33 2004] > Unable to create directory: /usr/local/etc/dspam/nobody/: Permission > denied /usr/local/bin/maildrop: Unable to change to home directory. > 71744: [Sat Jun 5 20:08:33 2004] LDA returned error, exit code: 75, LDA > command line: /usr/local/bin/maildrop ) > Jun 5 20:08:33 server postfix/smtpd[71739]: disconnect from [server] > > What else should I send?? > -- > > > reed > 4.6692016090 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"