How to train spamassassin to stop SPAM emails
train spam assasian with commands to learn from existing emails
DOMAINPART will be your domain name
LOCALPART will be your username
LOCALPART@DOMAINPART
DOMAINPART will be your domain name
LOCALPART will be your username
LOCALPART@DOMAINPART
root@ip-10-0-0-12:/var/log# sa-learn -p /home/USER/.spamassassin/user_prefs --ham /home/vmail/DOMAINPART/LOCALPART/.INBOX.Sent\ Messages/{cur,new}
Learned tokens from 333 message(s) (333 message(s) examined)
root@ip-10-0-0-12:/var/log# sa-learn -p /home/USER/.spamassassin/user_prefs --spam /home/vmail/DOMAINPART/LOCALPART/.Junk/{cur,new}
Learned tokens from 1 message(s) (20 message(s) examined)
root@ip-10-0-0-12:/var/log# sa-learn -p /home/USER/.spamassassin/user_prefs --spam /home/vmail/DOMAINPART/LOCALPART/.Trash/{cur,new}
get and download new rules into spamassassin
run following command from command line
sa-update
Comments