Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2009
    Posts
    5

    Default Account Level Spam filter redirect to Spam Box

    How can one direct spam mails identified by a Account or User level filter to the Spam Box (spam)?
    I have access to the .cpanel/filter.yaml Exim script, but I do not see how I can achieve this with the cPanel Spam Filter 'Actions'. Is there some variable available I can use in the 'Forward to' Actions selection (or any other action).
    I want that every user can take care of their own junk mail.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb SpamAssassin Spam Box

    The Spam Box feature may be enabled or disabled via the SpamAssassin page within the Mail features in cPanel.
    Menu path, cPanel: Mail >> Spam Assassin
    Related Documentation: SpamAssassin

    Please note that in order for the Spam Box to function it is necessary to ensure that SpamAssassin is enabled.

  3. #3
    Member
    Join Date
    Nov 2009
    Posts
    5

    Default Account Level Spam filter redirect to Spam Box

    Yes, I enabled Spamassassin and Spam Box and it works fine for 'standard' junk identified by the standard SA rules.
    But what happen to the filters I can add under "Filter for All Mail On Your Account"? I have to add a filter name, rules and actions. What do I have to specify in the Actions part to let the mail, which was identified as spam by the Rules section, end up in the Spam Box directory 'spam'?
    I found out how to do this on a User Level (Deliver to folder: .spam), but not on the account level. Is there maybe a variable I have to add into the path as the path always starts with /, e.g. /$MAILDIR/$SPAMBOX or do I have to use a different Action? Or ... do I need to edit the backup/Restore Exim script?
    Thanks!

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    I am not aware of a special variable to use that would work for the given requirements; however, it is entirely possible to setup a filter within Account-Level Filtering that matches a given recipient and then delivers the message into the recipient's "spam" folder.

    When using Account-Level Filtering to setup custom filters that redirect to a specific folder unique to each e-mail account the only differences during setup would be that you may want or need to add a rule that matches the filter to a recipient while also using a longer folder path for delivery (a folder path that uses the domain name), as seen in the following example when using the action "deliver to folder" and using a path like the following, where "domain.tld" should be replaced by the applicable domain name and where "emailuser" should be replaced by the applicable name of the e-mail account:
    Code:
    /domain.tld/emailuser/.spam
    The above folder path may be selected via a drop-down menu after setting the action as "deliver to folder."

    Related Documentation:
    Account Level Filtering
    User Level Filtering

  5. #5
    Member
    Join Date
    Nov 2009
    Posts
    5

    Default

    Well, your example code would allow to set to one particular user and adding a filter per user would mean that for a company of 100 people I would have to add hundreds of filter rules. I just want to work on a single filter for all employees. In procmail I simply do the following:

    # set virtual user
    POPBOX=`echo "$EXT2" | tr 'A-Z' 'a-z'`
    SPAMFILECUSTOMER=/path-to-mailbox/"$POPBOX"^/.imap/JUNK.Mail
    INCLUDERC=/path-to-main-filter-script (filter either let mail pass or put it into SPAMFILECUSTOMER
    The main thing here, I can extract the individual mailbox ($POPBOX aka emailuser) out of procmails $EXT2 variable. If I need the domain.tld, I can use $EXT.

    But I do not see how I can achieve this with the cPanel facility I have access to.

    If I could set the following:
    /domain.tld/$EMAILUSER/.spam
    Since Exim is the mailer, Exim apparently does not know the user specific part when going through these filters. A 'router' for the specific user would have to be configured or so ... but I am not (yet) sure about this as I just started using Exim and cPanel.

Similar Threads & Tags
Similar threads

  1. Does 'Spam Auto Delete' negate the 'Enable Spam Box' feature?
    By jawz101 in forum E-mail Discussions
    Replies: 2
    Last Post: 12-22-2010, 02:14 PM
  2. Are Spam Auto Delete & Spam Box mutually exclusive?
    By smileybri in forum New User Questions
    Replies: 1
    Last Post: 12-17-2010, 08:09 PM
  3. Box trapper/ Spam Ass./white list/spam box/etc
    By cmcprodmgr in forum E-mail Discussions
    Replies: 17
    Last Post: 06-25-2008, 03:13 PM
  4. Instalar Spam Assassin y spam box en todas las cuentas!
    By mgrizal in forum Discusión en Español
    Replies: 2
    Last Post: 11-18-2006, 01:10 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube