hi,

On Fri, 11 Apr 2008 23:12:15 +0200 (CEST), s...@datanet.hu wrote:
>> - the possibility to tell spamdrop with a -u (or any else) switch that
>> which user's mail is to be filtered, because on a virtual mail system
> every
>> maildir have the same uid:gid owner
> 
> It's possible with the latest nightly build, just like that, ie. you may
> specify the given user by using the -u command line switch.

Thanks!

>> - the possibility to tell spamdrop that if a given user's queue
>> nonexistent, then create it. The best option would be the ability to
>> provide a template directory with the necessary files, which could be
>> copied+renamed when a new user arrives. By this, one could provide a
>> reasonable starter token base  for newcomers.
> 
> This is out of the scope of an anti-spam application, it should be
handled
i sense a bit misunderstanding here :)

i meant that if foo is a new user, then .../clapf/queue/f/foo/* is not
present and would be a nice-to-have option making spamdrop to create it. 

Creating maildirs and stuff like that is obviously not in the scope of
clapf.

> Adding a new user should include the following steps:
> 
> Let's say, your data directory is /var/lib/clapf/data/p/pete and
> your queue directory is /var/lib/clapf/queue/p/pete.
> 
> Then you should:
> 
> 1. Create these directories:
>        mkdir -p /var/lib/clapf/data/p/pete
>        mkdir -p /var/lib/clapf/queue/p/pete
> 
> 2. Copy the default database file to /var/lib/clapf/data/p/pete
>        cp tokens.sdb /var/lib/clapf/data/p/pete

... er, my installation uses  /var/lib/clapf/queue/p/pete/clapf.sdb and
there is no specific datadir for the user under data/ .
Have I done sth wrong? Now i'm confused about the role of the queue+data
dirs... Spam marking (spamdrop) and filtering (maildrop) is working.

> 
> 3. Fix the permissions:
>        chown -R pete /var/lib/clapf/data/p/pete
>        chown pete /var/lib/clapf/queue/p/pete


afaik  the above steps from the manual, aren't they? :) I've done this when
i installed clapf, and now i'm trying to automate the process of creating
clapf-specific data structures for the mail users. If too complicated to
code it in C, then a callback to a shell script would do the job (calling a
given script when spamdrop is asked to test a message for a previously
unseen user).

---
best,

Peter



Reply via email to