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 have set the Postfix and virtual mapping successfully:

virtual_mailbox_domains =
virtual_mailbox_base = /var/mail/virtualhosts
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox
virtual_minimum_uid = 500
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
allow_mail_to_commands = forward

Then in /etc/postfix/virtual, I set the following catch-all rule: test_catchall

In /etc/postfix/virtual_mailbox, I set these: test.com_pop1 test.com_pop2

By the way, I already created a system user "test_catchall".

Now, the weird thing begins. When I send an email to, it's captured by "test_catchall" account. No problem so far. But if I send an email to one of the set system user accounts, it's still being captured by test_catchall instead of the real owner.

Catch-all works properly for virtual aliases however.

What am I doing wrong?


share|improve this question
up vote 2 down vote accepted

If my memory serves me right, in the past I had to use virtual_maps instead of virtual_alias_maps.

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.