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.

Unable to use .forward file/filter functionality

Discussion in 'General Discussion' started by hariskhan, Nov 27, 2006.

  1. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Hello folks;

    1) I am running exim 4.63 on FreeBSD 5.4 (updated through ports) regularly. I am unable to use the .forward files/filter functionality with my server.

    My userforward: router is as follows;

    userforward:
    #!!# filter renamed allow_filter
    driver = redirect
    allow_filter
    check_ancestor
    check_local_user
    domains = ! lsearch;/etc/userdomains
    no_expn
    file = $home/.forward
    file_transport = address_file
    pipe_transport = address_pipe
    reply_transport = address_reply
    no_verify

    It is the default config file that comes with exim from cpanel.

    I have tried commenting the following lines from the above config;

    - Commented: domains = ! lsearch;/etc/userdomains
    - Changed line from file = $home/.forward -> To -> file = /etc/mail/.forward-support

    I moved my .forward file to /etc/mail/.forward-support

    where support was my $local_part. The file is owned by username:mail.

    I made these changes in /use/local/etc/exim/configure file, since exim -bV tells me that THAT is my config file.

    2) I don't understand why cpanel has /etc/exim.conf on the server if its using /use/local/etc/exim/configure as its config file?

    ;==========================================================

    The attached file configure.txt is my /usr/local/etc/exim/configure

    P.S. cpanel doesn't let me upload files without extensions.

    Need an insight into what is going on?
     

    Attached Files:

    #1 hariskhan, Nov 27, 2006
    Last edited: Nov 27, 2006
  2. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Found vfilters

    I was checking out cpanel's implementation of exim's config file. With no body replying to my question, it was taking time, but I found a solution.

    cpanel implements /etc/vfilters/${domain} file that contains the script which should normally go in $HOME/.forward file.

    the exim's config file that cpanel distributes contains a spec for central_filter: This central_filter has vfilters configured in it.

    By debugging I found out, exim doesn't use the userforward: router at all. It uses only vfilters.
     
  3. mahinder

    mahinder Well-Known Member

    Joined:
    Jun 12, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    matrix
    ok so you mean

    $HOME/.forward file no longer works. I tested this on one server and its not working but on other server its working fine. can anyone from cpanel confir that

    $HOME/.forward no longer works with cpanel?
     
Loading...

Share This Page