I have a tiny network (3 machines) and therefore have chosen not to use a DNS as i really don't need it. I thought everything was going well as i had defined all machines in /etc/hosts and i could ping them using hostname.mydomain . I started fiddling around with my postfix config and found a problem delivering local mail. I soon found out that "hosts kananga.mydomain" fails. This explains why postfix can't deliver any local mail and keeps on sending them to the ISP mail server instead of handling it itself. I have the relevant entries in /etc/hosts and /etc/network. I have also "order hosts bind" in the /etc/host.conf file. /etc/nsswitch has the entry : hosts :file dns I am *still* able to ping kananga.mydomain successfully. When i try "host -a kananga.mydomain", I get : Host kananga not found: 3(NXDOMAIN) What am i missing here? Thanks. Clifford -- [Insert witty observation here]
On Sat, 2003-06-28 at 21:42, Clifford wrote:
I am *still* able to ping kananga.mydomain successfully.
When i try "host -a kananga.mydomain", I get : Host kananga not found: 3(NXDOMAIN)
I'm pretty sure host ignores /etc/hosts. It's a tool for making DNS queries, it will query your DNS server, and if you haven't configured kananga.mydomain there, it will fail. Have you set the "myhostname" and "mydomain" in /etc/postfix/main.cf (or through the /etc/sysconfig/postfix interface) so postfix knows to accept mail for those names?
The 03.06.28 at 20:42, Clifford wrote:
I have a tiny network (3 machines) and therefore have chosen not to use a DNS as i really don't need it.
Having a local dns saves external network traffic and speeds up some things.
I thought everything was going well as i had defined all machines in /etc/hosts and i could ping them using hostname.mydomain . I started fiddling around with my postfix config and found a problem delivering local mail. I soon found out that "hosts kananga.mydomain" fails.
Mail delivery requires a working DNS; the query: host -t MX kananga.mydomain must work. -- Cheers, Carlos Robinson
Quoting Carlos E. R. <robin1.listas@tiscali.es>:
The 03.06.28 at 20:42, Clifford wrote:
I have a tiny network (3 machines) and therefore have chosen not to use a DNS as i really don't need it.
Having a local dns saves external network traffic and speeds up some things.
I thought everything was going well as i had defined all machines in /etc/hosts and i could ping them using hostname.mydomain . I started fiddling around with my postfix config and found a problem delivering local mail. I soon found out that "hosts kananga.mydomain" fails.
Mail delivery requires a working DNS; the query:
host -t MX kananga.mydomain
must work.
I spent weeks trying to get Postfix to work without DNS and an afternoon setting it up. From the Postfix docs, it looks like it should work with just /etc/hosts, but I never figured out how. Jeffrey
The 03.07.01 at 09:16, Jeffrey L. Taylor wrote:
Mail delivery requires a working DNS; the query:
host -t MX kananga.mydomain
must work.
I spent weeks trying to get Postfix to work without DNS and an afternoon setting it up. From the Postfix docs, it looks like it should work with just /etc/hosts, but I never figured out how.
Notice that you also need the other machine to accept the situation... -- Cheers, Carlos Robinson
participants (4)
-
Anders Johansson
-
Carlos E. R.
-
Clifford
-
Jeffrey L. Taylor