Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my mail server, I have a custom logcheck rule as follows, which is intended to filter messages from deliver:

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ deliver\.*\): msgid=.*: saved mail to.*$

Unfortunately, the msgid=.* wildcard does not match if there are non-latin characters in the Message-Id, so lines like the following make it through the filter:

May 10 19:43:20 zapp deliver(matt): msgid=<20110510064307.3702.qmail@ÇöÀÌ01>: saved mail to spam

Logcheck uses egrep internally, and I've not found any way to make the period character include non-latin characters. Any ideas?

share|improve this question

I think your problem is not locale chars. To me part with deliver\.*\): seems wrong and it wouldn't match deliver(matt). Try using deliver[^:]+: instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.