Results 1 to 3 of 3

Thread: I need to find out how many users have spamassassin enabled

  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    315

    Default I need to find out how many users have spamassassin enabled

    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. #2
    Member
    Join Date
    Sep 2001
    Posts
    315

    Default

    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. #3
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    511

    Default

    Quote Originally Posted by CoolMike View Post
    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?
    Yes, its correct. A simple find command will return you the result and you can use "cut" to get the usernames.

    Regards,
    WebScHoLaR

    WebHosting Blog: http://WebScHoLaR.net

Similar Threads

  1. How to find out if SSH is enabled?
    By mberchtold in forum cPanel Developers
    Replies: 4
    Last Post: 04-03-2009, 05:43 AM
  2. SpamAssassin not enabled
    By tiggerific in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 08-28-2006, 06:23 AM
  3. SpamAssassin Problem - E-Mail Wont work if SpamAssassin enabled!
    By peterquast in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 09-27-2005, 10:18 AM
  4. Spamassassin is enabled, but not doing anything
    By ttremain in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 03-07-2004, 12:49 PM
  5. spamassassin is enabled but not doing anything
    By carlaron in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 02-28-2004, 10:18 AM