Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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@gmail.com
@domain2.com email@gmail.com
@domain3.com email@gmail.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 mail pointing to the IP address and an MX record named mail.mydomain1.com.

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.

share|improve this question
    
What is the exact error in the mail log? –  NickW Feb 25 '13 at 16:51
    
Where can I find the log? –  peacemaker Feb 25 '13 at 16:55
    
Ok found the log. It says "550 Failed: User does not exist". Looks like it's trying to send to root@jamie.mydomain.com –  peacemaker Feb 25 '13 at 17:01
    
should be /var/log/mail.log or similar –  NickW Feb 25 '13 at 17:01
    
Interestingly, I have some entries in the mail.log that say messages were sent to the gmail account I have mapped in virtual but nothing has arrived, not in spam either –  peacemaker Feb 25 '13 at 17:06
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.