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!

I need to find out how many users have spamassassin enabled

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

  1. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    316
    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:
    316
    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:
    3
    Trophy Points:
    168
    Location:
    Planet Earth
    Yes, its correct. A simple find command will return you the result and you can use "cut" to get the usernames.
     
    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