Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm quite sure I'm not the first guy who asks this but I haven't found any response with my bro' Google.

Basically, we have a registration page and we'd like to monitor all the e-mails that are sent via our server, so that if an e-mail is refused by a third-party server we can manually see that the user e-mail address does not exist or that its provider rejects our e-mails.

Of course we have the logs but it's quite complicated when you have a registration every 5 seconds.

So I'm looking for something that is web based (a simple PHP interface ? or even a JAVA servlet) that would list all e-mails sent and whether they have been received, rejected etc.

This would allow a support representative to manually monitor e-mails.

share|improve this question
In which language is written your Web Software, as you call it ? And also it depends on which mail server you use (postfix, sendmail, exchange,...). Please specify it. – Jonathan Rioux Dec 6 '11 at 17:15
Usually we're on PHP but we don't mind installing Tomcat just to run a servlet. We're on postfix but what we need is some kind of advanced log reader that could optionally work with a database to store old logs dynamically. – user103307 Dec 6 '11 at 17:22
possible duplicate of How to log rejected messages in Postfix – mailq Dec 6 '11 at 19:57
@mailq gave you a good answer, but note that it only gets you as far as "my mail server says someone else accepted it" -- Just because a remote server accepted your message doesn't mean it got delivered to the client's mailbox; Just because it hit their mailbox doesn't mean their MUA didn't declare it spam; and just because it made it to their screen doesn't mean they read & understood it. (also, any "monitoring " that relies on "a support representative" doing anything "manually" is inherently broken :-) – voretaq7 Dec 6 '11 at 21:27
@voretaq7 Did I say something different? You also need to look at RFC 6449. – mailq Dec 6 '11 at 23:58
up vote 2 down vote accepted

Use from here:

It should be an easy task to call it regularly via cron and redirect the outputto a file for a webserver. With a little magic you could even call it via CGI.

If you are a PHP/Perl magician you can even pretty print into a HTML page.

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.