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.

SpamAssasin system wide - turned on by default

Discussion in 'General Discussion' started by ramprage, Jan 7, 2006.

  1. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Hey everyone.

    I have SpamAssasin enabled in WHM > Tweak Settings but it doesn't seem to turn it on by default for ALL domains on the system. It forces the domain owner to go to Mail, SpamAssasin and Enable it.

    How can I by default have it turned ON for the entire server?


    HMMM /etc/mail/spamassasin local.cf shows me the following:




    PHP:
    # These values can be overridden by editing ~/.spamassassin/user_prefs.cf
    # (see spamassassin(1) for details)

    # These should be safe assumptions and allow for simple visual sifting
    # without risking lost emails.

    required_score 7
    rewrite_header subject 
    [SPAM]

    by default new accounts don't have the /home/user/.spamassasin folder so I'm guessing it just doesn't enable it for that user/domain.

    Any ideas?
     
  2. kemis

    kemis Well-Known Member

    Joined:
    Feb 17, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Georgetown, TX
    To be honest, I really have no idea. I must wonder, though, if there's any way to utilize cPanel's "skel" folder for this purpose.

    I haven't looked at the contents of the ~/.spamassassin folder lately, but depending on how general it is, you might be able to customize it and include it in your skel folder for new accounts? The main question is: Is there something in this folder that enables spamassassin on the user's account, or is that setting somewhere else?

    Let me know if you find out anything. I'm definitely interested...

    -- Matt
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Actually, you could use the /scripts/postwwwacct system for that and create a file in the new account directory called:

    /home/account/.spamassassinenable
     
  4. kemis

    kemis Well-Known Member

    Joined:
    Feb 17, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Georgetown, TX
    Do you mean use the postwwwacct script to create the file after the new acct is created, or do you mean add the .spamassassinenable file to the skel folder and do something else with the postwwwacct script?

    Just putting the .spamassassinenable file in the skel folder would generate the desired effect without using the postwwwacct script, right?

    -- Matt
     
    #4 kemis, Feb 19, 2006
    Last edited: Feb 19, 2006
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No difference, just an alternative :)
     
Loading...

Share This Page