* [EMAIL PROTECTED] [linux-india] <15/05/01 16:21 +0530>: > We are trying to configure mail on Linux without using DNS for name > lookup.iam using mail command to send mail to a user on a different > machine.. > this i want it to happen without using dns.i want the mail to refer the > /etc/hosts for name resolution. i have made the necessary entries in > /etc/hosts in all the systems on my intranet.. > but when i try to send a mail i get a error in mailq saying "host name > lookup failure" This is (sort of) covered in my howto at http://www.hserus.net/sendmail.html > 4. Now we'll ask sendmail not to do DNS lookups when passing all mail to the > smarthost for delivery. Create a file called /etc/mail/service.switch > > hosts files > aliases files So, the disadvantage is that sendmail will henceforth _only_ use a gethostbyname() call to resolve things. Instead, try hosts files dns and see what happens. Dont know why it gives you unknown host, as /etc/hosts entries are typically checked if there's no DNS entry present. I tried this without a service.switch entry and it worked (mailing a host on our LAN which has no DNS entry and only a 10./8 IP). Perhaps there's something in /etc/nsswitch.conf which prevents all services from consulting /etc/hosts? -s -- Suresh Ramasubramanian <--> mallet <at> efn <dot> org EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/linux-india-help
