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!

link|improve this 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
feedback

migrated from stackoverflow.com Nov 23 '11 at 3:06

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

closed as exact duplicate by DJ Pon3, Chris S Feb 20 at 20:12

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

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

link|improve this answer
feedback

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