Good afternoon Gentlemen, I have a question regarding /etc/hosts for CentOS 6 x64. I already have a hostname set on my server, however there are 10 additional IP aliases assigned to the box, one which I plan to use as a mail server. The mail server will be serving mail for a completely different domain (different then the default hostname of my box). My question is this: If I take one of my additional IP addresses and bind it to postfix for mail, do I also have to specify the remote IP and mail server hostname in /etc/hosts? For example my hosts looks something like this 127.0.0.1 localhost Can I add? 66.x.x.x mail.foo.bar Is this even necessary?
Am 08.11.2011 18:23, schrieb Jonathan Vomacka:> Good afternoon Gentlemen, > > I have a question regarding /etc/hosts for CentOS 6 x64. I already have > a hostname set on my server, however there are 10 additional IP aliases > assigned to the box, one which I plan to use as a mail server. The mail > server will be serving mail for a completely different domain (different > then the default hostname of my box). My question is this: If I take one > of my additional IP addresses and bind it to postfix for mail, do I also > have to specify the remote IP and mail server hostname in /etc/hosts? > > For example my hosts looks something like this > 127.0.0.1 localhost > > Can I add? > 66.x.x.x mail.foo.bar > > Is this even necessary?not if your dns-servers on LAN and WAN are configured right and if this is not the case you must not run a public mailserver -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20111108/3949f65e/attachment.sig>
Reindl, To my knowledge, all that needs to be configured is A records, MX records, and SPF records (along with correlating PTR's). This is a whole other subject and I feel I will have this correctly configured. My fear is that someone will send email out from my server, and the hostname might come back as my systems host INSTEAD of the mail server hostname. Is it good measure to add it to the hosts file anyway or is this a waste of time? I guess my understanding of the host file is clouded. On 11/8/2011 12:50 PM, Reindl Harald wrote:> Am 08.11.2011 18:23, schrieb Jonathan Vomacka: >> Good afternoon Gentlemen, >> >> I have a question regarding /etc/hosts for CentOS 6 x64. I already have >> a hostname set on my server, however there are 10 additional IP aliases >> assigned to the box, one which I plan to use as a mail server. The mail >> server will be serving mail for a completely different domain (different >> then the default hostname of my box). My question is this: If I take one >> of my additional IP addresses and bind it to postfix for mail, do I also >> have to specify the remote IP and mail server hostname in /etc/hosts? >> >> For example my hosts looks something like this >> 127.0.0.1 localhost >> >> Can I add? >> 66.x.x.x mail.foo.bar >> >> Is this even necessary? > > not if your dns-servers on LAN and WAN are configured right and > if this is not the case you must not run a public mailserver > > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos