Lisa Casey wrote:
> Hi,
>
> I am really new to Dspam (I have used mimedefang/spamassassin in the
> past). My mailserver is Sendmail running on FreeBSD with Procmail as the
> LDA. I installed Dspam from the FreeBSD ports using daemon mode and the
> hash storage driver, and am in the process of configuring it. There are
> several things I don't understand real well.
>
> 1. The cgi user (www) and the MTA user (mailnull) need to be able to do
> certain things (execute the dspam binary, etc.). Do I justy need to
> specify these users as trusted users in dspam.conf for that to work?
>
> 2. user aliases: I really don't want to have to create mail aliases for
> every user on the system (there are about 600 mailboxes at present). I'm
> not using MySQL or PgSQL so I can't use "The Simple Way" mentioned in
> the Dspam README so I'm trying to figure out The Kind-of-Simple Way. I
> need to set up a subdomain like relearn.jellico.com Do I need an A
> record for that in my DNS zone file?
> The dspam readme states: set up a subdomain catch-all directly into
> DSPAM. For example:
> @relearn.domain.tld "|/usr/local/bin/dspam"
>
> Do I put that into dspam.conf? Then I set the appropriate
> ParseToHeaders and related options in dspam.conf and have my users
> forward spam and ham to (example) [EMAIL PROTECTED] and
> [EMAIL PROTECTED] Is that it? I'm afraid I don't understand
> this very well.
Well, some of us use a slightly different setup relying on IMAP
folders and some simple scripts. I.e. the users have a few folders
setup each:
Spam
train
spam
ham
...and together with sieve detecting the X-DSPAM-SPAM header,
the mail gets automatically sorted as spam if marked as spam
by dspam. Again at the user end, should a spam slip through,
our users are instructed to put that into a specific spam
training folder (Spam->train->spam), and any incorrectly
marked ham into the ham folder (Spam->train->ham). Then,
on top of that, we have a simple script that goes through
all user Spam/train/{spam,ham} folders and feeds any mails
back to dspam for learning/training.
This works well at our site:
o No special UI (web ui or other)
o No need for extra aliases
o Minimum interaction from user
o Accuracy at 98.78% after three months
(low traffic site, couple of hundred mails a day)
Hope this helps
/Lars
> 3. The webui: When I installed DSPAM it created the subdirectory
> /usr/local/www/vhosts/dspam containing the following files:
> -r-xr-xr-x 1 root wheel 22764 Jul 25 14:49 admin.cgi
> -r-xr-xr-x 1 root wheel 3396 Jul 25 14:58 admingraph.cgi
> -r--r--r-- 1 root wheel 10 Jul 25 14:45 admins
> -r--r--r-- 1 root wheel 5 Jul 25 11:56 admins.sample
> -r--r--r-- 1 root wheel 2772 Jul 25 11:56 base.css
> -r-xr-xr-x 1 root wheel 2704 Jul 25 14:47 configure.pl
> -r-xr-xr-x 1 root wheel 2713 Jul 25 11:56 configure.pl.sample
> -r--r--r-- 1 root wheel 1383 Jul 25 12:55 default.prefs
> -r--r--r-- 1 root wheel 1383 Jul 25 11:56 default.prefs.sample
> -r--r--r-- 1 root wheel 4792 Jul 25 11:56 dspam-logo-small.gif
> -r-xr-xr-x 1 root wheel 42736 Jul 25 14:50 dspam.cgi
> -r-xr-xr-x 1 root wheel 2887 Jul 25 14:51 graph.cgi
> -r--r--r-- 1 root wheel 17168 Jul 25 11:56 rgb.txt
> drwxr-xr-x 2 root wheel 512 Jul 25 11:56 templates
>
> The README states that I need to copy the files from the dspam/webui
> directory into my document root and cgi-bin. Can I assume that having
> these files in /usr/local/www/vhost/dspam is sufficient or do I need to
> copy these files into my real cgi-bin directory? If so, are there any
> files that need to go into cgi-bin bedides the .cgi's and .pl's? What
> files need to go into Apache's document root?
>
> 4. The README states: "If you are running procmail, this will become a
> problem as procmail requires root privileges to deliver. The easiest
> hack around this is to create a procmail.dspam binary and make it
> setuid root, then make it executable only by the mail group (or whatever
> group DSPAM and the CGI run in)." I found this info on the web. Is
> this what I need to do to comply with what the README says about Procmail?
>
> cp /usr/bin/procmail /usr/local/bin/procmail.dspam
> chown root.dspam /usr/local/bin/procmail.dspam
> chmod 550 /usr/local/bin/procmail.dspam
> chmod u+s /usr/local/bin/procmail.dspam
>
> Which brings up another point - the dspam installation did not create a
> dspam user. Was I supposed to do that by hand?
>
> I'm sorry for all the questions but I really want to use dspam and don't
> yet feel comfortable that I understand what I'm doing as far as setting
> it up goes.
>
> Thanks so much,
>
> Lisa Casey
>
>
>