KNOWNHOST WIKI

User Tools

Site Tools


email:exim:training-spamassassins-accuracy-with-sa-learn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
email:exim:training-spamassassins-accuracy-with-sa-learn [2015/05/18 18:39]
dlevey
email:exim:training-spamassassins-accuracy-with-sa-learn [2019/01/24 20:15] (current)
Derrick B.
Line 26: Line 26:
 Executing sa-learn commands must be performed by the 'mail account owner' to function properly. When attempting to run these commands as the '​root'​ user, use the following syntax to run them as the user:  Executing sa-learn commands must be performed by the 'mail account owner' to function properly. When attempting to run these commands as the '​root'​ user, use the following syntax to run them as the user: 
  
-sudo -H -u <​CPANELUSER>​ bash -c '/​usr/​local/​bin/​sa-learn <​COMMANDS>'​+sudo -H -u <​CPANELUSER>​ bash -c '/​usr/​local/​cpanel/​3rdparty/​bin/​sa-learn <​COMMANDS>'​
  
 </​WRAP>​ </​WRAP>​
   * From the command line run sa-learn on your email account'​s "​Junk"​ folder.   * From the command line run sa-learn on your email account'​s "​Junk"​ folder.
     * ''​sa-learn -p /​home/​USER/​.spamassassin/​user_prefs %%--%%spam /​home/​USER/​mail/​DOMAIN.TLD/​ACCOUNT/​.Junk/​{cur,​new}''​     * ''​sa-learn -p /​home/​USER/​.spamassassin/​user_prefs %%--%%spam /​home/​USER/​mail/​DOMAIN.TLD/​ACCOUNT/​.Junk/​{cur,​new}''​
 +      * Be sure of the path to ''​sa-learn''​ -- on WHM v76 servers, it is ''/​usr/​local/​cpanel/​3rdparty/​bin/​sa-learn''​
     * Depending on how many messages you have (and if you've run it before or not) you'll see results similar to this: ''​Learned tokens from 214 message(s) (1009 message(s) examined)''​     * Depending on how many messages you have (and if you've run it before or not) you'll see results similar to this: ''​Learned tokens from 214 message(s) (1009 message(s) examined)''​
   * From the command line run sa-learn on your email account'​s "​Seen"​ folder. //Note the differences here, "​%%--%%ham"​ and "​.Seen"​.//​   * From the command line run sa-learn on your email account'​s "​Seen"​ folder. //Note the differences here, "​%%--%%ham"​ and "​.Seen"​.//​
email/exim/training-spamassassins-accuracy-with-sa-learn.txt · Last modified: 2019/01/24 20:15 by Derrick B.