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.

Email filtering

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

  1. h8r

    h8r Member

    Joined:
    Mar 31, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    What is the exact error message?
     
  3. h8r

    h8r Member

    Joined:
    Mar 31, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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 ...
     
  5. h8r

    h8r Member

    Joined:
    Mar 31, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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:]
     
Loading...

Share This Page