LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2005, 05:01 AM   #1
alex r
LQ Newbie
 
Registered: Feb 2005
Posts: 26

Rep: Reputation: 15
Postfix: Host found but no data record of requested type


Hi!
On my Fedora server I lately installed postfix for emailing. The domain name is 'linux-pc.com' and the hostname is pc1. No DNS running there.
Also I have a W2k3 server running called 'w2k3dom.com'. This is the server in my network running DNS. I have an entry in the /etc/resolv.conf file that points to this DNS server.

Sending emails works fine for remote addresses like user@w2k3dom.com but for local local users like alex@linux-pc.com I get this output from /var/log/maillog:


Jun 30 16:02:59 pc1 postfix/smtp[13342]: D2F7EB7953:
to=<alex@linux-pc.com>, relay=none, delay=0, status=bounced (Host or
domain name not found. Name service error for name=linux-pc.com
type=A: Host found but no data record of requested type)


Any ideas what parts of the system are misconfigured?


Alex
 
Old 07-01-2005, 05:49 AM   #2
sind
Member
 
Registered: Jun 2005
Posts: 75

Rep: Reputation: 15
I don't know anything about Postfix, but I know with Sendmail you can tell it to masquerade for a domain. Perhaps you need to tell Postfix to do so for linux-pc.com? Otherwise it looks as though it is trying to find the mail server for that domain. Perhaps adding an A record to your DNS (or the equivalent to your /etc/hosts file) for linux-pc.com pointing to your computer would work instead?

Does sending mail to alex@pc1.linux-pc.com work?

~sind
 
Old 07-01-2005, 07:28 AM   #3
alex r
LQ Newbie
 
Registered: Feb 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Unfortunately sending mails to alex@linux-pc.com doesn't work. That's where I got the error messages from actually

But I found the error. The potfix configuration file /etc/postfix/main.cf has an attribute called $mydestination that describes which domain names should be treated as local domains. The values were:

mydestination = $myhostname, localhost.$mydomain, localhost

It would have worked with email addresses like 'alex@pc1', 'alex@localhost.linux-pc.com' or 'alex@localhost'. So I had to change to line to:

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain


That solved to problem and directly led to the next one. Now I'm getting this output:

Jul 1 15:49:44 pc1 postfix/pickup[20977]: CA190B7A87: uid=89 from=<root> orig_id=C2F4ACEE9C
Jul 1 15:49:44 pc1 postfix/cleanup[21010]: CA190B7A87: Message-id=<20050701101944.CA190B7A87@pc1.linux-pc.com>
Jul 1 15:49:44 pc1 postfix/qmgr[20978]: CA190B7A87: from=<root@linux-pc.com>, size=294, nrcpt=1 (queue active)
Jul 1 15:49:44 pc1 postfix/local[21011]: warning: lookup test2, NIS domain linux-pc.com, map mail.aliases: internal yp server or client error
Jul 1 15:49:44 pc1 postfix/local[21011]: CA190B7A87: to=<test2@linux-pc.com>, orig_to=<test2>, relay=local, delay=0, status=deferred (alias database unavailable)


Any ideas? I've no NIS installed and also don't want to install one
 
Old 07-04-2005, 05:27 AM   #4
alex r
LQ Newbie
 
Registered: Feb 2005
Posts: 26

Original Poster
Rep: Reputation: 15
problem solved: again a misconfiguration. change the attribute alias_maps to:

alias_maps = $alias_database



That's it. For more information rely on this document:

http://www.muine.org/~hoang/postfix.html

Last edited by alex r; 07-04-2005 at 05:29 AM.
 
Old 06-26-2014, 07:01 AM   #5
rodrigobrasil29
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
(Host or domain name not found. Name service error for name=gmail.com type=AAAA: Host found but no d

Hi there,

I got a postfix configured like mailing just to send emails and from nothin its stopped to send emails for external domains. i can send just to my domains.
My log show me:
Code:
 maillist postfix/smtp[1361]: 627653060: to=<rodrigobrasil29@gmail.com>,
 relay=none, delay=0.04, delays=0.02/0/0.01/0, dsn=5.4.4, status=bounced 
(Host or domain name not found. Name service error for name=gmail.com type=AAAA: Host found but no data record of requested type)
When i send to my domain:
Code:
Jun 26 08:17:56 maillist postfix/qmgr[1356]: E7E373043: from=<root@al.sc.gov.br>,
 size=925, nrcpt=1 (queue active)Jun 26 08:18:16 maillist postfix/smtp[1361]: E7E373043:
 to=<rodrigo@alesc.sc.gov.br>, relay=eslovenia.alesc.sc.gov.br[200.192.66.25]:25, delay=308,
 delays=288/0.02/10/10, dsn=2.6.0, status=sent (250 2.6.0 <20140626111308.E7E373043@maillist.al.sc.gov.br>
 Queued mail for delivery)
If someone could help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is pointer a data-type or what aditya Programming 69 09-08-2017 02:09 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM
Postfix / Warnings hostname verification failed: Host not found rioguia Linux - Software 2 10-21-2004 02:15 PM
get mails only when requested with fetchmail/postfix rudolfpolzer Linux - Networking 0 03-27-2004 08:27 AM
Data Type 9 bob Linux - Newbie 1 02-10-2001 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration