Hi,
still trying to accomplish this setup:
- spamassassin / spamd to filter out spam
- using berkdb as bayes db
- giving user "nobody" as less rights as possible
- spamd running under "nobody" rights
- sa-learn started by me (user mccramer)
- sa-learn will learn spam mails received and owned by me
problems:
- I had to assign a $HOME for nobody, but need still to use
"bayes_path" to point to the bayes db
- The script around sa-learn, which gives mccramer the right
to start sa-learn under "nobody"s right is highly hackish:
#!/bin/zsh
sudo sudo -u nobody /usr/bin/sa-learn -p /etc/mail/spamassassin --spam --dbpath
/etc/mail/nobody/.spamassassin/ --dir .
- it still does not work and throws "access denied" error messages,
may be caused, because user "nobody" has not the right to read
mails ownd by mccramer
archive-iterator: no access to .: Permission denied at
/usr/lib64/perl5/vendor_perl/5.12.2/Mail/SpamAssassin/ArchiveIterator.pm line
539.
archive-iterator: no access to .: Permission denied at
/usr/lib64/perl5/vendor_perl/5.12.2/Mail/SpamAssassin/ArchiveIterator.pm line
771.
archive-iterator: unable to open .: Permission denied
Learned tokens from 0 message(s) (0 message(s) examined)
I dont wand to give "world" the right to read my mail.
How can I solve this knot of dependencies ???
Thank you very much in andvance for any help!
Best regards
mcc