Lo,

Here's the problem: I have a few third party servers (openas2) that can generate an absolute blizzard of error emails. These errors tend to be repeats. eg can't connect to another server would generate the same error each time a connection attempt was made. I want to write a plugin takes these emails and only forwards a percentage of them.

Up to now I have a plugin that parses the emails and works out what sort of error it is.

What I am unsure how to do is...

1) Have some sort of data structure accessible to all qpsmtpd children that remembers if a particular error has already been received in the past N minutes.
I'm guessing memcached would be useful here or a sqlite db?

2) How to quietly drop an email. ie just forget I received it. I don't want to send an error back to the originator, nor do I wish to deliver it to the intended recipient.

Warmly

John

Reply via email to