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

I have a HUGE massive Exim mail log. What is going to be a good way to go through this email log and pull out all the common and other error types so I can go in and look them up and see which ones need to be fixed?

Would using grep to find error types work then extract them? Is there a script or tool that already does this?

For example I have an error like

R=lookuphost T=remote_smtp defer (-45): SMTP error from remote mail server after MAIL FROM


SMTP error from remote mail server after end of data: host []: 451 Message temporarily deferred - [160]

To summarize, I need to find errors in the error log without going through line by line so I can see if there is anything serious.

share|improve this question

The eximstats program's report will include errors in its output. You may want to run it against the rotated logs when they are rotated. It gives a good overview of how your mail is being handled. Looking at its code, it appears you mat be able to find errors by grepping for **.

The paniclog includes the most significant errors.

The rejectlog may be easier to scan as it includes only messages which were rejected.

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.