Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

filter bcc catch all

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

  1. system1351

    system1351 Member

    Joined:
    May 17, 2010
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    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:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. system1351

    system1351 Member

    Joined:
    May 17, 2010
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    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:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice