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!

Automatically Delete New Spam (Auto-Delete)

Discussion in 'E-mail Discussion' started by sahostking, Aug 16, 2018.

Tags:
  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    331
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    How do we set this option on by default for all domains and accounts on the server?

    Automatically Delete New Spam (Auto-Delete)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,284
    Likes Received:
    2,154
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @sahostking,

    There's no global option that will let you turn that feature on for all existing accounts or to turn it on by default for new accounts. I encourage you to open a feature request if this is something you'd like to see added to the product:

    Submit A Feature Request

    In the meantime, if you're looking for a way to do this via the command line, then you may find the following UAPI function helpful:

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

    You could develop a script that runs this function for all existing accounts on the server, and/or setup that custom script to run as part of the post Accounts::Create hook event:

    Guide to Standardized Hooks - Developer Documentation - cPanel Documentation
    Guide to Standardized Hooks - Whostmgr Functions - Developer Documentation - cPanel Documentation

    Thank you.
     
    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