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 was trying to follow the instructions found here to set up a catch-all account, but still I get the following message for mails sent to non-existent users:

The error that the other server returned was: 550 550 5.1.1 User unknown (state 14).

Everything else works, though... /etc/mail/local-host-names and /etc/mail/virtusertable were set up as instructed. Any advice? Thanks!

share|improve this question

In case anybody is interested, the answer for a single domain is spelled out here. Namely, adding the following to


where someuser will receive all the junk, I mean mail. Note that this does not solve the issue for multiple/virtual domains.

share|improve this answer

The simplest way to implement a "catch all" address is by altering rule set 0. In your add the following lines:

R$* < @ $=w . > $*      $#local $: catch-all

Where "catch-all" is the local username or alias where every mail should be directed. Remember that the left hand side is separated from the right one with tabs and not spaces, so do not copy-paste, type the above snippet. Next produce the new and restart sendmail. For more complex stuff you can see this post.

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.