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.

boxtrapper regex error tells SENDER and Dies

Discussion in 'E-mail Discussions' started by DGermancp, Apr 4, 2007.

  1. DGermancp

    DGermancp Active Member

    Joined:
    Feb 25, 2006
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NJ, USA
    cPanel Access Level:
    Reseller Owner
    I thought I'd be fancy and create a boxtrapper whitelist regex which would match all ticket messages from cPanel.


    *\@tickets\.cpanel\.net

    NOW I realize it's incorrect, :eek: Unfortunately, this caused:


    realger1@esc35.midphase.com local delivery failed

    The following text was generated during the delivery attempt:

    ------ realger1@esc35.midphase.com ------

    (internal death) Wed Apr 4 15:19:51 2007 [6177] error: Quantifier follows nothing before HERE mark in regex m/* << HERE \@tickets\.cpanel\.net/ at Cpanel/BoxTrapper.pm line 246, <MYLIST> line 1.
    Cpanel::BoxTrapper::BoxTrapper_checklist('white', '/home/realger1/etc', 'mgerman@wayneschools.com', 'ARRAY(0x839fc0c)', 'ARRAY(0x839fc18)', 'RE: Easter') called at bin/boxtrapper.pl line 89
    Quantifier follows nothing before HERE mark in regex m/* << HERE \@tickets\.cpanel\.net/ at Cpanel/BoxTrapper.pm line 246, <MYLIST> line 1.
    a fatal error or timeout occurred while processing this directive]

    ------ This is a copy of the message, including all the headers. ------

    Return-path: <MGERMAN@WAYNESCHOOLS.COM>
    Received: from realger1 by esc35.midphase.com with local-bsmtp (Exim 4.52)
    id 1HZB1L-00087w-5v
    for realger1@esc35.midphase.com; Wed, 04 Apr 2007 15:19:51 -0400
    Received: from [209.158.161.194] (helo=EXCHVIRTSVR.wayneschools.com)
    by esc35.midphase.com with esmtp (Exim 4.52)
    id 1HZB1K-0008LA-Pc
    for DGerman73@real-World-Systems.com; Wed, 04 Apr 2007 15:19:50 -0400
    To be sent to the sender::(
    I didn't find this out for several days, since people that should have been able to send me a message couldn't:mad:
    I did notice that there fewer messages than usual, but I had hoped it was related to some exim filters I recently added.

    I see several problems here.
    1) Most importantly When processing boxtrapper.pm Dies instead of ignoring the bad rule.
    (easy change)
    2) cPanel does not parse rules when entered
    3) reply to sender should reference the email address that they used NOT the "internal" resolved address (ex: to DGerman73@real-World-Systems.com , error message talked about realger1@esc35.midphase.com
     
Loading...

Share This Page