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.

filter bcc catch all

Discussion in 'E-mail Discussions' started by system1351, Aug 21, 2015.

  1. system1351

    system1351 Member

    Joined:
    May 17, 2010
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    World Wide Web
    cPanel Access Level:
    Root Administrator
    Hi People :)

    i wish make a script who catch all incoming and outgoing email who have any bcc:

    FOR EXAMPLE CASE:
    a user sent a normal email: the server don't resent the email
    a user sent a normal email but with a bcc: in this case the server resent the email
    a user have an incoming email with bcc: in this case the server resent the email
    a user have an incoming email without bcc: in this case the server don't resent the email



    THE CODE:

    #Resent incoming email who have BCC
    if $h_to: contains "mydomain.com" and $h_bcc contains "mydomain.com"
    then
    unseen deliver "resent@mydomain.com"
    endif

    #Resent outgoing email who have BCC
    if $h_from: contains "mydomain.com" and $h_bcc contains "."
    then
    unseen deliver "resent@mydomain.com"
    endif



    THE PROBLEM:
    dont work but the exim_mainlog dont have any error.


    which may be the problem?

    THANKS A LOT
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. system1351

    system1351 Member

    Joined:
    May 17, 2010
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    World Wide Web
    cPanel Access Level:
    Root Administrator
    Hi Infopro

    thanks, i read that But may be the error is in the syntaxis in the operator "and"


    which may be the problem?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    669
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on how you have developed this script? For instance, are you creating filter rules in cPanel?

    Thank you.
     
  5. matthers

    matthers Member

    Joined:
    Jul 6, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    As far as I know, Exim does not support BCC filtering.

    I've done multiple filters for exim and BCC never worked.
     
Loading...

Share This Page