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.

.forward file???

Discussion in 'General Discussion' started by noimad1, Apr 26, 2003.

  1. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    One of my customers is asking if they can use a .forward file to filter some e-mails that come to him.

    I searched the forum, but am confused on how I can impliment this for my customer.

    Can anyone help me out on this one? Do I need to just put the .forward file in a specific directory for him, or is there something else that has to be done?

    Thanks,
    Damion
     
  2. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    Doesn't cpanel only allow him to forward it to another e-mail address?

    I think what he wants to do is pipe it to a cgi script so he can check the e-mail and do other things...

    Damion
     
  3. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    They can put the .forward file in their /home/username directory or they can redirect an address to a script.
     
  4. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    What would they type in the forward box? Just the path to the script? i.e. /public_html/scgibin/scriptname (they are using the cgiwrapper)

    Thanks,
    Damion
     
  5. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    |/path/to/script

    I think you need to quote it if you want to pass arguments

    "|/path/to/script arg"

    but I'm not sure about that now.
     
  6. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    He gets the following error when he tries to pipe it through cpanel. Have you seen this before?

    pipe to |/home/one800er/public_html/scgi-bin/aaauto.pl
    generated by toptips@ebookcache.com
    Child process of virtual_address_pipe transport returned 69 (could mean
    service or program unavailable) from command:
    /home/one800er/public_html/scgi-bin/aaauto.pl
     
  7. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    This can mean that the script is returning information to the standard output, with the current exim config any output from a script which is sent through a pipe is deemed to have failed, the following extracts from the exim.conf & spec.txt may show this more better

    exim.conf (this from comment section just above the virtual_address_pipe entry)

    this from the exim documention (commonly known as spec.txt)

     
Loading...

Share This Page