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.

mail filter problem on cpanel

Discussion in 'E-mail Discussions' started by devilsoulblack, Apr 10, 2008.

  1. devilsoulblack

    Joined:
    Mar 27, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chile
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    hi all

    today i try to make a email filter using cpanel options but dont work this its the code

    Code:
    if first_delivery
    and ( ("$header_from:" contains "id@dominio.com")
    or ("$header_from:" contains "id1@dominio.com")
    or ("$header_from:" contains "id2@dominio.com")
    )
    then
    unseen deliver "id3@dominio.com"
    endif
    and Also

    Code:
    if
     $header_from: contains "id@dominio.com"
    then
     deliver "id3@dominio.com"
    endif
    the main idea its all outgoing mail from id@dominio.com must be
    send a copy (bcc) to id3@dominio.com

    any idea ?
     
  2. yantomulia

    yantomulia Member

    Joined:
    Feb 13, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    hi devil,

    you can try this

    if first_delivery
    and ("$h_from:" contains "id@dominio.com")
    and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
    then
    unseen deliver "id3@dominio.com"
    endif
     
    #2 yantomulia, Apr 30, 2008
    Last edited: Apr 30, 2008
Loading...

Share This Page