excellent.. thank you

On Wed, Jul 31, 2013 at 7:32 PM, Wietse Venema <wie...@porcupine.org> wrote:
> 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:
>     u...@example.com    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

Reply via email to