Tracking Bounce Mails in PHPMailer

We have developed a newsletter manager using PHPMailer.
In this we send mails on very large number on daily basis.
We need to track these mails i.e. how many mails bouce, bad address etc.
We are using PHPMailer and only point remaining is tracking mails.
We can not use other Mails function as this is a last stage for us.

Albeit a pretty big point.

In principle, what you do is, that you set up a mail-account for the sender of your emails (Eg. the From header). Then you set your mail-server to deliver incoming mails on this account to a PHP-script. This script should then try to determine if the incoming mail is a bounce, and in case it is – Who bounced it. Then you log the event on the user. If you have received bounces for, say, a week, you disable the account.

Unfortunately, this is really tricky to do, since different mail servers have different ways of bouncing mails. Some servers even just silently swallow undeliverable mails. So I’m afraid you’re in for some research and hard work.

One way of keeping track of messages is Message-id header. If you can keep track of it then you can track bounce messages (They should have References header set to your message ID).

Thanks for quick reply.
Can you please elaborate more on Message-id header.
I am not familier with this concept.

In this page it is explained very well:

A Message-ID: header is added to each message by the first mail server that handles it. It’s different from the ESMPT ID numbers in Received: headers in that it stays with the message.

And bounce message usually quotes bounced message including this header.

I had been using a service called . Even though my account still works, I have had challanges adding more accounts to help facilitate this same challange on newer projects.

Another option I’ve looked at is

This requires access to your server and a little cash money.

Both these services use the same methods discussed earlier in this thread. They’ve just done a lot of the home work. Especially with respect to recognizing all the different types of bounce backs.