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!

How can I re-scan email folders after activating SA Spam Box?

Discussion in 'E-mail Discussion' started by Kent Brockman, Sep 18, 2015.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello guys. I just received a domain transfered with hundreds of email accounts used via webmail, it had SpamAssassin Spam Box inactive, and contained LITERALLY THOUSANDS (65k) spam messages in the new/cur folders of EVERY account.
    I activated SpamAssassin Spam Box and it is doing a good job moving incoming spam to spam folder, but...

    1) How can I re-scan the existing email accounts to move previous spam to the spam folder?
    2) How can I schedule an auto-expunge of spam folders task to avoid storing hundreds of megabytes of spam?

    Hope you can help.
    Thanks!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    1. There are no native features that will scan email that's already been delivered to the inbox. You may need to search the email through the command line for specific lines of text in the header (e.g. Spam Status) and remove any matches. This third-party URL may help:

    http://unix.stackexchange.com/questions/84852/delete-files-matching-pattern

    2. You can enable the "Auto Delete SPAM" option via "cPanel >> Apache SpamAssassion".

    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