On 8/15/2011 9:32 PM, lance raymond wrote: > Good evening all, I had a basic server setup and used iRedadmin > which worked perfect and solved what I needed. I was/am using this > server for local webservers, etc. to send mail out and not really > receive in. The problem I have is that our 'real' mail is hosted at > Google and working fine. The issue is that on occasion, some mail > goes to [email protected] <mailto:[email protected]>. Now > realdomain.com <http://realdomain.com> is hosted at google, but 1st > I ran into errors like mail from the servers are sent as
Use transport_maps to direct mail to a specific server. # main.cf transport_maps = hash:/etc/postfix/transport # transport example.com smtp:google.com Remember to run "postmap transport" after editing the transport file. Remember to run "postfix reload" after editing main.cf. -- Noel Jones > [email protected] <mailto:[email protected]>. Now the error > was true, mailbox [email protected] <mailto:[email protected]> > does not exist. So I created in iRedAdmin that domain and that user > so some mail to other users @ other domains worked. But some mail > from the webservers do get delivered to [email protected] > <mailto:[email protected]> so now it was going to the local > server and not google. > > So, I tried looking around and can't find a way to tell postfix, > even if the mail is being sent from that server, to that same > domain, go out to the public internet first (which in turn would > then get delivered to Google). The other option would be to not > authenticate to send mail, so I tried adding the webservers ip's to > the mynetworks line in the main.cf <http://main.cf> file, but it > still didn't work. > > So any help or suggestions are appreciated.
