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

To catch all mail sent to and forward it to another address we use the following in virtual:

However, we would like to keep all mail sent locally to the user root on the server, and do not want to forward it anywhere. (It's okay not to forward any mail from other sources as well)

How can we achieve this?

share|improve this question

Your /etc/postfix/virtual should be       any_local_user
share|improve this answer
Now I get this: ... postfix/error[7714]: ...: to=<>, orig_to=<root>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (User unknown in virtual alias table) – Udi Mar 2 '14 at 20:07
can u post your postconf -n output? – clement Mar 2 '14 at 21:57

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.