ncmv505
By:
ncmv505

postfix email forwarding with virtual domain

November 15, 2014 1.2k views

I'm having problems forwarding emails sent to my virtual domain to a gmail account, if somebody could look over my settings and tell me what I'm doing wrong it would be much appreciated:

Hostname: 1.xxx.info
Main domain: http://xxx.info
Virtual domain: http://yyy.co

I want to forward emails from info@yyy.co to yyy@gmail.com, so after installing postfix I have the following settings:

/etc/postfix/main.cf
myhostname=1.xxx.info
virtualaliasdomains = yyy.co
virtualaliasmaps = hash:/etc/postfix/virtual

Note that hypens between "virtual" and "alias" were removed when I posted the above, in the main.cf file they are present.

/etc/postfix/virtual
info@yyy.co yyy@gmail.com

MX records for both xxx.info and yyy.co:
Hostname=1.xxx.info
Priority=1

I'm not receiving anything at yyy@gmail.com and no bounces or errors in the postfix error log...

Be the first one to answer this question.