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.

How to set filter email that don't have header Date: ?

Discussion in 'E-mail Discussions' started by taotoon, Sep 11, 2005.

  1. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    I am Cpanel normal user.

    How to set filter email that don't have header Date: ?
    In my mailbox, all of them are spam mail.

    Can I use file .filter or .procmailrc ?
     
  2. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    When I added some filter in Cpanel, It will created files ~/.filter and /etc/vfilters/domain.com


    I don't know which one is the master.



    According to
    http://www.exim.org/exim-html-4.30/doc/html/filter_3.html#SECT3.4
    and
    http://www.exim.org/exim-html-4.30/doc/html/filter_toc.html#TOC26


    I modified the file ~/.filter to


    $header_date: is ""+++++++/dev/null


    I cat /etc/vfilters/domain.com , the data didn't change.

    Then I tried to add some filter in Cpanel and delete it.

    I cat /etc/vfilters/domain.com again, the data now updated.

    Well, I goto Cpanel / email / filter

    Viola! It shows my filter setting.

    I tried to test by sent the no-date email, and it did work!



    PS.

    I don't know what is +++++++
    Maybe it is cpanel syntax.


    Hope these help for someone.
     
    #2 taotoon, Sep 13, 2005
    Last edited: Sep 13, 2005
Loading...

Share This Page