I followed the guide here: http://library.linode.com/email/postfix/gateway-ubuntu-10.04-lucid which has similar points to the question here simple postfix configuration - forward all incoming email to single address but I'm still having problems.
I running Ubuntu on Linode and have several domains which I simply want to forward any email to those domains to a gmail account.
My virtual postfix file has the following:
@domain1.com email@example.com @domain2.com firstname.lastname@example.org @domain3.com email@example.com
My main.cf is exactly as in the guide:
myhostname = jamie.mydomain.com mydestination = localhost, li1121-21.members.linode.com, localhost.members.linode.com, lochahost virtual_alias_maps = hash:/etc/postfix/virtual home_mailbox = mail/
My FQDN (when I run
hostname -f) is:
jamie.mydomain.com and for the DNS records for mydomain.com I have an A record named
jamie pointing to my IP address and an MX record named
jamie.mydomain.com with priorty 0 as I also have other MX records.
All other domains that point to this IP address are setup with linode defaults, which is an A record called
I feel like I have it setup as per the guide but whenever I send an email to any of the domains it just bounces.
Any help would be much appreciated.