1

I'm used to use /etc/hosts to fake "example.com" 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 :)

theist
  • 1,229
  • 2
  • 10
  • 24

1 Answers1

5

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.

Sven
  • 98,649
  • 14
  • 180
  • 226
  • 1
    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