At work, our CEO is working on a plan to move away from a service provider who do our Spam filtering, etc.
Currently, all our mail gets relayed out through this service, and all incoming email gets relayed to us from this service.
Part of the reason this was setup was due to "Deliverability" - a big email service provider like the ones we use is unlikely to be Blacklisted (we had a problem before we moved to them where certain ISPs would block us for sending too many emails to their client (which are just order confirmation/dispatch emails!))
If we were to move away, our mailservers would be delivering directly. I'd like to set up some sort of monitoring system that gives us stats about how many mails we're sending out, what domains we're sending them to, bounce rates, servers that are regularly bouncing us, etc.
Does anyone know of a good solution for this?
I have been using pflogsumm for about 5 or 6 years. It should be readily available via apt-get or yum.
Normally, I'll check the report at least once a week just to make sure the numbers look normal, but there's really not much more to it. Some useful sections:
and useful for monitoring delivery delay time and number of defers (which will be your first indication that you're being blacklisted):
There are a number of ways to accomplish this, usually through log file digests. You can find a small list at the postfix site that might point you in the right direction.
If you have logwatch installed, you can add to its functionality and get stats that way too.
If you need "pretty graphs", you can start with mailgraph, which collects and graphs postfix activity over time.
Munin stats Postfix Mailqueue can give you an overview.
You can dig into it with postfix's qshape command, i.e.:
Cheers
MailGraph is kinda nice for this.
Here is a tutorial I wrote up on how to get it up and running on ubuntu
http://forum.slicehost.com/comments.php?DiscussionID=4093
But remember that most anti-spam systems silently drop your emails (or put them in a seldom-read location) so you cannot really know how many of your messages actually arrived (except by asking an explicit confirmation from the user).