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.

routing blocked emails

Discussion in 'E-mail Discussions' started by AlaskanWolf, Jan 26, 2003.

  1. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    anyone know of a way to route blocked emails to a &catch& email account? rather then it going to /dev/null and never being seen again....

    Nick...pallleeze add this feature, we need more control over the spam blocking system, specially if it deletes email that shouldt be blocked in the first place, allowing us to re-route it to a email acct we specify allows us to sort though the emails
     
  2. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    so no ones interested or concerned for their customers (and you) in being able to sort though mail that otherwise is going to the ultimate blackhole....?....never being able to be retrieved
     
  3. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    This is easy to accomplish. Remove everything from within ~/.filter and then manually edit /etc/vfilter/domain.com:

    # Exim filter

    if error_message then finish endif

    if
    $header_subject: contains &Make money& or
    $header_subject: is &junk& or
    $message_body contains &this is spam&
    then
    save /home/user/mail/domain.com/junk/inbox
    endif

    Be sure to create a junk POP account under whichever domain you want to filter on. You may have some permission issues with exim trying to sudo, altering exim.conf to add a user variable under central filter is probably required.

    Of course you can go the lazy route:

    # Exim filter

    if error_message then finish endif

    if
    $header_subject: contains &Make money& or
    $header_subject: is &junk& or
    $message_body contains &this is spam&
    then
    deliver &email@outsidedomain.com&
    endif

    Be sure that the deliver address is not on the same domain you are filtering.

    Hope that helps.
     
  4. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    whooooooo i will give that a try
     
  5. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    & blocked emails ...

    Are these emails blocked by what? Spamassassin? Or the vfilter in Cpanel?
     
  6. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    [quote:4c594c0a1c] manually edit /etc/vfilter/domain.com: [/quote:4c594c0a1c]

    Like it wasn't already evident enough.
     
  7. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    works great, now i just have to remember to re-edit the vfilter when i add a new filter ;)
     
  8. pats

    pats Well-Known Member

    Joined:
    Mar 13, 2002
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    hi guys,

    any way to do this serverwide? rather than on per domain basis?

    also in serverwide, how to make it go to /dev/null?

    Thanks
     
Loading...

Share This Page