Postfix Name Service Error For Name Host Not Found
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Host Or Domain Name Not Found. Name Service Error For Name= Type=a Host Not Found
and policies of this site About Us Learn more about Stack Overflow type=a: host found but no data record of requested type the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users status=bounced (host or domain name not found. name service error for name 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 works:
Delivery Temporarily Suspended: Host Or Domain Name Not Found. Name Service Error For Name
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 an
Postfix Type=a: Host Not Found
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_cache_database = btree:
here for a quick overview of the site host or domain name not found type=a: host not found Help Center Detailed answers to any questions you might have
Status=bounced (host Or Domain Name Not Found. Name Service Error For Name= Type=a Host Not Found)
Meta Discuss the workings and policies of this site About Us Learn more about postfix type=aaaa: host not found Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask http://serverfault.com/questions/577134/postfix-host-or-domain-not-found Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are http://unix.stackexchange.com/questions/21407/postfix-doesnt-send-mail-complaining-about-host-or-domain-name-not-found voted up and rise to the top Postfix doesn't send mail, complaining about “Host or domain name not found” up vote 8 down vote favorite 2 I followed these instructions in order to send mail and here's the Postfix log: Sep 26 00:46:24 tshepang postfix/smtpd[5728]: 8EE2464931: client=localhost[127.0.0.1] Sep 26 00:47:44 tshepang postfix/cleanup[5810]: 8EE2464931: message-id=<20110925224624.8EE2464931@tshepang> Sep 26 00:47:44 tshepang postfix/qmgr[5772]: 8EE2464931: from=
26, 2008. savago Member cd /var/log tail -f maillog Sep https://www.howtoforge.com/community/threads/name-service-error-for-name-localhost-localdomain-type-a-host-not-found.27151/ 26 09:50:32 server1 sendmail[4481]: m8Q6oVXu004481: [emailprotected], ctladdr=web15_user (10020/10015), delay=00:00:01, https://www.sslug.dk/~chlor/postfix/ 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]: 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 not found found) cd /etc cat hosts # Do not remove the following line, or various programs # 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 = host not found 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 = reject smtpd_reject_unlisted_sender = yes disable_vrfy_command = yes strict_rfc821_envelopes = yes #show_user_unknown_table_name = no address_verify_sender = <> smtpd_helo_required = yes smtp_always_send_ehlo = yes smtpd_hard_error_limit = 8 #virtual_maps = hash:/etc/postfix/virtusertable #mydestination = /etc/postfix/local-host-names myhostname = server1.domain.com mydomain = domain.com myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost [[emailprotected] log]# telnet localhost.localdomain 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 server1
and /etc/resolv.conf differ you should copy /etc/resolv.conf to /var/spool/postfix/etc/ . The error comes because you run postfix as chroot and postfix can then only see files in /var/spool/postfix/ . During install postfix takes a copy of /etc/resolv.conf and place it in its own directory. There could be more errors than that. Check /var/log/mail/warnings and /var/log/mail/errors and make sure you have verified all files. In case of more trouble run the command postfix check. You could also get error messages like: postfix/postfix-script: warning: /var/spool/postfix/etc/localtime and /etc/localtime differ postfix/postfix-script: warning: /var/spool/postfix/etc/services and /etc/services differ Which implies that /etc/localtime and /etc/services should be copied. Before doing anything check what the difference of the files is. For more information: http://www.postfix.org/faq.html#numerical_log Postfix logs SMTP clients as IP addresses . by Hans Schou & Ole Tange ISO/IEC 15445:2000