Steffen Schebesta:
> Hello Wietse,
> 
> ok, here is my problem in detail:
> 
> I pass mails to Postfix through smtpd. Postfix sends them out and returns
> the queue_id. 
...
> I parse the mail.log for bounces every hour. When I find a bounce in the log

You are re-inventing an old wheel: it's called list washing. This
functionality is present in modern mailing list managers.

One popular solution is to encode your unique ID in the SMTP MAIL
FROM address, as an address extension. The unique ID includes the
recipient, and perhaps information about the message such as a
sequence number.

Postfix reports all errors to the SMTP MAIL FROM address, as do
many other RFC-compliant MTAs.

This not only works for mail that bounces while Postfix delivers
it (the "status=bounced" is logged on your server), this also works
for mail that bounces AFTER Postfix delivers it (the "status=bounced"
is logged on some REMOTE server).

        Wietse

Reply via email to