1

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):

[email protected] domain.com/user1/
[email protected] domain.com/user2/
[email protected] [email protected]

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 [email protected], instead of forwarding the mail on to gmail, postfix creates a [email protected] file in /home/vmail with the contents of the email (maybe in mbox format??)

Where am I going wrong?

Thanks Rob

1 Answer 1

4

You're trying to add an alias, aliases are specified using virtual_alias_maps, not virtual_mailbox_maps. Have a look at http://www.postfix.org/postconf.5.html#virtual_alias_maps

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .