Website-only virtual server with different mail host


I’m trying to set up a virtual server with a website only, but no mail handling. Mail shall be handled by a different server, my customer’s regular mail server.

This works fine, except when I try to send an email from my server to that domain. Then my Postfix accepts my mail, but sends me this error message immediately:

The mail system mail for loops back to myself
Reporting-MTA: dns;
X-Postfix-Queue-ID: BCDA69360C04
X-Postfix-Sender: rfc822;
Arrival-Date: Mon, 15 Jun 2009 22:07:37 +0200 (CEST)

Final-Recipient: rfc822;
Original-Recipient: rfc822;
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for loops back to myself

So I guess my server tries to find that domain’s mail server, but my server’s Bind tells my Postfix to handle mail by itself.

The MX record for is setup correctly (in public worldwide DNS).

What can I do to let my server use my customer’s mail server to deliver mail?

Thanks and best regards,

Disable email for that domain in Virtualmin. Edit Virtual Server>Enabled Features>Mail for domain enabled?


You may need to verify that the DNS MX records for that domain are pointing to this other server.

In Services -> DNS Domain -> Mail Server, make sure the entry listed there is going to the correct mail server.

After you change those records, don’t forget that DNS servers on the Net may have cached it’s current value, so it may appear to not work correctly at first until the cache is all cleared.

Oh yes, and as Joe said, disable the Mail feature :wink:

Thanks for your help! The mail feature was disabled of course, and setting the correct Mail Server in Services -> DNS Domain -> Mail Server didn’t help either – no clue why.

What did help was to disable Virtual Server -> Enabled Features -> DNS domain.

  • Johannes