The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    1
    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:
    1
    @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:
    746
    Likes Received:
    11
    Trophy Points:
    18
    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!
     
Loading...

Share This Page