Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In sendmail, I can have a catchall address and reject email going to certain addresses in my aliases or virtusertable files:                        error:5.1.1:550 User unknown                     michael                       michael                     error:5.1.1:550 User unknown                       error:5.1.1:550 User unknown                        error:5.1.1:550 User unknown                           catchall

But the above doesn't work in the postfix maps - it tries to deliver to the error: address.

What's the right way to accomplish this in postfix?

share|improve this question
up vote 3 down vote accepted

This can be accomplished using the check_recipient_access directive (

Add a file that lists the email addresses (followed by reject) and point the above directive to that file.

e.g. check_recipient_access hash:/etc/postfix/deny


denied_user@domain.tld reject

Remember to reload your configuration files - and perhaps restart postfix.

For more information, see: and

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.