Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on Windows using XAMPP and have Mercury Mail set up working fine for local mail. To get this working I need to use addresses such as, user@localhost

But it's a pain when I use email address validation in my scripts that require a properly formed email address, ie, with a domain extension like .com, .net, etc on the end.

If I set up an address like, or even, is there a place (ini, conf, hosts file or similar) where I can get this to 'map' to user@localhost?

share|improve this question
up vote 1 down vote accepted

Mercury "Configuration" menu option then "Alias..."

share|improve this answer
That was easy. Thanks! – Owen Sep 10 '10 at 12:56
Not a problem... – user48838 Sep 10 '10 at 13:50
I am running into the same problem using Drupal 7 amd XAMPP. I added the aliases and domains for localhost and but I am still getting a Temporary error 249 (temporary MX resolution error). Where are MX records kept in XAMPP? – John R Mar 24 '14 at 23:57
It does not appear that XAMPP includes any actual email nor DNS servers. If your XAMPP configuration does include an email server (like the OP), then which email server is it? It will vary based upon the email server. – user48838 Mar 31 '14 at 12:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.