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.

I need to find out how many users have spamassassin enabled

Discussion in 'E-mail Discussions' started by CoolMike, Jan 2, 2008.

  1. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    I need to make a script which returns the number of how many users have spamassassin enabled on an account. It's very important, that only the active accounts are counted and not the suspend accounts.

    Any idea how this could be done?

    Thanks
    Michael
     
  2. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    Is it correct if the file "/home/username/.spamassassinenable" is existing, then Spamassassin is enabled and if the file "/var/cpanel/suspended/username" exists, then the account is suspendet?
     
  3. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Yes, its correct. A simple find command will return you the result and you can use "cut" to get the usernames.
     
Loading...

Share This Page