Setting up Postfix to forward domain mail

I just want to setup Postfix so I can have e-mail that goes to *@mydomain.com to forward to another internet e-mail address (ie gmail, yahoo, etc)

Right now, I'm not sure if I'm having Postfix or DNS issues. Port 25 is open and I can telnet into it, I get some Postfix info etc.

For my named DNS zone, do I need a "mail" key? I kind of scrapped my zone info from a bunch of tutorials, and don't think this is necessary. I have an MX key, for example"

Code:
bretthoerner.com.       IN      MX      0       bretthoerner.com.
mail                    IN      CNAME   bretthoerner.com.
The mail one is uneccessary isn't it? I'd only want that if I wanted to email *@mail.bretthoerner.com ... right?

http://dnsreport.com/tools/dnsreport...etthoerner.com

Anyways, the MX one checks out on dnsreports, the mail one times out (I never set anything else up for it, so I don't see what it tries to reach or anything... eh, I honestly don't know, like I said - I think that entry is unneccarry, right?

Now, in Postfix main.cf:
Code:
virtual_mailbox_domains = /etc/postfix/vhosts.txt

virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps.txt
virtual_uid_maps = static:5007
virtual_gid_maps = static:5008
virtual_alias_maps = hash:/etc/postfix/valias.txt
In valias.txt:
Code:
*@bretthoerner.com someother@email.com
I retsarted Postfix, no errors... tried emailing to my domain... and it's been an hour, I have no mail failure message, and no email in my other email, or on my server...

I don't really know where to go from here. Like I said, all I want is to set it up so I can forward all emails from the few domains I host to an email OFF my server. This isn't a production / business setup, just for friends and I.

Thanks,
Brett

 

 

 

 

Top