Code: myserver:/ # dig mx virtualdomain.lv ; <<>> DiG 9.3.4 <<>> mx virtualdomain.lv ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40877 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 5 ;; QUESTION SECTION: ;virtualdomain.lv. IN MX ;; ANSWER SECTION: virtualdomain.lv. 1800 IN MX 10 mail.virtualdomain.lv. ;; AUTHORITY SECTION: lv. 172659 IN NS SUNIC.SUNET.SE. lv. 172659 IN NS NSZ.NIC.lv. lv. 172659 IN NS NSZ2.LATNET.lv. lv. 172659 IN NS NSZ2.NIC.lv. lv. 172659 IN NS NSZ.LATNET.lv. lv. 172659 IN NS NS.UU.NET. lv. 172659 IN NS NS-LV.RIPE.NET. ;; ADDITIONAL SECTION: NSZ.LATNET.lv. 532 IN A 91.198.156.4 NSZ2.NIC.lv. 120 IN A 92.240.64.2 NSZ2.LATNET.lv. 580 IN A 92.240.64.2 NS.UU.NET. 447 IN A 137.39.1.3 NSZ.NIC.lv. 273 IN A 91.198.156.4 ;; Query time: 103 msec ;; SERVER: 62.85.27.1#53(62.85.27.1) ;; WHEN: Tue May 20 00:33:02 2008 ;; MSG SIZE rcvd: 297
Code: myserver:/ # dig mx mail.virtualdomainlv ; <<>> DiG 9.3.4 <<>> mx mail.virtualdomain.lv ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 45070 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.virtualdomain.lv. IN MX ;; AUTHORITY SECTION: lv. 2560 IN SOA ns.latnet.lv. hostmaster.latnet.lv. 2211295611 3600 1800 3600000 2560 ;; Query time: 7 msec ;; SERVER: 62.85.27.1#53(62.85.27.1) ;; WHEN: Wed May 21 01:32:53 2008 ;; MSG SIZE rcvd: 98 Now I can send meils from [email protected] (using webmail) and I receive it normally at SentToEmail as from [email protected]. But - I can not receive meils sent to [email protected]...
Please post the output of Code: dig mail.virtualdomain.lv not Code: dig [B][COLOR="Red"]mx[/COLOR][/B] mail.virtualdomain.lv
Code: myserver:/var/log # dig mail.virtualdomain.lv ; <<>> DiG 9.3.4 <<>> mail.virtualdomain.lv ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50087 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 8 ;; QUESTION SECTION: ;mail.virtualdomain.lv. IN A ;; ANSWER SECTION: mail.virtualdomain.lv. 1800 IN A 62.85.27.11 ;; AUTHORITY SECTION: lv. 735 IN NS NSZ2.NIC.lv. lv. 735 IN NS NS-LV.RIPE.NET. lv. 735 IN NS NSZ2.LATNET.lv. lv. 735 IN NS NSZ.LATNET.lv. lv. 735 IN NS NSZ.NIC.lv. lv. 735 IN NS SUNIC.SUNET.SE. lv. 735 IN NS NS.UU.NET. ;; ADDITIONAL SECTION: NS-LV.RIPE.NET. 74368 IN A 193.0.12.121 SUNIC.SUNET.SE. 34621 IN A 192.36.125.2 SUNIC.SUNET.SE. 34621 IN AAAA 2001:6b0:7::2 NS.UU.NET. 1173 IN A 137.39.1.3 NSZ.NIC.lv. 80 IN A 91.198.156.4 NSZ.LATNET.lv. 451 IN A 91.198.156.4 NSZ2.NIC.lv. 1505 IN A 92.240.64.2 NSZ2.LATNET.lv. 470 IN A 92.240.64.2 ;; Query time: 8 msec ;; SERVER: 62.85.27.1#53(62.85.27.1) ;; WHEN: Wed May 21 15:21:43 2008 ;; MSG SIZE rcvd: 357 /var/log/mail looks like that: Code: May 21 15:16:05 myserver postfix/local[10477]: D47BD58430: to=<[email protected]>, relay=local, delay=195, status=sent (delivered to command: /usr/bin/procmail -f-) May 21 15:16:05 myserver postfix/qmgr[18482]: D47BD58430: removed May 21 15:16:05 myserver postfix/pickup[16208]: B30D7583F6: uid=10002 from=<info> May 21 15:16:05 myserver postfix/cleanup[16775]: B30D7583F6: message-id=<[email protected]> May 21 15:16:05 myserver postfix/qmgr[18482]: B30D7583F6: from=<[email protected]>, size=389, nrcpt=1 (queue active) May 21 15:16:05 myserver postfix/smtp[17212]: B30D7583F6: to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=localhost.localdomain type=AAAA: Host not found) May 21 15:16:05 mysever postfix/cleanup[16775]: C580358430: message-id=<[email protected]> May 21 15:16:05 myserver postfix/qmgr[18482]: C580358430: from=<>, size=2281, nrcpt=1 (queue active) May 21 15:16:05 myserver postfix/qmgr[18482]: B30D7583F6: removed ...... ?
/etc/hosts: Code: # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts mansIP mywebserver.mydomain.lv mywebserver
/etc/named.conf: Code: options { pid-file "/var/lib/named/var/run/named/named.pid"; directory "/var/lib/named"; auth-nxdomain no; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // zone "." { type hint; file "root.hint"; }; zone "0.0.127.in-addr.arpa" { type master; file "127.0.0.zone"; }; zone "27.85.62.in-addr.arpa" { type master; file "pri.27.85.62.in-addr.arpa"; }; zone "mydomain.lv" { type master; file "pri.mydomain.lv"; }; zone "virtualdomain.lv" { type master; file "pri.virtualdomain.lv"; }; //// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
Falko: 1. IPv6 2. Wrong DNS 3. Incorrect ISP config DNS config I will help resolve all those problems @ evening
Is 62.85.27.11 your server's IP address? Please change /etc/hosts to Code: # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # [COLOR="Red"]127.0.0.1 localhost.localdomain localhost[/COLOR] # special IPv6 addresses [COLOR="Red"]::1 localhost.localdomain localhost ipv6-localhost ipv6-loopback[/COLOR] fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts mansIP mywebserver.mydomain.lv mywebserver
Problem solved - server reinstalled. Now I'm using openSUSE (instead of SLES). ispconfig runnning normal, dns registered normal! BIG TNX to kristaps! Thread closed!