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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

List all cPanel accounts that 'are not' or 'are' using SpamAssassin?

Discussion in 'E-mail Discussion' started by Yasser Masood, May 3, 2018.

  1. Yasser Masood

    Yasser Masood Registered

    Joined:
    May 3, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Arab Emirates
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm looking for a way to list cPanel accounts that are not using SpamAssassin i.e. SpamAssassin is disabled for them in cPanel Home > Apache SpamAssassin.

    Another way would be to list all accounts that are using SpamAssassin, however that will list a lot of them on our server.

    I can't seem to find a way to do this in cPanel or via the CLI, so any help here will be great.

    Thanks!

    Yasser
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    968
    Likes Received:
    68
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Yasser Masood

    There is not a native way to determine this through the UI but you might be able to use the following API to obtain the enabled/disabled status of SpamAssassin and run it through a loop of your users:

    UAPI Functions - Email::get_spam_settings - Developer Documentation - cPanel Documentation

    Some threads that go over a simple loop to go through users can be found here:

    How to get the cPanel users list or check a user from SSH?
    Loop through all accounts and run api calls?

    Thank you,
     
Loading...

Share This Page