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 used to use /etc/hosts to fake "" or other domains to point to my local web servers to make tests.

I'm trying to do some filtering tests on a multi-domain postfix and I need to fake several domain names to check how it responds without touching the real thing.

Is possible to do so, in a easy way, to make configuration test with a local mail server?

If it is not as easy tell me how to do it also :)

share|improve this question
up vote 5 down vote accepted

Set up a local DNS server that hosts a few sample domains (nonexistant in reality), complete with MX records and all. Then create a group of test mail servers with addresses as listed in the test domains.

If you know DNS etc., it's really easy.

share|improve this answer
Yeah, that will be the standard way to do so. I only was wondering if there's an easy way that doesn't involve a DNS server a'la /etc/hosts file – theist Jul 19 '11 at 18:07

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.