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

How do i re-route an incoming email address to a our domain using postfix.The mail should not go to spam mail. The sender should get a failure sending message. Can anyone please help me to it.

share|improve this question
So, you want to bounce the message but still take a copy of it? WHY? – womble Jul 11 '09 at 9:19
Somethings's not right here...womble's right(+1), the only reason I can think to use this arrangement is to track responses to email addresses. Can you elaborate a bit as to why you want your email server to be fundimentally broken? – Avery Payne Jul 11 '09 at 19:21
Trying out an experiment. – Caterpillar Jul 15 '09 at 4:06
up vote 0 down vote accepted says:

   Postfix  version  2.3  and  later  support  RFC 3463-style
   enhanced status codes.  If a  command  terminates  with  a
   non-zero  exit  status, and the command output begins with
   an enhanced status code, this status code takes precedence
   over the non-zero exit status.

So if you pipe the addreses you want to return fmilures for over to a command and then 1) output an enhanced status code from RFC3463 and then 2) return a non-zero exit code, the sender will get the enhanced status code that you sent.

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.