View Single Post
  #4  
Old 17th April 2013, 17:47
danhansen@denmark danhansen@denmark is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 176
Thanks: 36
Thanked 3 Times in 3 Posts
Exclamation warning: hostname localhost does not resolve to address ::1: No address associated wi

---------------------------------------------------------------------------------------------
Internet Service Information:
Internet Line/Used only for Internet-Servers.
Static/Fixed public IP
All ports opened in router --> "ispserverip"
Primary nameserver --> ns1.mynameserver.tld
Secondary nameserver --> ns2.somedanishdomainservice.tld

System Information:
Ubuntu Server 12.04 (upgraded - do-release-upgrade)
ISPconfig 3 v.3.0.5.2
Single Server Setup (running primary nameserver)
Tutorial: The Perfect Server - ISPConfig3 - Ubuntu Server 10.04
Downloaded Manual for ISPConfig3 by Falko Timme
---------------------------------------------------------------------------------------------


"warning: hostname localhost does not resolve to address ::1: No address associated with hostname":

This problem has been solved! I upgraded from Ubuntu Server 10.04 --> 12.04. In "/etc/hosts" some changed was made during this upgrade. Comment out these changes and the system will work again - I will insert the fix beneath so that other may benefit of this fix:

127.0.0.1 localhost
192.168.1.200 server1.mydomain.dk server1


# The following lines are desirable for IPv6 capable hosts (Comment out!)
#::1 localhost ip6-localhost ip6-loopback (Comment out!)
#fe00::0 ip6-localnet (Comment out!)
#ff00::0 ip6-mcastprefix (Comment out!)
#ff02::1 ip6-allnodes (Comment out!)
#ff02::2 ip6-allrouters (Comment out!)



But, still I'm not receiving mail from outside. I'm able to send mail from one client mailbox to another (on the same ispserver) - and from a client mailbox to an outside email such as gmail.com. In the mail-log I cant se the mailserver receive the mail or even try to handle the mail. I can't solve the problem, but I think it may be because of DNS problems! I will insert my DNS records for the domain beneath - maybe you can tell me what's wrong?
As a test I created the a "MX-Backup" which in some cases is the solution my ISP tell me! No change at all!:

(mydomaind.tld) mail.(mydomaind.tld) 10
(mydomaind.tld) backup-mx.post.tele.dk 20



DNS-records for my domain "mydomain.dk":

A mydomain.dk. 188.182.188.xx 0 3600
A mail 188.182.188.xx 0 3600
A ns1 188.182.188.xx 0 3600
A server1 188.182.188.xx 0 3600
A www 188.182.188.xx 0 3600
MX mydomain.dk. mail.mydomain.dk. 10 3600
MX mydomain.dk. backup-mx.post.tele.dk. 20 3600
NS mydomain.dk. ns1.mydomain.dk. 0 3600
NS mydomain.dk. ns2.gratisdns.dk. 0 3600


The content of: "/etc/postfix/main.cf"
root@server1:/home/administrator# vi /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

stname = server1.mydomain.dk
"/etc/postfix/main.cf" 71L, 3373C



Content of "/etc/resolv.conf:

which I think looks funny. Nameservers, should be 8.8.8.8 8.8.4.4 or is this different here? Domain "home"?? Why, wasn't the hostname server1?

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
nameserver 192.168.1.1
domain home
search home



Or maybe this:
"ISPserver > System > Server Config > Mail"

ERROR
Please specify valid RBL hostnames.



netstat -tap and iptables -L
Code:
netstat -tap:

root@server1:/home/administrator# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost:10024         *:*                     LISTEN      1189/amavisd (maste
tcp        0      0 localhost:10025         *:*                     LISTEN      2227/master
tcp        0      0 *:mysql                 *:*                     LISTEN      1042/mysqld
tcp        0      0 localhost:spamd         *:*                     LISTEN      1295/spamd.pid
tcp        0      0 *:http-alt              *:*                     LISTEN      2352/apache2
tcp        0      0 *:http                  *:*                     LISTEN      2352/apache2
tcp        0      0 *:tproxy                *:*                     LISTEN      2352/apache2
tcp        0      0 *:8082                  *:*                     LISTEN      2352/apache2
tcp        0      0 *:ftp                   *:*                     LISTEN      2249/pure-ftpd (SER
tcp        0      0 server1.mydomain.:domain *:*                     LISTEN      1038/named
tcp        0      0 localhost:domain        *:*                     LISTEN      1038/named
tcp        0      0 *:ssh                   *:*                     LISTEN      819/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN      2227/master
tcp        0      0 localhost:953           *:*                     LISTEN      1038/named
tcp        0      0 *:https                 *:*                     LISTEN      2352/apache2
tcp        0      0 localhost:50426         localhost:mysql         ESTABLISHED 10975/amavisd (ch13
tcp        0      0 localhost:33815         localhost:ftp           TIME_WAIT   -
tcp        0      0 localhost:mysql         localhost:50426         ESTABLISHED 1042/mysqld
tcp        0      0 server1.mydomain.dk:http 192.168.1.100:38904     TIME_WAIT   -
tcp        0      0 server1.mydomain:ssh  192.168.1.100:42735     ESTABLISHED 3971/sshd: administ
tcp        0      0 localhost:50343         localhost:mysql         ESTABLISHED 10761/amavisd (ch14
tcp        0    464 server1.mydomain.dk:ssh  192.168.1.14:3228       ESTABLISHED 13271/sshd: adminis
tcp        0      0 localhost:mysql         localhost:50343         ESTABLISHED 1042/mysqld
tcp        0      0 localhost:http          localhost:48214         TIME_WAIT   -
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      2088/couriertcpd
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      2038/couriertcpd
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      2249/pure-ftpd (SER
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      1038/named
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      819/sshd
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      2227/master
tcp6       0      0 ::1%3373952:953         [::]:*                  LISTEN      1038/named
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      2066/couriertcpd
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      2116/couriertcpd
You have new mail in /var/mail/root
root@server1:/home/administrator#


iptables -L:

root@server1:/home/administrator# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain fail2ban-ssh (0 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere
root@server1:/home/administrator#

I can't find anymore to list - I'm completely lost. Had technical support from ISP almost 4 hours and the line is ok. Nameserver, Webserver, FTPserver, Database - everything works but the Mailserver.
Maybe a third re-installation of the ISPserver will make the mail work as well. Please, if you have any idea of what is wrong, please help me.

Kind Regards,
Dan

Last edited by danhansen@denmark; 17th April 2013 at 20:12. Reason: Just thought of a "error" in CP + list netstat -tap & iptables -L
Reply With Quote