
In case you need to make Postfix look in your local /etc/hosts files before doing DNS lookup add following in main.cf file:
|
1 2 |
lmtp_host_lookup = native smtp_host_lookup=native |
Don’t forget to restart Postfix:
|
1 |
service postfix restart |
Now you send test letter:
|
1 |
echo Hi there, how are you? | mail -s "test mail" root |
And check /var/log/maillog to make sure Postfix gets IP from /etc/hosts file.
Good luck!





