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.

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
add comment

2 Answers

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
add comment

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
add comment

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.