Roman Gelfand:
> Is there a way to blacklist outbound email which was previously hard-bounced?
>
> For instance, if outgoing email comes back with codes 550 or 554, I
> would like that on subsequent times it doesn't leave the server.
Wietse:
> You want to block:
> - The same sender?
> - The same recipient?
> - The same content?
> - Something else?
Roman Gelfand:
> The same recepient
You need a logfile analyzer that mines the maillog file, or a program
that processes Postfix's standardized bounce messages.
Once you have a bad recipient you can block it with a transport table:
/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
[email protected] error:5.1.0 Recipient is undeliverable
That will prevent the Postfix SMTP server from accepting the
recipient, and will prevent Postfix sendmail submissions from
reaching the Postfix SMTP client.
Wietse