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.

Forwarding Spam Assassin to another account??

Discussion in 'E-mail Discussions' started by mpemburn, Apr 15, 2008.

  1. mpemburn

    mpemburn Registered

    Joined:
    Apr 14, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Here's what I want to do (based on advice found on another thread):

    * Create a new account, ie hold@yourdomain.com
    * Enable boxtrapper only on that email
    * Configure Spam Assassin to forward spam emails to hold@yourdomain.com

    -- but I cant do the last step because there seems to be no mechanism in Spam Assassin to "foward spam emails". My email host uses cPanel 11 and it seems as though there were a lot more configuration options in Spam Assassin before they switched from cPanel 10.

    Thanks in advance,

    Mark
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I would recommend creating a mail filter that would forward spam emails to the separate address. When you enable SpamBox, all that does is create an Account Level email filter. Simply edit your account level email filters, specifically the one for SpamBox (which will be clearly labeled as such) and you can then customize the behavior of that rule. By default, it will simply send the mail to a folder named spam.
     
  3. breyed

    breyed Registered

    Joined:
    Jun 19, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I've been using a configuration for over a year now where my main account has SpamAssassin set up to redirect anything that looks like spam to a verification account. The verification account runs BoxTrapper, which I've configured to forward verified emails to the account I use for reading. The combination works great.

    I do have one question though: Is there a way to configure the BoxTrapper account to redirect verified/whitelisted emails so that a copy is not retained in the BoxTrapper account?
     
  4. nitram

    nitram Member

    Joined:
    Mar 31, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Would you mind explaining how you went about doing this, please? I would like to do the same, but do not understand your procedure. Thanks in advance.
     
  5. breyed

    breyed Registered

    Joined:
    Jun 19, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I enabled SpamAssassin on my main account (the one that people email me at). I set it to a low threshold (2). Then I created a user-level filter to forward anything flagged as spam to the verifier account. The verifier account has BoxTrapper enabled (but not SpamAssassin); the main account does not have BoxTrapper enabled.

    I read my mail from a hotmail account (because its HTTP-based access protocol works well with the Outlook smart client from both home and work); so I configured BoxTrapper to forward any validated messages to my hotmail account. Likewise, I created a user filter for my main account to forward to hotmail the messages that don't need to go to the email verifier account.

    I listed the user-level filters for the main account below. Additionally, in the SpamAssassin configuration settings, I set report_safe to 0, so that the subject line wouldn't be modified (spam is marked in the headers). Finally, I seeded the whitelist for BoxTrapper with my contact list.

    The end result is that the junk mail list I have to check is very small (less than one message per week), yet it should be rare that a human gets a BoxTrapper verification request. The one other thing that makes this system work is that I have a separate account for email not sent by people.

    Filters:
    - Spam status begins with Yes: redirect to verifier account
    - Spam status begins with Yes: stop processing rules
    - From matches regex .*: redirect to hotmail and discard message
     
  6. nitram

    nitram Member

    Joined:
    Mar 31, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Thank you, breyed. I really appreciate this. :)
     
  7. Nahoo

    Nahoo Member

    Joined:
    Oct 7, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    This is an effective way to discard obvious spam and place possible legitimate emails into another account using email filtering:

    Filter: Any Header that matches regex "X-Spam-Score: ([2][1-9]|[3-4][0-9])"
    Destination: "spam_holding_account@yourdomain"

    Filter: Any Header that matches regex "X-Spam-Score: ([5-9][0-9]|[1-9][0-9]{2,})"
    Destination: "Discard"
     
    #7 Nahoo, Nov 5, 2009
    Last edited: Nov 5, 2009
Loading...

Share This Page