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

i'd like my postfix relay to reject mail for unknown recipients.

i have recipients listed in the transports file along with next hop information.

i have a catchall of "* smtp:next-hop-gateway:25".

is it enough to simply remove that line from the transports and reload?

my expectation is that this would cause postfix to reject anything not defined in the transports file.

is that correct?


postfix user

share|improve this question
Sounds correct, why don't you test it? – mgorven Jan 31 '13 at 21:17

The transport(5) file is not meant to hold valid recipients; in fact, it cannot.
Read its documentation to understand what it is for.

Catchalls are bad, don't use them. We will not support such mailserver abuse.

Please see here how to reject non-existing recipients

How exactly you should set this up depends on far too many factors to go into without significantly more information.

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.