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

when i send mail into my address, this works.

but when i send mail into another inexistent user mail address (like this reject the e-mail:

Recipient address rejected: User unknown in local recipient table (state 13).

How can i accept all mails (and redirect the 'unknown addresses' into


share|improve this question
I don't know postfix at all, but maybe there is a way you can set * as that user's address? – SpacemanSpiff Aug 4 '12 at 14:45
up vote 2 down vote accepted

Checkout the config parameter user_relay to set the catchall user. And to not block non-existing users local_recipient_maps must me empty. So in your case:

luser_relay =
local_recipient_maps =
share|improve this answer
hmmm, this works, but only works sometimes :S if i send mail into works but i send mail into doesn't works, how can it works arbitrarily? – felix46r Aug 4 '12 at 15:00
The error that the server returned is: 550 550 sorry, no mailbox here by that name (#5.1.1) (state 13). but this only occurs randomly – felix46r Aug 4 '12 at 15:13
@felix46r If it seems to randomly fail, then you probably have something else affecting it. What are the log messages when it fails? Did you reload postfix after changing the configuration? If not then some smtpd processes may still be working with the old config. – dsh Aug 4 '12 at 22:14
@dsh today works perfectly, problem solved, thanks to all (: – felix46r Aug 5 '12 at 9:54

You might try the virtual_alias_maps answer (shows as 4th answer for me) from postfix - how do you redirect all emails to one user, eg * →

I had and solved this problem many years ago but do not have a copy of what I did. But the above sure looks like it.

share|improve this answer

That is called a "catch-all" address.

Local catch-all address

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

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.