1 |
Hi, |
2 |
|
3 |
still trying to accomplish this setup: |
4 |
- spamassassin / spamd to filter out spam |
5 |
- using berkdb as bayes db |
6 |
- giving user "nobody" as less rights as possible |
7 |
- spamd running under "nobody" rights |
8 |
- sa-learn started by me (user mccramer) |
9 |
- sa-learn will learn spam mails received and owned by me |
10 |
|
11 |
problems: |
12 |
- I had to assign a $HOME for nobody, but need still to use |
13 |
"bayes_path" to point to the bayes db |
14 |
- The script around sa-learn, which gives mccramer the right |
15 |
to start sa-learn under "nobody"s right is highly hackish: |
16 |
|
17 |
#!/bin/zsh |
18 |
sudo sudo -u nobody /usr/bin/sa-learn -p /etc/mail/spamassassin --spam --dbpath /etc/mail/nobody/.spamassassin/ --dir . |
19 |
|
20 |
- it still does not work and throws "access denied" error messages, |
21 |
may be caused, because user "nobody" has not the right to read |
22 |
mails ownd by mccramer |
23 |
|
24 |
archive-iterator: no access to .: Permission denied at /usr/lib64/perl5/vendor_perl/5.12.2/Mail/SpamAssassin/ArchiveIterator.pm line 539. |
25 |
archive-iterator: no access to .: Permission denied at /usr/lib64/perl5/vendor_perl/5.12.2/Mail/SpamAssassin/ArchiveIterator.pm line 771. |
26 |
archive-iterator: unable to open .: Permission denied |
27 |
Learned tokens from 0 message(s) (0 message(s) examined) |
28 |
|
29 |
I dont wand to give "world" the right to read my mail. |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
How can I solve this knot of dependencies ??? |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
Thank you very much in andvance for any help! |
40 |
|
41 |
Best regards |
42 |
mcc |