I think I've got the answer.  I am now able to create the .spamassassin
directory in my "user's" directory.  I played around with a few of the spamd
options.  My /etc/sysconfig/spamassassin configuration is as follows:

[/etc/sysconfig/spamassassin]

<start>
# spamd options

#default
# SPAMDOPTIONS="-d -c -a -m5 -H"

# virtual user with different directories
SPAMDOPTIONS="-d -x --virtual-config-dir=/var/qmail/maildirs/corporate/%u -a
 -m5 -H"
<end>

Read the man pages for spamd and look at the -V -x -c --virtual-config-dir
options.  They all talk about user preference files.  The above settings
worked for me.  The .spamassassin directory was created in the
/var/qmail/maildirs/corporate/%u directory where %u is pass from the -u
option to spamc.  My spamcheck.sh file is as follows (notice -u $USER):

[/var/qmail/bin/spamcheck.sh]

<start>
#!/bin/sh
spamc -u $USER |maildir ./Maildir/
<end>

Note that the $USER is the qmail command environment variable that is set.

My next steps are to allow for the user to edit their preferences through
squirrelmail - there is a plugin that uses ftp - not sure why, most likely
since squirrelmail does not theoretically need to live on the same machine.

Another nice thing to do would be to send "spam" to a "SPAM" folder - if
anyone has info on that, it would be great.

Ray

-----Original Message-----
From: Roger Thomas [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 04, 2004 9:53 PM
To: Ray Jim�nez
Cc: Brian Clark; qmail-ldap
Subject: RE: location of .spamassassin directory


Dear Ray,
Yes and I have got SA working *with* the .spamassassin in
/var/qmail/maildirs too. I posted on 18th March
http://marc.theaimsgroup.com/?l=qmail-ldap&m=107960754823914&w=2 to enquire
as to how to make .spamassassin (and .pyzor and .razor as well ?) live in
each user's home. And repost the same question on 24th March
http://marc.theaimsgroup.com/?l=qmail-ldap&m=108010527113071&w=2

If you or anybody else can get this working, I would love to hear how you
ppl do it. I have been trying this for nearly a month but I must a dead
moron as I just cannot get .spamassassin to be where I want it to be created
:(

Best rgds,
Roger

--


Quoting Ray Jim�nez <[EMAIL PROTECTED]>:

> Thank You!  I have it working now.  My .spamassassin directory is in
> /var/qmail/maildirs.  I will go back and read your e-mail thread to figure
> out how to get those in the individual user directories.
>
> Thanks again,
> Ray
>
> -----Original Message-----
> From: Brian Clark [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 9:36 AM
> To: Ray Jim�nez
> Cc: qmail-ldap
> Subject: Re: location of .spamassassin directory
>
>
> Ray Jim�nez wrote:
>
> >Brian:
> >
> >I followed your directions.  The only problem I am having is executing
the
> >"spamcheck.sh".
> >
> >Here are some details:
> >
> ># ls -l /var/qmail/bin/spamcheck.sh
> >-rwxr-xr-x    1 root     qmail          36 Apr  1 23:37
> >/var/qmail/bin/spamcheck.sh
> >
> ># cat /var/qmail/bin/spamcheck.sh
> >#!/bin/sh
> >spamc |maildir ./Maildir/
> >
> >NOTE: I have tried it with "|spamc |maildir ..."
> >
> ># tail /var/log/qmail/current
> >@40000000406cf05828ab04b4 status: local 1/10 remote 0/20
> >@40000000406cf05912429174 delivery 1726: deferral:
> >/var/qmail/bin/spamcheck.sh:_maildir:_command_not_found/
> >@40000000406cf0591242bc6c status: local 0/10 remote 0/20
> >
> >NOTE: I can not find a "maildir" binary anywhere on my system.
> >
> >Any help would be appreciated,
> >Ray
> >
> >
> >
>
> You need to install the safecat software onto your system. It is not
> part of qmail-ldap. "maildir" is actually an alias to the "safecat"
> binary. I think it used to be called maildir, but changed names at some
> point in the past. You can get it here:
>
> http://mysite.verizon.net/vze1ypud/linux/software/safecat.html
> -or-
> http://www.gnu.org/directory/Email/misc/safecat.html
>
> Brian!
>
>
>





---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------


Reply via email to