[opensuse] Re: postfix: Name service error
Otto Rodusek wrote:
Joachim Schrod wrote:
Otto Rodusek wrote:
I've recently set up a new OpenSuse11.1 server. I need a simple smtp request - mail out system errors to the sysadmin as/when necessary.
Nov 26 15:49:42 bunyip postfix/error[2285]: 059CBC658B: to=
, relay=none, delay=71849, delays=71820/28/0/0.1, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=hotmail.com type=MX: Host not found, try again) What is the output of "host -t mx hotmail.com"? In nsswitch.conf, is "dns" listed on the hosts line?
I think you've hit on something!! Below are the results from the server that is not able to smtp out: So any idea what the problem could be??
bunyip:/etc # host -t mx hotmail.com ;; connection timed out; no servers could be reached bunyip:/etc # cat nsswitch.conf # hosts: files mdns4_minimal [NOTFOUND=return] dns
That means that if hotmail.com's MX record is not found in Zeroconf (i.e., the avahi daemon, implementing Apple's Bonjour protocol), it returns immediately, without contacting your DNS servers. There are two possible remedies: 1) If you don't know what Zeroconf is and have no Apple system, remove the string "mdns4_minimal [NOTFOUND=return] " from the line above. I.e., leave only files and dns. 2) Otherwise, check that avahi is running. I can't help you further in that use case, there others must chime in. (I don't use it. This stuff is good, as long as it works, and is pure horror if it doesn't work. Just like all things from Apple. I'm an old Unix grey beard (literally) and will not adapt to this new-fangled stuff. DNS works for me and it also doesn't help me get the kids off my lawn... :-) :-)) Joachim PS: No need to answer me personally, just reply to the list. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, Nov 26, 2009 at 12:55:32PM +0100, Joachim Schrod wrote:
Otto Rodusek wrote: [ 8< ]
hosts: files mdns4_minimal [NOTFOUND=return] dns
That means that if hotmail.com's MX record is not found in Zeroconf (i.e., the avahi daemon, implementing Apple's Bonjour protocol), it returns immediately, without contacting your DNS servers.
There are two possible remedies:
1) If you don't know what Zeroconf is and have no Apple system, remove the string "mdns4_minimal [NOTFOUND=return] " from the line above. I.e., leave only files and dns.
But then we might lose the abilty to resolve hostname without having setup a DNS server in the LAN.
2) Otherwise, check that avahi is running. I can't help you further in that use case, there others must chime in. (I don't use it. This stuff is good, as long as it works, and is pure horror if it doesn't work. Just like all things from Apple. I'm an old Unix grey beard (literally) and will not adapt to this new-fangled stuff. DNS works for me and it also doesn't help me get the kids off my lawn... :-) :-))
Independent if 40+ or 50+, Zeroconf, Automatic Private IP Addressing, or which other name you use and also independent of the operating system in use this no black magic limited to teenies. It is how things are intended to work in a home environment. Maybe even in small offices. Yet another KISS approach. But back to the technical issue: chkconfig avahi-daemon chkconfig avahi-dnsconfd both commands return "on" with a plain openSUSE 11.2 system. With other words the avahi-daemon and avahi-dnsconfd services are enabled to get started while the system's boot process. And: service avahi-daemon status service avahi-dnsconfd status both commands return "running" on the same system. Now we know the services got started and are still running. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Lars Müller said the following on 11/26/2009 07:17 AM:
On Thu, Nov 26, 2009 at 12:55:32PM +0100, Joachim Schrod wrote:
Otto Rodusek wrote: [ 8< ]
hosts: files mdns4_minimal [NOTFOUND=return] dns That means that if hotmail.com's MX record is not found in Zeroconf (i.e., the avahi daemon, implementing Apple's Bonjour protocol), it returns immediately, without contacting your DNS servers.
There are two possible remedies:
1) If you don't know what Zeroconf is and have no Apple system, remove the string "mdns4_minimal [NOTFOUND=return] " from the line above. I.e., leave only files and dns.
But then we might lose the abilty to resolve hostname without having setup a DNS server in the LAN.
No, that is not the case. In short, "hosts: files dns" means: First consult /etc/hosts then use what's specified in etc/resolv.conf While its useful for a SMB and larger to have a internal DNS server, especially if hosts appear and disappear using DHCP, its not necessary for a home network or a small office where the network configuration is fixed and can be specified in /etc/hosts. In that case the /etc/resolv.conf uses the values supplied by the ISP. Or perhaps, as is the case in my home network, the firewall/router/CPE connects to my cable ISP using DHCP and my internal hosts all have /etc/resolv.conf pointing to the inside port of the firewall, which acts as a proxy/cache/relayer. KISS -- Of all tyrannies, a tyranny exercised for the good of its victims may be the most oppressive. It may be better to live under robber barons than under omnipotent moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end, for they do so with the approval of their consciences. -- C. S. Lewis -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joachim Schrod wrote:
Otto Rodusek wrote:
Joachim Schrod wrote:
Otto Rodusek wrote:
I've recently set up a new OpenSuse11.1 server. I need a simple smtp request - mail out system errors to the sysadmin as/when necessary.
Nov 26 15:49:42 bunyip postfix/error[2285]: 059CBC658B: to=
, relay=none, delay=71849, delays=71820/28/0/0.1, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=hotmail.com type=MX: Host not found, try again) What is the output of "host -t mx hotmail.com"? In nsswitch.conf, is "dns" listed on the hosts line?
I think you've hit on something!! Below are the results from the server that is not able to smtp out: So any idea what the problem could be??
bunyip:/etc # host -t mx hotmail.com ;; connection timed out; no servers could be reached bunyip:/etc # cat nsswitch.conf # hosts: files mdns4_minimal [NOTFOUND=return] dns
That means that if hotmail.com's MX record is not found in Zeroconf (i.e., the avahi daemon, implementing Apple's Bonjour protocol), it returns immediately, without contacting your DNS servers.
There are two possible remedies:
1) If you don't know what Zeroconf is and have no Apple system, remove the string "mdns4_minimal [NOTFOUND=return] " from the line above. I.e., leave only files and dns.
2) Otherwise, check that avahi is running. I can't help you further in that use case, there others must chime in. (I don't use it. This stuff is good, as long as it works, and is pure horror if it doesn't work. Just like all things from Apple. I'm an old Unix grey beard (literally) and will not adapt to this new-fangled stuff. DNS works for me and it also doesn't help me get the kids off my lawn... :-) :-))
Joachim
PS: No need to answer me personally, just reply to the list.
Hi, Thanks for all the helpful hints - tried all of them but postfix/sendmail still can't send out any mail!! I'm a bit confused with this dns issue - mainly if I open firefox or konquer, I have no problems surfing the net - even zyppr does all the updates without complaint - seems that ONLY postfix is giving an issue. As Joachim mentioned I tried the host command with the following results: bunyip:/etc # host gmail.com gmail.com has address 209.85.225.83 gmail.com has address 74.125.79.83 gmail.com has address 74.125.127.83 ;; connection timed out; no servers could be reached bunyip:/etc # host -t mx gmail.com ;; connection timed out; no servers could be reached bunyip:/etc # It kinda works in that it can identifiy the correct host address just can't resolve any mx records!! I have tried to turn of all firewalls (just in case it was a firewall issue) however I still get the same result. Anyone else can suggest something else to try to resolve this. Thanks for all the helpful feedbacks!! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Otto Rodusek wrote:
Joachim Schrod wrote:
Hi, Thanks for all the helpful hints - tried all of them but postfix/sendmail still can't send out any mail!! I'm a bit confused with this dns issue - mainly if I open firefox or konquer, I have no problems surfing the net - even zyppr does all the updates without complaint - seems that ONLY postfix is giving an issue. As Joachim mentioned I tried the host command with the following results:
A few days ago I stumbled upon a very annoying bug that interfered with Postfix: I installed the rpm package of VMWare Server 1.10, everything was working as usual, but then I noticed that mails were stuck in the queue and delivery was suspended. A bit of trouble-shooting and I discovered that the installation of the new VMWare added some service entries in /etc/services. Unfortunately by doing so the permissions were changed to "root:root 600", so the Postfix smtp client that is not working with root privileges had no more access to /etc/services, and all kind of strange error messages started to pop up. These kind of strange errors are almost always of external origin. That includes wrong/missing linked libraries, wrong permissions, faulty dns setup, incorrectly set up chroot environments and many more. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) drobic (.) de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anton Aylward
-
Joachim Schrod
-
Lars Müller
-
Otto Rodusek
-
Sandy Drobic