Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks!

share|improve this question

migrated from stackoverflow.com 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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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

1 Answer 1

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.