I'm currently finishing a email marketing platform in Ruby on Rails, and, at the end of the development, I've stumbled in a problem. I'm using Debian Etch, Postfix and MYSQL 5.0, on a VPS.
The system works fine when sending the emails, but I have no idea how to "catch" the undelivered email returned to sender, and log to my database, to display to the client the bounce %. Is there any configuration in Postfix that will allow me to do so? I was thinking about parsing the postfix maillog for errors, but that's way too hacky and unreliable.
Also, using "sendmail" will always return true, even if it's a bogus email? ( firstname.lastname@example.org )
If is there a way to return the current code from the sent email?
Also, any other good info I should know? Like BSMTP better for email marketing than smtp in a loop?