LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-21-2012, 08:53 AM   #1
Takeshi_F
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
Postfix problem


Hi,

I'm trying to set up postfix. I followed this tutorial: https://help.ubuntu.com/community/Po...asicSetupHowto

I did everything and it all works untill the " Adding your local domains to postfix "

When I use localhost it works fine:

Code:
test@test-VirtualBox:~$ netcat localhost 25
220 test-VirtualBox ESMTP Postfix (Ubuntu)
but if I try netcat mail.lintest.be 25 it says

Code:
netcat: getaddrinfo: Name or service not known
This is mydestination:

Code:
mydestination = mail-linux, test-VirtualBox, localhost.localdomain, localhost, lintest.be
and mynetworks:

Code:
mynetworks = 127.0.0.0/8, 192.168.56.0/24
The rest is the same as the tutorial above.

Code:
test@test-VirtualBox:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 test-VirtualBox ESMTP Postfix (Ubuntu)

Code:
test@test-VirtualBox:~$ telnet mail.lintest.be 25
telnet: could not resolve mail.lintest.be/25: Name or service not known
Some other files:


/etc/network/interfaces file:
Code:
auto eth0
iface eth0 inet static
address 192.168.56.20
netmask 255.255.255.0
network	192.168.56.0
broadcast 192.168.56.255
gateway 192.168.56.1
auto lo
iface lo inet loopback
/etc/resolvconf/resolv.conf.d/base

Code:
nameserver 192.168.56.20
nameserver 192.168.56.10
/etc/bind/named.conf.local

Code:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "lintest.be"{
        type master;
        file "/etc/bind/zones/lintest.be.db";
}
/etc/bind/named.conf.options

Code:
options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

recursion yes;

        forwarders {
                192.168.56.10;
        };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};
/etc/bind/zones/lintest.be.db


Code:
$TTL 3D
@ IN SOA ns.mydomain.be. admin.mydomain.be. (
   2007062002
   28800
   3600
   604800
   38400
);
lintest.be.  IN      NS         ns.lintest.be.
mail.lintest.be.        IN      MX      10      www.lintest.be.
www             IN      A       192.168.56.10
ns.lintest.be.  IN      A       192.168.56.20
Does anybody know the problem?

Thanks in advance
 
Old 10-22-2012, 02:12 AM   #2
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
Your problem is with BIND - you appear to be missing reverse zone for the one you're claiming authority. Follow this here: http://www.ubuntugeek.com/dns-server...in-ubuntu.html
 
  


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
Postfix Problem m245 Linux - Server 7 01-22-2010 03:22 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 01:21 PM
postfix problem ayush1440 Linux - Server 6 02-29-2008 11:08 AM
problem with postfix easykillsoft Suse/Novell 4 02-12-2006 05:09 PM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 10:12 PM


All times are GMT -5. The time now is 05:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration