Postfix Name Service Error For Name=localhost Type=a Host Not Found
Contents |
26, 2008. savago Member cd /var/log tail type=a: host found but no data record of requested type -f maillog Sep 26 09:50:32 server1 sendmail[4481]: m8Q6oVXu004481: [emailprotected], ctladdr=web15_user status=bounced (host or domain name not found. name service error for name (10020/10015), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30123, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 0C42728680D8) Sep 26 09:50:32 server1 postfix/smtp[2842]: host or domain name not found type=a: host not found 0C42728680D8: to=<[emailprotected]>, relay=none, delay=0.13, delays=0.13/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost.localdomain type=A: Host not found) cd /etc cat hosts # Do not remove the following line, or various programs
Postfix Type=a: Host Not Found
# that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost www domain.com server1.domain.com server1 ::1 localhost6.localdomain6 localhost6 cd /etc/postfix cat local-host-names localhost server1.domain.com localhost.server1.domain.com localhost.domain.com localhost.localdomain www.domain.com cat main.cf ...smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, reject_unknown_recipient_domain, reject_unverified_recipient, reject_rbl_client dsn.rfc-ignorant.org, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client dnsbl.sorbs.net, reject_rbl_client cbl.abuseat.org, permit mynetworks = 127.0.0.0/8 smtpd_tls_auth_only = no smtp_use_tls = yes smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom home_mailbox = Maildir/ mailbox_command = smtpd_etrn_restrictions =
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Delivery Temporarily Suspended: Host Or Domain Name Not Found. Name Service Error For Name
and policies of this site About Us Learn more about Stack Overflow status=bounced (host or domain name not found. name service error for name= type=a host not found) the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users postfix type=aaaa: host not found Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it https://www.howtoforge.com/community/threads/name-service-error-for-name-localhost-localdomain-type-a-host-not-found.27151/ works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Postfix - Host or domain not found up vote 11 down vote favorite 6 I just installed Postfix on my ubuntu, on a local network. On this network, I have an Exchange Server (using domain mail.example.com). I had a problem sending http://serverfault.com/questions/577134/postfix-host-or-domain-not-found an email to a local address : adress@example.com : relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=example.com type=AAAA: Host found but no data record of requested type) I solved this problem using relay_domain in my postfix main.cf : relay_domains = example.com transport_maps = hash:/etc/postfix/transport And in my /etc/postfix/transport : example.com smtp:[mail.example.com] Now I can send mails on @example.com, and I have tested some majors webmails (Gmail, Yahoo, Hotmail...). It works. But why I got this error on my adresses "@example.com" ? How can I be sure I never find this error on another domain ? My postconf -n give : alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = SRVWEB, localhost.localdomain, localhost myhostname = SRVWEB mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relay_domains = mutuelle-var.fr relayhost = smtp_generic_maps = hash:/etc/postfix/generic smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_c
not found. Name service error : Postfix http://www.centos.org/forums/viewtopic.php?t=29796 Installing, Configuring, Troubleshooting server daemons such as Web and Mail Post Reply Print view Search Advanced search 8 posts • Page 1 http://postfix.1071664.n5.nabble.com/localhost-pitfall-in-resolver-solving-quot-Host-or-domain-name-not-found-Name-service-error-for-name-td49288.html of 1 huecha Posts: 5 Joined: 2011/06/07 16:34:34 Host or domain name not found. Name service error : Postfix Quote Postby huecha not found » 2011/06/07 16:59:24 Hello First post so please go easy. Tearing my hair out on this one a little bit, having problems sending message from web based PHP form to user inbox.I keep getting: Undelivered Mail Returned to Sender
Previous Topic Next Topic › Classic List Threaded ♦ ♦ Locked 10 messages Matthias Andree Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ localhost pitfall in resolver/solving "Host or domain name not found. Name service error for name=localhost type=A: Host not found" (also type=AAAA) Greetings, and sorry for the subject spam with search engine fodder, but I've wasted hours debugging something that wasn't obvious but I believe I have a somewhat useful overview now that I'd like to share. My problem was that Postfix's smtp could not DNS-resolve "localhost", but could resolve other domains. Symptom in the log: Host or domain name not found. Name service error for name=localhost type=A: Host not found Host or domain name not found. Name service error for name=localhost type=AAAA: Host not found This "localhost" I was trying to resolve was procured from a transport map as "[localhost]", in order to use an SSH tunnel for semi-authenticated relaying. "localhost" is also often used for filtering when the filter software runs on the same computer as Postfix. Now, observe there are common configurations that don't play together well: - The typical DNS resolver looks for names without dots in a "search" list. This is either configured explicitly (possibly automatically) in /etc/resolv.conf, or taken from the "domain", or derived from the hostname. - The typical DNS resolver does not try a direct look up of names without dots at all. - Not all DNS zones provide a "localhost" hostname record, or if they do, only at the top level - where it's invisible if subdomains are used, such as mycomputer.mydepartment.example.org. The consequence is that in such circumstances, "localhost" is not reliably resolvable. This problem is exacerbated by the fact that Postfix does not allow me to use "localhost." instead -- this would have been a fully-qualified host name that defeats the domain search, and I've yet to see a resolver that balks at "localhost." with trailing dot. (Note that the DNS root zone is called "." and DNS is a hierarchical system rooted at the last component - the top-level domain.) Now, possible workarounds: - be sure that /etc/resolv.conf contains a "search" list where at least one of the listed domains has a direct localhost resolving to 127.0.0.1 and/or ::1. Say, if you have "search example.com another.example", at least localhost.example.com or localhost.another.example must resolve IN DNS - /etc/hosts doesn't work here. - add "options ndots:0" to /etc/resolv.conf (i