[SOLVED] pmg-smtp-filter warn error

Discussion in 'Mail Gateway: Installation and configuration' started by shafeeks, Jun 5, 2018.

  1. shafeeks

    shafeeks Member
    Proxmox VE Subscriber

    Joined:
    Mar 8, 2013
    Messages:
    40
    Likes Received:
    0
    Hello,

    Since a couple of weeks, we are having the below warning message in the syslog file

    Any idea?
    Thanks

    Shafeek
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,123
    Likes Received:
    264
    You configured a match filename object with the rule system using wrong regex syntax.
     
  3. shafeeks

    shafeeks Member
    Proxmox VE Subscriber

    Joined:
    Mar 8, 2013
    Messages:
    40
    Likes Received:
    0
    Thanks Dietmar for the hint.

    But I can't find any wrong regex syntax but I removed all lines with type regular expression in Mail Proxy -> Whitelist and in Mail Filter -> Who Objects -> Blacklist & whitelist.

    All services have been restarted.

    Still I got the warning message.

    Shafeek
     
  4. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,406
    Likes Received:
    213
    the error is in a 'What' object because filenames are only configured there
    the message says you need to escape the curly brackets like this:
    Code:
    .*\.\{.+\}
    
    instead of
    Code:
    .*\.{.+}
    
     
  5. shafeeks

    shafeeks Member
    Proxmox VE Subscriber

    Joined:
    Mar 8, 2013
    Messages:
    40
    Likes Received:
    0
    Great that cleared the problem.
    Thanks
     
  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