On Thursday, June 04, 2009 at 22:04 CEST,
Gary <[email protected]> wrote:
> Lets say there is a bogus email address [email protected] and postfix cannot
> send to this address because the smtp server at bar.com says this
> mailbox is invalid.
>
> Are these messages stored in /var/spool/postfix somewhere?
If the remote server responds with a 5xx error code (which it should do
since this is a permanent error condition) the message will be bounced
to the sender. If a temporary error code (4xx) is returned the message
will remain in the queue until it expires (maximal_queue_lifetime).
> I'd like to scrape all the email addresses out of there and remove
> them from my mail list so I don't try to send to them anymore.
Either process the bounce messages with a script or use VERP to save you
the trouble of figuring out which address failed.
http://www.postfix.org/VERP_README.html
--
Magnus Bäck
[email protected]