View previous topic :: View next topic |
Author |
Message |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Thu Dec 29, 2005 8:36 pm Post subject: Postfix 23751: Host not found [SOLVED] |
|
|
Hello,
I cannot send mail with php my messages tells me this:
Code: |
Dec 29 21:23:58 linuxbak postfix/pickup[5471]: 3D4EF7C0D7: uid=81 from=<apache>
Dec 29 21:23:58 linuxbak postfix/cleanup[6045]: 3D4EF7C0D7: message-id=<20051229212358.3D4EF7C0D7@linuxbak>
Dec 29 21:23:58 linuxbak postfix/qmgr[23751]: 3D4EF7C0D7: from=<apache@linuxbak.linuxbak>, size=300, nrcpt=1 (queue active)
Dec 29 21:23:58 linuxbak postfix/qmgr[23751]: 3D4EF7C0D7: to=<neutcomp@xs4all.nl>, relay=none, delay=0, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=xs4all.nl type=MX: Host not found, try again)
|
I cannot find the solution not with google not in the gentoo forum.
I hope someone can help me out.
If you need more info just let me know.
Thanxx
Bjorn ![Cool 8)](images/smiles/icon_cool.gif)
Last edited by neutcomp on Mon Jan 02, 2006 10:08 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
badchien Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_santas_little_help.gif)
Joined: 16 Feb 2004 Posts: 415 Location: doghouse
|
Posted: Thu Dec 29, 2005 8:42 pm Post subject: |
|
|
Can your box resolve hostnames? What do you have in /etc/resolv.conf ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sunckell n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Apr 2005 Posts: 19
|
Posted: Thu Dec 29, 2005 8:44 pm Post subject: |
|
|
Neutcomp,
Looks like it may be DNS related.
What does:
Code: | nslookup -query=mx xs4all.nl |
return when you run it from the same server that your apache server runs on? (I am assuming you have net-dns/bind-tools installed.)
SunCkell |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Thu Dec 29, 2005 9:09 pm Post subject: |
|
|
etc/resolv.conf
Code: |
nameserver 10.0.0.138
domain neutcomp.xs4all.nl
|
And nslookup -query=mx xs4all.nl
Code: |
-bash: lookup: command not found
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Sat Dec 31, 2005 4:29 pm Post subject: |
|
|
*Bump*
No one?
Have a good New Year Party!
Bye
Bjorn |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Dec 31, 2005 9:53 pm Post subject: |
|
|
It says name service error. If Postfix can't get the MX record details from DNS it will fail. You'll need to emerge the tools, as suggested, to test the DNS.
I generally run Bind on the machine that has Postfix. Just as a caching DNS, nothing fancy. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Sun Jan 01, 2006 12:49 pm Post subject: |
|
|
Ok I have emerge bind, but I really dont know what i can do with it or how I could use this.
Can you help me out with that?
And I could not find a package to emerge nslookup. But maby this tool is compiled in another package?
Thanks
Bjorn |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sun Jan 01, 2006 2:00 pm Post subject: |
|
|
For nslookup and other things you'll want bind-tools as suggested above.
For Bind - run /etc/init.d/named start to start the nameserver.
Edit /etc/resolve.conf and put 127.0.0.1 as the first nameserver. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Sun Jan 01, 2006 5:36 pm Post subject: |
|
|
The result from nslookup -query=mx xs4all.nl
Code: |
Server: 10.0.0.138
Address: 10.0.0.138#53
** server can't find xs4all.nl: NOTIMP
|
10.0.0.138 is my modem ipaddress. I have a NAT connection maby this could be the problem?
Result for /etc/init.d/named start [!!]
Code: |
Jan 1 18:32:10 linuxbak named[17255]: starting BIND 9.2.5 -u named -n 1
Jan 1 18:32:10 linuxbak named[17255]: using 1 CPU
Jan 1 18:32:10 linuxbak named[17255]: loading configuration from '/etc/bind/named.conf'
Jan 1 18:32:10 linuxbak named[17255]: no IPv6 interfaces found
Jan 1 18:32:10 linuxbak named[17255]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 1 18:32:10 linuxbak named[17255]: listening on IPv4 interface eth0, 10.0.0.25#53
Jan 1 18:32:10 linuxbak named[17255]: command channel listening on 127.0.0.1#953
Jan 1 18:32:10 linuxbak named[17255]: couldn't open pid file '/var/run/named.pid': Permission denied
Jan 1 18:32:10 linuxbak named[17255]: exiting (due to early fatal error)
|
The /etc/bind/named.conf is empty?
So I think I have add some information in the conf file.
Thanxx
Bjorn |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
badchien Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_santas_little_help.gif)
Joined: 16 Feb 2004 Posts: 415 Location: doghouse
|
Posted: Sun Jan 01, 2006 6:35 pm Post subject: |
|
|
It sounds like your modem is supposed to be doing dns proxy only it isn't working or something. Can you find out what [caching] dns servers are provided for your use by your isp? Then you could just add those to your /etc/resolv.conf . If your apache/php/postfix server gets its ip address via dhcp you'll have to configure it not to overwrite your resolv.conf. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sun Jan 01, 2006 7:16 pm Post subject: |
|
|
You seem to be having a permissions problem. It needs to be able to write to /var/run as user named to create the pid file. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Sun Jan 01, 2006 7:20 pm Post subject: |
|
|
Ok and how can I give that user write permissions?
Sorry for all those simple questions but I really dont know how to do that.
Thanks
Bjorn |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sun Jan 01, 2006 7:58 pm Post subject: |
|
|
Here's my /etc/bind/named.conf.
Code: |
options {
directory "/var/bind";
// uncomment the following lines to turn on DNS forwarding,
// and change the forwarding ip address(es) :
//forward first;
//forwarders {
// 123.123.123.123;
// 123.123.123.123;
//};
//listen-on-v6 { none; };
//listen-on { 127.0.0.1; };
// to allow only specific hosts to use the DNS server:
//allow-query {
// 127.0.0.1;
//};
// if you have problems and are behind a firewall:
//query-source address * port 53;
pid-file "/var/run/named/named.pid";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no;
};
zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};
|
Your one shouldn't be empty. That'll probably sort out the pid problem as it will place it in /var/run/named/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Sun Jan 01, 2006 8:05 pm Post subject: |
|
|
Yep the bind problem is fixed now thanks. But I still get the same MX problem when I send a mail.
Code: |
Jan 1 21:01:00 linuxbak postfix/pickup[17460]: B91487C0EE: uid=81 from=<apache>
Jan 1 21:01:00 linuxbak postfix/cleanup[18526]: B91487C0EE: message-id=<20060101210100.B91487C0EE@neutcomp.xs4all.nl>
Jan 1 21:01:00 linuxbak postfix/qmgr[23751]: B91487C0EE: from=<apache@neutcomp.xs4all.nl>, size=311, nrcpt=1 (queue active)
Jan 1 21:01:00 linuxbak postfix/qmgr[23751]: B91487C0EE: to=<neutcomp@xs4all.nl>, relay=none, delay=0, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=xs4all.nl type=MX: Host not found, try again)
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sun Jan 01, 2006 8:23 pm Post subject: |
|
|
But is Postfix using your newly-emerged DNS server? Can you run nslookup and check it is using 127.0.0.1, for example. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
A.K. n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Jan 2006 Posts: 1
|
Posted: Mon Jan 02, 2006 9:32 pm Post subject: |
|
|
I had simular problems, but after i put
nameserver 194.109.104.104
nameserver 194.109.6.66
and removed nameserver 10.0.0.138
in /etc/resolv.conf it worked
(my primary DNS and secondary DNS server, read from the speedtouch modem, i have xs4all too) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neutcomp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2004 Posts: 112 Location: The Netherlands
|
Posted: Mon Jan 02, 2006 10:08 pm Post subject: |
|
|
I could kiss you if you where a female
Thanxxxxxxx alot, you make my day and the hole 2006
Bye
Bjorn |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mlebek Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 07 Mar 2004 Posts: 125
|
Posted: Wed Oct 04, 2006 9:33 am Post subject: |
|
|
an 'emerge bind-tools' solved this postfix problem for me!
i think postfix needs 'nslookup' which is part of the bind-tools. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|