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.

Filter rules and bouncing emails

Discussion in 'E-mail Discussions' started by web-rover, Jun 29, 2004.

  1. web-rover

    web-rover Registered

    Joined:
    Mar 9, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Can anyone help me understand filtering better?

    I've searched for this but can't find it. Are there any other options for email filter destinations other than "Discard", "|/home/user/email.pl" or "user@domain.com"?

    In particular I'd like to be able to bounce an email to the sender if their email contains certain bad words [you know, the usual stuff: Cialis, Porn etc]

    For example, is there something like :fail: that will bounce back messages.

    Otherwise, if I need to set up a script, where can I find an intro to setting on up?

    Thanks

    Colin
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    :fail: will bounce and :blackhole: will discard.
     
  3. web-rover

    web-rover Registered

    Joined:
    Mar 9, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the response, however:

    :fail: doesn't seem to bounce mail that should have been caught by the filter when I've tested it. Nothing comes back at all, to anyone.

    However, the instruction ":fail:" does work for the default address, eg an email sent to nosuchaddress@domain.com will bounce (in fact my outlook won't even send it, as it gets the message: "550 unknown user")
     
  4. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    are you trying to create some sort of a custom filter to bounce the email back to the sender ??

    Mickalo
     
  5. web-rover

    web-rover Registered

    Joined:
    Mar 9, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Yes,
    as you'll see in my original message I don't know how to set up custom filters or destinations.
     
  6. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    well depending on the actual critiera how the email needs to be filtered, a custom piped script could be used, again depending how it needs to be filter, then processed.

    How exactly do you need to filter the email ??

    Mickalo
     
  7. web-rover

    web-rover Registered

    Joined:
    Mar 9, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I already have a number of different filters based on words in the subject and the body, but currently they are being Discarded. Trouble is, some emails have been wrongly deleted and neither the sender nor the receiver knows about it. This is why I want to be able to bounce them instead.

    I've tried forwarding to another email then bouncing those but my own email address gets the bounce rather than the original sender.

    How can I set up a script which I can name in the destination part of the filter to bounce to the sender?

    (I realise that to prevent bounced emails coming back again to me if the sender had used a non-existent address I will have to set up another filter to Discard bounced emails.)
     
    #7 web-rover, Jun 29, 2004
    Last edited: Jun 29, 2004
Loading...

Share This Page