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 want postfix to forward one of the emails on my domain to gmail. Virtual settings:

virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/virtual

virtual contains the following (actual values replaced):

This works for the local maildirs. Emails to the 3rd user i want forwarding to a gmail account.

However when a message is sent to, instead of forwarding the mail on to gmail, postfix creates a file in /home/vmail with the contents of the email (maybe in mbox format??)

Where am I going wrong?

Thanks Rob

share|improve this question
up vote 3 down vote accepted

You're trying to add an alias, aliases are specified using virtual_alias_maps, not virtual_mailbox_maps. Have a look at

share|improve this answer
Thanks, school boy error. – Rob Jun 9 '11 at 15:10

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.