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.

Cannot edit Email Filter containing comma and ampersand

Discussion in 'E-mail Discussions' started by jpmohr, Feb 15, 2008.

  1. jpmohr

    jpmohr Member

    Joined:
    Jan 25, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    I have a filter named something like this: "If it is not This & not That, discard"

    When I click "edit" to edit the filter, it won't come up.

    Apparently, cPanel doesn't like the ampersand or the comma.

    I would really like to be able to edit this rule. Where in the Linux system is the file stored (or in what database) so I can edit it manually?

    [cPanel shouldn't let you name the file with those characters, if it ends up not being able to read it later!]

    Thanks!
    JPM.
     
  2. jamessw

    jamessw Member

    Joined:
    Feb 10, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Take a look in /etc/vfilters/
     
  3. jpmohr

    jpmohr Member

    Joined:
    Jan 25, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Everything in that folder is 0 bytes (I'm logged in as root into the shell).

    Could it be somewhere else?

    Thanks.
     
  4. jamessw

    jamessw Member

    Joined:
    Feb 10, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    It shouldn't be anywhere else on a default exim. Have you tried opening the file /etc/vfilters/yourdomain.com to see if it contains any entries?

    If not, it could be that the filter wasn't actually entered into exim but is sticking in cPanel's own temporary filter file, which is called .filter inside your /home/yourusername/ directory?
     
  5. jpmohr

    jpmohr Member

    Joined:
    Jan 25, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    I'm not sure... I checked /etc/vfilters/domain.com, but it was 0 bytes (and I double checked, it's empty).

    There's not /home/domain/.filters file either.

    I definitely see the filter in cPanel, and I know it's working, but I wanted to make a very small change to it, and don't seem to be able to edit it... I probably can't delete it either (though I didn't try).

    I would imagine that I have the default exim setup (it's a VPS that I'm running)... but I don't know for sure. I tried "locate" to find the filter by its name, but that didn't help (I was grasping at straws).

    Any other thoughts?
     
  6. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    This issue will be addressed in the next builds. Additionally the email filters are stored in YAML format in the file /homedir/etc/filter.yaml or /homedir/etc/domain/mailuser/filter.yaml.
     
  7. jpmohr

    jpmohr Member

    Joined:
    Jan 25, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Excellent!

    I edited /homedir/etc/domain/mailuser/filter.yaml to fix the filter name.
    I then went into cPanel to edit it and resave it.

    That worked. Thanks so much!!

    - JPMohr.
     
Loading...

Share This Page