Thank you so much gabrielle! I put a .dspam file in the /var/spool/dspam
directory and it worked!
Ok spammers, go ahead, send me viagra ;-]
-Brian
gabrielle singleton wrote:
Are you set for default opt-in? In that case it will not do anything
for a user who isn't already in the database (opted in)
# Opt: in or out; determines DSPAM's default filtering behavior. If this
value
# is set to in, users must opt-in to filtering by dropping a .dspam file in
# /var/dspam/opt-in/user.dspam (or if you have homedirs configured, a
.dspam
# folder in their home directory). The default is opt-out, which means all
# users will be filtered unless a .nodspam file is dropped in
# /var/dspam/opt-out/user.nodspam
#
Opt in
The comments aren't exactly right, you can opt in your database
% dspam_admin list prefs gelle
enableBNR=on
optIn=on
showFactors=on
signatureLocation=body
spamAction=deliver
trainingMode=NOTRAIN
ronin-root#
On Aug 30, 2007, at 12:45 AM, Brian Muramatsu wrote:
Hello,
I am trying to use DSPAM as a Postfix deliver proxy as outlined in
/usr/share/doc/dspam-doc/postfix.txt.gz. I followed the directions
almost exactly. Since my PostFix is chrooted, I set the socket to be
in the chroot jail in /var/spool/postfix/tmp/dspam.sock.
DSPAM seems to run fine and messages arrive in my inbox. I see
messages in dspam.messages log file. However, there are no DSPAM
headers at all in the e-mails. Also, dspam_stats returns nothing.
There are no rows at all in my mysql database....nothing is
happening?! How do I tell if anything is happening!?!
In my mail.log, I see Postfix relaying the mail to dspam:
Aug 30 04:35:38 porttown postfix/lmtp[16919]: 7549AC81FC:
to=<[EMAIL PROTECTED]>, relay=/tmp/dspam.sock[/tmp/dspam.sock],
delay=0, status=sent (250 2.6.0 <[EMAIL PROTECTED]> Message accepted
for delivery)
Heres some debug output from "dspam --debug --daemon":
16484: [08/30/2007 04:35:38] DSPAM Instance Startup
16484: [08/30/2007 04:35:38] input args: dspam --deliver=innocent
16484: [08/30/2007 04:35:38] pass-thru args:
16484: [08/30/2007 04:35:38] processing user [EMAIL PROTECTED]
16484: [08/30/2007 04:35:38] uid = 0, euid = 0, gid = 0, egid = 113
16484: [08/30/2007 04:35:38] loading preferences for user
[EMAIL PROTECTED]
16484: [08/30/2007 04:35:38] _ds_pref_load: unable to
_mysql_drv_getpwnam([EMAIL PROTECTED])
16484: [08/30/2007 04:35:38] Loading preferences for uid 0
16484: [08/30/2007 04:35:38] Loading preferences for uid 0
16484: [08/30/2007 04:35:38] default preferences empty. reverting to
dspam.conf preferences.
16484: [08/30/2007 04:35:38] Loading preferences from dspam.conf
16484: [08/30/2007 04:35:38] using
/var/spool/dspam/opt-in/fhobia.org/brian.dspam as path
16484: [08/30/2007 04:35:38] using
/var/spool/dspam/opt-out/fhobia.org/brian.nodspam as path
16484: [08/30/2007 04:35:38] Establishing connection to 127.0.0.1:10026
16484: [08/30/2007 04:35:38] Connection established
16484: [08/30/2007 04:35:38] No QuarantineAgent option found. Using
standard quarantine.
16484: [08/30/2007 04:35:38] using database handle id 2
16484: [08/30/2007 04:35:38] handle locked
16484: [08/30/2007 04:35:38] DSPAM Instance Startup
16484: [08/30/2007 04:35:38] input args: dspam --deliver=innocent
16484: [08/30/2007 04:35:38] pass-thru args:
16484: [08/30/2007 04:35:38] processing user [EMAIL PROTECTED]
16484: [08/30/2007 04:35:38] uid = 0, euid = 0, gid = 0, egid = 113
16484: [08/30/2007 04:35:38] loading preferences for user
[EMAIL PROTECTED]
16484: [08/30/2007 04:35:38] _ds_pref_load: unable to
_mysql_drv_getpwnam([EMAIL PROTECTED])
16484: [08/30/2007 04:35:38] Loading preferences for uid 0
16484: [08/30/2007 04:35:38] Loading preferences for uid 0
16484: [08/30/2007 04:35:38] default preferences empty. reverting to
dspam.conf preferences.
16484: [08/30/2007 04:35:38] Loading preferences from dspam.conf
16484: [08/30/2007 04:35:38] using
/var/spool/dspam/opt-in/fhobia.org/brian.dspam as path
16484: [08/30/2007 04:35:38] using
/var/spool/dspam/opt-out/fhobia.org/brian.nodspam as path
16484: [08/30/2007 04:35:38] Establishing connection to 127.0.0.1:10026
16484: [08/30/2007 04:35:38] Connection established
16484: [08/30/2007 04:35:38] DSPAM Instance Shutdown. Exit Code: 0
Any ideas as to what is happening? The only error I notice is that
mysql_drv_getpwnam. Other people have talked about compiling with
enable-virtual-users, and I've done that...but no luck.
Thank you,
-Brian