Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postfix and my domain name

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
Hey all,
I have just built a Centos 5 server and it is working great. I have installed postfix and I have it working... sort of. I can send mail and it works fine but the domain is wrong. My domain name is dnti.com and in the test emails I see Testacct@localhost.dnti.com I can recieve emails fine but I have this localhost part that is bothering me. Here are the changes that I made to main.cf
Code:
myhostname = host.dnti.com
mydomain = dnti.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks_style = host
Here is what my hostfile looks like
Code:
127.0.0.1       host.dnti.com host    localhost.localdomain   localhost
xxx.xxx.xxx.116   host.dnti.com dnti

Is there somting that I have done wrong????
not sure were this localhost.dnti.com is coming from.

Thanks,
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
The adress 127.0.0.1 is never routed, so it doesn't make sense to put some other name to that adress.
Think about an adress being bound to an interface, not really a host, a machine.
Code:
127.0.0.1       localhost.localdomain   localhost
xxx.xxx.xxx.116   host.dnti.com dnti
therefore, I would change main.cf to not include localhost - but I'm not sure on this.
Code:
myhostname = host.dnti.com
mydomain = dnti.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname
mynetworks_style = host

don't visit my homepage:
 
Thanks for the help, the problem was I didnt setup postfix, I needed to run the setup script.

Thnaks

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top