I'm using Postfix 2.6.6 and accepting all mail to the server to go into one mailbox, like so:
mydestination = regexp:/etc/postfix/virtual_domains virtual_alias_maps = regexp:/etc/postfix/virtual
This works great, except it doesn't let mail go external, since it thinks it's all local. I'd like to get one domain, say, MYDOMAIN.COM, to be handled externally. What do I need to do differently?
EDIT: I want to elaborate on this question a bit. The server is set to handle mail for any incoming domains, through the setup I have listed above. However, as a result, it will not send any OUTGOING mail properly, since it thinks every domain is local to itself. How can I exclude a domain from the match and let it be handled normally?