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.

Custom exim filter for subject

Discussion in 'E-mail Discussions' started by speckados, May 14, 2015.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi.

    I'm lookinf for create a owned rule for fail email with any subject.

    I see doc for How to create a custom Exim system filter file

    But i don't see the way for this. I'm confused.

    • do I need create a clon copy of /etc/cpanel_exim_system_filter or use my own empty file?
    • Where i see doc for variables uses such subject header, etc... ?
    I've create a custom file and config exim for use.

    But i not sure it's correct 100%


    Code:
     # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    #                                                                                                               #
    #  Only process once                                                                                            #
    #                                                                                                               #
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    if not first_delivery
    then
      finish
    endif
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    #                                                                                                               #
    #  Ignore "real" errors                                                                                         #
    #                                                                                                               #
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    if error_message and $header_from: contains "Mailer-Daemon@"
    then
      finish
    endif
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    
    ###
    if ("$h_subject:" contains "carta certificada no entregada a usted")
        then fail
    endif
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page