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.

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

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

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    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!!!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
Loading...

Share This Page