Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

thanks,

postfix user

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

1 Answer 1

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

 
discard

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.