Postfix lookup in hosts file

In case you need to make Postfix look in your local /etc/hosts files before doing DNS lookup add following in file:

Don’t forget to restart Postfix:

Now you send test letter:

And check /var/log/maillog to make sure Postfix gets IP from /etc/hosts file.
Good luck!

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [point] com