Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Email filtering

Discussion in 'E-mail Discussion' started by h8r, Apr 13, 2006.

  1. h8r

    h8r Member

    Joined:
    Mar 31, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    This is my second post on this topic. Still no luck, so I will ask the question in different way.

    I've setuped email filter to pipe the email to a script. It works perfectly, except that its returning an email delivery failure. Why? Its parses perfectly the email.

    Is there any way to make the filter first to pipe to the script and then discard the message, or move it, or something else, just to NOT to send email delivery failure.

    Any comments, tips, tricks will be very very wellcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    4
    Trophy Points:
    193
    Location:
    Minneapolis, MN
    What is the exact error message?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. h8r

    h8r Member

    Joined:
    Mar 31, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    this is from the log


    and this is the email

    It pipes the data to the script, the script gets it and everything works. I've just want to disable this mail delivery failure
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    exim won't like that curl output. Try adding -s to run in silent mode:

    |/usr/bin/curl -Fs ...

    If that still fails, reroute the output to a file:

    |/usr/bin/curl -Fs -o /home/username/curl.out ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. h8r

    h8r Member

    Joined:
    Mar 31, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    your rox

    This is how I made it. It works perfectly. Chirpy I owe you a beer (or more). Thanks alot. I don't know how i missed this option (-s) when I read the documentation. Thanks again:]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice