marshall:
> If Postfix can insert the bounced emails into a db table (or a
> log file that just contains the bad email addres, one per line),
> that would make it pretty easy to run a cron job to remove these
> bad emails from the application's user database.
Wietse:
> You could use the documented Postfix hooks to deliver the returned
> mail to a command that parses out the failed recipient.
[examples deleted]
marshall:
> Would it be at all advisable to just scan the maillog file periodically for
> 'status=bounce' lines and parse out the 'to<...>' email address?
Sorry, email is not an end-to-end protocol like HTTP. It is a store
and forward protocol where mail travels over multiple SMTP sessions.
Logfile parsing gives you only information about the first-hop mail
delivery attempt. It does not give information about errors AFTER
the first hop.
Wietse