[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2042
  • Last Modified:

postfix warning: 127.0.0.1: hostname localhost verification failed: Name or service not known

Say, Centos 5.4 server.
How can I solve this?
0
shaunwingin
Asked:
shaunwingin
  • 2
1 Solution
 
lanboyoCommented:
Put this in main.cf

smtp_host_lookup = native,dns
0
 
lanboyoCommented:
Or make sure that the chroot jail environment has DNS if you are running chroot.
0
 
Monis MontherSystem ArchitectCommented:
under mian.cf

change

inet_interfaces = localhost

to

inet_interfaces = 127.0.0.1

or to what ever you have 127.0.0.1 resolve under /etc/hosts

0
 
shaunwinginAuthor Commented:
I think I solved it by adding localhost to hosts table.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now