Date: Wed, 9 Jun 2004 13:32:26 +0200 From: Geert Hendrickx <geert.hendrickx@ua.ac.be> To: "Reed L. O'Brien" <reedobrien@acm.org> Cc: freebsd-questions@freebsd.org Subject: Re: dspam Message-ID: <20040609113225.GA5306@lori.mine.nu> In-Reply-To: <c9tun7$fdd$1@sea.gmane.org> References: <c9tun7$fdd$1@sea.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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=<user@domain.com>, 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=<spam-user@domain.com>, 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609113225.GA5306>