Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default routing blocked emails

    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. #2
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default

    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. #3
    Member
    Join Date
    Aug 2002
    Posts
    1,052

    Default

    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.

    The rest of those who have gone before us cannot steady the unrest of those to follow.

  4. #4
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default

    whooooooo i will give that a try

  5. #5
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    & blocked emails ...

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

  6. #6
    Member
    Join Date
    Aug 2002
    Posts
    1,052

    Default

    [quote:4c594c0a1c] manually edit /etc/vfilter/domain.com: [/quote:4c594c0a1c]

    Like it wasn't already evident enough.

    The rest of those who have gone before us cannot steady the unrest of those to follow.

  7. #7
    Member
    Join Date
    Aug 2001
    Location
    Fremont CA
    Posts
    537

    Default

    works great, now i just have to remember to re-edit the vfilter when i add a new filter

  8. #8
    Member
    Join Date
    Mar 2002
    Posts
    78

    Default

    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

Similar Threads & Tags
Similar threads

  1. MX Mail Routing Issue when sending emails Locally
    By dotcomtim in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-24-2011, 01:53 PM
  2. Client emails being blocked
    By Serra in forum E-mail Discussions
    Replies: 22
    Last Post: 06-22-2008, 11:06 AM
  3. Incoming Emails Blocked using squirrelmail?
    By mgdesign in forum E-mail Discussions
    Replies: 2
    Last Post: 11-17-2007, 04:11 AM
  4. Inbound Emails blocked - 421 service not available
    By ripside in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-30-2007, 09:56 AM
  5. Re-routing bounced emails
    By mickalo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-21-2003, 11:05 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube