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

A user would like to be able to view a web page showing any emails that a Postfix server has either been unable to send, or unable to receive.

For example if the user was supposed to receive an email from a third party but it hasn't arrived, they'd be able to check the web page and see a list of emails rejected by Postfix, along with a clear reason as to why.

I've been unable to find an existing application that offers this functionality. Does anyone know of any, or is the best way forward to write a script that parses the log and display the results?

share|improve this question

closed as off-topic by masegaloeh, Sven Jan 23 '15 at 11:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

if it helps others, grep -o -e "(\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b)|(\(.*\))" – Jacob Evans Mar 1 at 14:45

The perception of "clarity" of the failure message is going to be different for non-tech personnel. A typical message like

450 4.1.8 <>: Sender address rejected: Domain not found; from=<>

is rather going to confuse any non-tech-savvy user than give her the comfort that everything is running as it should.

It would be easy technically - running something like egrep "postfix.*reject" /var/log/ and posting the output to a web page (e.g. through a CGI script) is a no-brainer. As a more sophisticated alternative, you could use AWStats to process your mail logs and create aggregate reports which would expand upon request.

share|improve this answer
Yes, apologies for not making it clearer, I'm looking for something that can take a log file and produce something a bit more user-friendly. It's looking like the best solution at this point is to implement something bespoke to parse the log and then provide an interpretation of the error message given. – Ross Bearman Nov 24 '11 at 14:12

There already is a solution for that. It is not free and the company has only a German Website and a German Web GUI. But it is amazing as it continuously parses the log files, assembles them (as one mail produces multiple [related] log entries), put them into a database and provides a web based GUI. It is also possible to map meaningless reject messages to extended valuable messages.

The product is called Mailtrace. With a little begging (and paying) they will provide a version in your language.

share|improve this answer

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