I'm running a MediaWiki install under Ubuntu Server 10.10. I have configured it to use the standard php
mail() function with my local mail delivery agent (postfix). The mail gets sent from the MediaWiki site, but the only problem is that whenever the address it's meant to be sent to is on the same domain as the server, those mails get delivered to local inboxes on the Ubuntu server.
So basically, the server is
linuxbox.companydomain.com, and our e-mails are
firstname.lastname@example.org. Any mail sent to an address like that simply ends up in the user's local inbox, e.g. a message to
email@example.com ends up in
/home/anders/mbox, while a message to
firstname.lastname@example.org would end up in the correct gmail inbox.
How do I prevent this from happening?