On 4/12/2011 8:28 AM, Randy Ramsdell wrote:
Hi,

I am trying to block all mail going to a certain domain. We use
smtpd_recipient_restrictions = check_recipient_access
hash:/etc/postfix/protected_lists

and it counterpart:

smtpd_restriction_classes = list_blocks
list_blocks = check_sender_access
hash:/etc/postfix/list_members,reject

The user@host is not found in list_members.

I added the domain in protected_lists in this form.

$domain.com reject

When sending to his domain, the message bounces with a "Host
or domain name not found"

The domain does not exist but until the code can reviewed and
changed, I have to block these messages.

Any suggestions as to why this does not work?

You've not given enough evidence for anyone to say where the error is.

Or how do I
configure postfix to not check DNS and simply reject/discard?

I think the easiest way to ban a domain is to add it to the transport_maps with an entry something like
bad.example.com  error:invalid domain


  -- Noel Jones

Reply via email to