I need to find out how many users have spamassassin enabled

CoolMike

Well-Known Member
Sep 6, 2001
313
0
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
 

CoolMike

Well-Known Member
Sep 6, 2001
313
0
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?
 

WebScHoLaR

Well-Known Member
Dec 14, 2005
508
3
168
Planet Earth
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.