Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Disable spamassasin globally via shell.

Discussion in 'General Discussion' started by soumya.tr, Aug 31, 2012.

  1. soumya.tr

    soumya.tr Member

    Joined:
    Oct 24, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    51
    Hi,

    I have to disable spamassasine globally in many cpanel servers. I followed the below given steps:

    1. Removed file /etc/global_spamassassin_enable [this itself sets the option '"WHM >> exim configuration editor >>
    SpamAssassin™: Forced Global ON [?]{Turn on SpamAssassin™ for all accounts (i.e. with no option to disable)}' to OFF.

    2. Changed the parameter globalspamassassin to 0 in /etc/exim.conf.localopts.

    Is these steps fine? Should I have to do any other step [like rebuilding eximconf using /scripts/buildeximconf or restarting service exim ]?

    Thanks in advance.
     
  2. soumya.tr

    soumya.tr Member

    Joined:
    Oct 24, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    51
    Please guide me. Its urgent :(
     
  3. arvin_webzias

    arvin_webzias Registered

    Joined:
    Aug 29, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Neyattinkara, Kerala, India, India
    cPanel Access Level:
    Root Administrator
    You can disable SpamAssassin for your entire server by following the below steps:

    [1] Login to your WHM.
    [2] Go to Tweak Settings.
    [3] Uncheck SpamAssassin Spam Filter option and save it.

    If you are not using SpamAssassin in your server, you can also disable SpamAssassin service. To disable it:

    [1] In WHM -> Go to Service Manager.
    [2] Uncheck Enabled and Monitor option for spamd.

    Regards
     
  4. soumya.tr

    soumya.tr Member

    Joined:
    Oct 24, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    51
    @arvin_webzias : Thanks.

    But is there any way to do this via shell? As I have the change to be made in a lot of servers, and was planning to do via a shell script.
     
  5. arvin_webzias

    arvin_webzias Registered

    Joined:
    Aug 29, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Neyattinkara, Kerala, India, India
    cPanel Access Level:
    Root Administrator
    Hello,

    Try this one.

    =============
    sed -i 's/skipspamassassin=0/skipspamassassin=1/' /var/cpanel/cpanel.config
    /etc/init.d/cpanel restart
    =============

    Regards
     
  6. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    751
    Likes Received:
    11
    Trophy Points:
    143
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    @arvin_webzias is correct skipspamassassin=1 in your cpanel.config and /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings will fix you right up.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice