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 :)
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.