Our virtualmin domain has email enabled which enable the website to email users after registration etc…
Our mx record point to google apps where we host our email.
The problem arrises when the website sends a message to firstname.lastname@example.org. The site sends the mail via localhost and the local mailserver server picks up the mail and puts in the the local mailbox rather than delivering it to the MX address.
We want to leave email enabled on the webserver to continue sending mail from the site.
Does this involve setting up email routing or should the MX records be enough?