I need to save all bounces in a database, so I can query it from my application and not mail to any address that bounced more than X times.
If I recall correctly, Postfix allows to pipe messages to shell commands, so I was thinking that maybe Exim could have something similar, but any other easier/simpler option will do, as long as the data gets stored.
Any ideas?
A detailed explanation would be much appreciated, since I'm not a sysadmin and only dealt with MTAs very briefly in the distant past.
Thanks!