Mail on external server

I have a server that was originally going to be all in one type server, website, mail ftp, etc.
Since, the customer has moved their email to a hosted exchange solutions.
When the site generates form emails, they are getting held up with the following error:

The e-mail system was unable to deliver the message, but did not report a specific reason.  Check the address and try again.  If it still fails, contact your system administrator.
        < #5.0.0 X-Postfix; User unknown in virtual alias table>

I have disabled all of the mail features for this server but it still tries to accept mail for users when the email is generated from localhost.

Any thoughts on how to clear this up?


So, it does sound like it’s still trying to deliver the email locally.

Assuming for a moment that the Virtual Server in question is “” – if you were to log into your Virtualmin box, and type:

host -t MX

Does the IP it returns correctly point to your Exchange server?


Actually no, it is appending the dns with the domain name. mail is handled by 10

Do I need to create a master zone for this?


It sounds like you may just need to tweak your MX record.

If that’s stored in Virtualmin, you can change the MX record in Services -> DNS Domain. Make sure that the name of your mail server ends with a “.”.

So if the mail server is, the DNS record for that should look like:

The “.” at the end says not to append the domain name – that the preceding name is the “full” name of the server.


That did it, thanks.