Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

For example if I've got john.smith@example.com and ty.coon@example.com mailboxes set up, but someone sends message to thomas.anderson@example.com I need the message to be stored to a special mailbox and reported (to the sender) as delivered instead of being returned with user-unknown error and discarded.

share|improve this question
up vote 1 down vote accepted

Postfix supports the use of a catchall account using the luser_relay configuration option.

See http://www.postfix.org/ADDRESS_REWRITING_README.html#luser_relay for more information.

"When the local(8) delivery agent finds that a message recipient does not exist, the message is normally returned to the sender ("user unknown"). Sometimes it is desirable to forward mail for non-existing recipients to another machine. For this purpose you can specify an alternative destination with the luser_relay configuration parameter."

share|improve this answer

Just create a catch-all for your local domain as described in http://www.postfix.org/ADDRESS_REWRITING_README.html#luser_relay

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.