[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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,216
    Likes Received:
    270
    You configured a match filename object with the rule system using wrong regex syntax.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,630
    Likes Received:
    241
    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:
    .*\.{.+}
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. shafeeks

    shafeeks Member
    Proxmox VE Subscriber

    Joined:
    Mar 8, 2013
    Messages:
    40
    Likes Received:
    0
    Great that cleared the problem.
    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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