I posted this last Wednesday, but it doesn't appear that the e.mail made it through [it is not in the archives]. I've since had a bigger issue with dspam that I am trying to work out [I've been out sick since Saturday and after adding the dspam cron jobs, the history and analysis tabs are 'broken', but i'll save that for another post].

Anyway, my main question with the below message is how do I confirm that redirects to s...@example.com are being counted? If I redirect a message, shouldn't the History tab show that message as 'retrained'?

Also, a possible bug: in quarantine, last week, I accidently marked 66 mails as "redeliver" [hit the wrong button; meant to delete selected instead]. I tried to hit 'stop' in my browser, but apparently too late; When I went back to quarantine, I retrained the 66, but dspam, in the Performance tab, still shows 66 good messages missed. :( The quarantine *did* update though, but the stats don't show it, so it makes dspam look bad. :(

Anyway, here is the message I sent last week...

/vjl/

---------- Forwarded message ----------
Date: Wed, 14 Jan 2009 14:20:53 -0500 (EST)
From: Vince LaMonica <v...@cullasaja.com>
To: Kyle Johnson <kjohn...@fixertec.net>
Cc: dspam-users@lists.nuclearelephant.com
Subject: Re: [dspam-users] dspam confusion

On Wed, 14 Jan 2009, Kyle Johnson wrote:

} I'm happy that you have dspam mostly working now.  Did you take care of the
} History, Analysis and Quarantine issues in the WebUI that you previously
} mentioned?  That can usually be fixed by checking your permissions.  Give Led
} Hed's wiki <http://wiki.ledhed.net/index.php/DSpam_File_Permissions> a read,
} which shows the permissions of all of his dspam related files and directories.
} Basically, run dspam as dspam (ps aux | grep dspam should show you the user
} that it is running as) and chown -R dspam.dspam $DSPAM_HOME, and chown -R
} dspam.dspam /var/www/dspam.

The permissions on the WebUI seem to be working well; I can access
History, Analysis and Quarantine. dspam is running as root though. I'll
need to check the wiki you linked above and get things running with better
permissions. /usr/local/dspam [ak $DSPAM_HOME] is owned by user dspam,
group root right now. /var/www/dspam is owned by user apache, group dspam.

} I would have to say that the fault is with the --user switch.  Are you using
} the PgSQL or MySQL storage driver?  If so, and you are also using the

Yes, I am using the MySQL storage driver.

} SQLUIDInSignature option, then --user must be set to any valid user in the
} dspam database (that being any user in the dspam_virtual_uids table).  Dspam

I'm not using virtual users though on the server itself, so there is no
dspam_virtual_uids table in my dspam database. I am using the
MySQLUIDInSignature option so that my alias is simply s...@example.com,
not spam-use...@example.com. I like the global alias [if i could confirm
that it's working!]. I did not compile dspam with the
--enable-virtual-users since all the users on this system that get mail
are real users [though most have /bin/false as their shell]. The mysql
readme stated to only run virtual_users.sql [eg: creating the table you're
talking about] if the users don't actually exist on my system; since they
do, I did not run that sql file.

} will then change the user to the correct one at run time.  This also has the
} benefit of requiring only one spam and one notspam alias, instead of having
} one for each user on your system.  Read the "The Simple Way" setup in the
} README.

Yes, I'm using [hopefully] the "simple way" in the readme, which was very
simple to setup, though I don't have virtual users on the system, so I'm a
bit confused why I would need to add that table to my MySQL dspam db.

I am confused by this, however, in the README:

     The 'root' user represents any active dspam user. It is necessary to
     supply a username on the commandline or DSPAM will bail on
     an error, however the user will be changed internally once the
     signature is read.

I don't see dspam bailing with an error in my postfix logs, so I assume
[incorrectly?] that --user root is fine to use for my spam/nospam aliases?

} If you are not using the previously mentioned setup, then --user needs to be
} set to the user that the incoming mail belongs to.  I think.  I never quite
} figured out the ParseToHeaders, ChangeUserOnParse and ChangeModeOnParse
} options, which I think are used to help determine the user when using not
} suing any of the SQLUIDInSignature options.  It seems like you are using
} either the "The Kind-of-Simple Way" or "The Old Way (A.K.A. The Hard Way)"
} setup as detailed in the README.

Actually, no I am using the real, honest-to-goodness "simple way". :)

} Long story short - mess with the --user option.  If that turns out to be the
} problem, look into using one of the SQLUIDInSignature options.

What is the expected result when I do redirect the missed spams to my
s...@example.com alias? Should they show up in the history as 'missed'
after I submit them? I did redirect a message to one of my other accounts,
and I can confirm that the X- headers are retained during the redirect, so
dspam should see the signature [which includes my userid:

        
Since dspam is running as root [i need to make a startup script that will
run it as user dspam instead], shouldn't the spam/nospam alias below work:

spam:    "|/usr/local/dspam/bin/dspam --user root --class=spam --source=error"
notspam: "|/usr/local/dspam/bin/dspam --user root --class=innocent --source=error"

Once I change dspam to run as user dspam, I could change the --user arg
above to 'dspam' instead of 'root'.

Do messages that are missed and redirected to the alias normally show up
in the corpus stats?

Thanks again for your continued help!

/vjl/

--
Vince J. LaMonica       Knowledge is knowing a street is one way.
v...@cullasaja.com  <*>  Wisdom is still looking in both directions.

           Donate today, please: http://www.cancer.org/

!DSPAM:1011,4977752d150921833713692!


Reply via email to