I've tried the search and read and tried quite a few articles by now and still no luck, so I'm hoping someone can help me here.
My situation is: I'm running a web server in our local network that is ofcourse also accessible from the web and is running a few domains on it. I have a dns server in our local network so we could access the domains hosted in our server with the domain name.
But for now all our emailing is done and hosted on another server outside of our network.
Lets say the web server is responding to a domain name domain.com and the problem is, that when domain.com is trying to send a email to email@example.com it doesn't deliver to the mail server but gets stuck in ours. All emails get sent for outside domains like gmail.com.
Now I've tried setting mx records in our dns server to point to the correct email servers. I also tried clearing mydestination in /etc/postfix/main.cf but no dice
The server is Ubuntu server 12.04 and using Postfix for email.
Hope someone can help me here :)