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

Possible Duplicate:
Monitoring message delivery on Postfix (or Cyrus IMAP)

There's mail server based on Postfix. I need to monitor which messages are delivered to end-user? and which are not. In processing of each message I need to get some information from its attachment in XML format. How can I monitor delivery messages this way?


share|improve this question

migrated from Nov 23 '11 at 3:06

This question came from our site for professional and enthusiast programmers.

marked as duplicate by RobM, Chris S Feb 20 '12 at 20:12

This question was marked as an exact duplicate of an existing question.

I don't think there is an API to get the delivery status from postfix, you'd probably have to do log parsing. Attachment info extract could probably be done through a [fm]ilter. I suggest you ask this question on serverfault, since it is not an actual programming question. – Gryphius Nov 8 '11 at 10:56

you can verify this by by running this script:

tail -f /var/log/maillog | grep -i status

Through this command, you will see a list of all emails, which are Being sent , rejected or else.

you can see count of sent mails through this command

grep -i status /var/log/maillog | grep -i sent | wc -l

share|improve this answer

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