KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:how-can-i-enable-spamassassin-on-all-cpanel-accounts

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
control-panels:cpanel-whm:how-can-i-enable-spamassassin-on-all-cpanel-accounts [2016/10/07 13:48]
Daniel P. [Perform all of this as seen with one simple copy and paste one-liner!]
control-panels:cpanel-whm:how-can-i-enable-spamassassin-on-all-cpanel-accounts [2016/10/21 13:56] (current)
mscherf revised for consistency
Line 1: Line 1:
-===== How can I enable SpamAssassin on all cPanel accounts? =====+====== How can I enable SpamAssassin on all cPanel accounts? =====
 {{howhard>​4}} {{howhard>​4}}
 +
 The "​Apache SpamAssassin:​ Forced Global ON" option in WHM's Exim Configuration manager does not actually enable SpamAssassin the way you think it does. It creates the SpamAssassin module/​option in the cPanel accounts, however if no configurations are set by the end user it's not really doing any good. The "​Apache SpamAssassin:​ Forced Global ON" option in WHM's Exim Configuration manager does not actually enable SpamAssassin the way you think it does. It creates the SpamAssassin module/​option in the cPanel accounts, however if no configurations are set by the end user it's not really doing any good.
  
-The article will cover how to enable SpamAssassin for every cPanel account account on your server with a few steps (//or jump to the end for a copy and paste one-liner//​).+The article will cover how to enable SpamAssassin for every cPanel account account on your server with a few steps.
  
 <WRAP center round info 60%> <WRAP center round info 60%>
Line 9: Line 11:
 </​WRAP>​ </​WRAP>​
  
-==== Enable SpamAssassin on all cPanel accounts ==== +===== Enable SpamAssassin on all cPanel accounts =====  
   - Log in to your server via SSH terminal as the root user.   - Log in to your server via SSH terminal as the root user.
   - Make sure the Global SpamAssassin Enable file exists, otherwise create it.   - Make sure the Global SpamAssassin Enable file exists, otherwise create it.
Line 23: Line 26:
       * ''​for i in `cat /​etc/​trueuserdomains | cut -d: -d' ' -f2-` ;do chown $i:$i /​home/​$i/​.spamassassinenable && chown -R $i:$i /​home/​$i/​.spamassassin ;​done''​       * ''​for i in `cat /​etc/​trueuserdomains | cut -d: -d' ' -f2-` ;do chown $i:$i /​home/​$i/​.spamassassinenable && chown -R $i:$i /​home/​$i/​.spamassassin ;​done''​
   - That's it! All cPanel accounts have SpamAssassin enabled with user preferences.   - That's it! All cPanel accounts have SpamAssassin enabled with user preferences.
- 
  
control-panels/cpanel-whm/how-can-i-enable-spamassassin-on-all-cpanel-accounts.txt · Last modified: 2016/10/21 13:56 by mscherf