Bartosz wrote: > Hello,
> I use amavisd to fight spam, but I still receive spam messages. > I use squirellmail to access my email. > I created folder SPAM , and I put all spam to that folder. > Now aftersome time I want to learn amavisd about that spam, > I do this: > su amavis > sa-learn --spam /home/blwegrzyn/mail/SPAM > where SPAM is the SPAM folder created in squirellmail, > is my procedure ok? Yes, but 'after some time' should be reasonably soon after you get the spam - so it does some good right away. Although it may happen much less frequently, you might also create a HAM folder for ham that gets a high Bayes score - ham that may get marked as spam. Also, the amavis user will not be able to read from that directory. One possible solution would be to give the amavis user copies of the spam and ham. You could create a directory and copy them there, and make a script to make it easier. This assumes the amavis home directory is /var/amavis and you create /var/amavis/spam and /var/amavis/ham subdirectories: mkdir /var/amavis/spam chmod 0750 /var/amavis/spam mkdir /var/amavis/ham chmod 0750 /var/amavis/ham #!/bin/sh # # script to feed my stuff to Bayes # cp /home/blwegrzyn/mail/SPAM/* /var/amavis/spam cp /home/blwegrzyn/mail/HAM/* /var/amavis/ham chown -R amavis:amavis /var/amavis/spam chown -R amavis:amavis /var/amavis/ham su amavis -c 'sa-learn --spam /var/amavis/spam && rm -f /var/amavis/spam/*' su amavis -c 'sa-learn --ham /var/amavis/ham && rm -f /var/amavis/ham/*' I don't doubt there is a more efficient way to do this, but this should be safe. Gary V ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
