HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   courier-imap/pop3d not work with listening to all address (http://www.howtoforge.com/forums/showthread.php?t=38190)

fwstyle 13th August 2009 19:18

courier-imap/pop3d not work with listening to all address
 
Hi everyone!

I have follow The Perfect Server - Ubuntu 9.04 [ISPConfig 3] and everything works fine exacpt courier-imap/pop3d.

The problem is simply cant access imap and pop3 from external host while working fine with squirrelmail. And I check netstat the port listening correctly.

Base on trial and error, i changed the ADDRESS to single IP and it just work immediately.

My server have 2 IP run on same interface. Actually i am ok with accessing pop3/imap with 1 IP only. Just after my ad-hoc solution ISPConfig Monitor state my pop3 server not running correctly.

Anyone have the same issue and please suggest the right solution.

falko 14th August 2009 12:48

What are the outputs of
Code:

ifconfig
,
Code:

netstat -tap
, and
Code:

iptables -L
?

fwstyle 14th August 2009 13:00

ifconfig
Quote:

eth0 Link encap:Ethernet HWaddr 00:11:25:ac:ab:26
inet addr:210.245.150.130 Bcast:210.245.150.255 Mask:255.255.255.0
inet6 addr: fe80::211:25ff:feac:ab26/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1335465 errors:0 dropped:0 overruns:0 frame:0
TX packets:643173 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1392847010 (1.3 GB) TX bytes:87377290 (87.3 MB)

eth0:1 Link encap:Ethernet HWaddr 00:11:25:ac:ab:26
inet addr:210.245.150.131 Bcast:210.245.150.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:351286 errors:0 dropped:0 overruns:0 frame:0
TX packets:351286 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:56188266 (56.1 MB) TX bytes:56188266 (56.1 MB)

netstat -tap
Quote:

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.localdo:10024 *:* LISTEN 25432/amavisd (mast
tcp 0 0 localhost.localdo:10025 *:* LISTEN 25372/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 25166/mysqld
tcp 0 0 *:http-alt *:* LISTEN 9532/apache2
tcp 0 0 *:www *:* LISTEN 9532/apache2
tcp 0 0 210.245.150.130:domain *:* LISTEN 26232/mydns
tcp 0 0 localhost.locald:domain *:* LISTEN 26232/mydns
tcp 0 0 *:ftp *:* LISTEN 26226/pure-ftpd (SE
tcp 0 0 *:ssh *:* LISTEN 1929/sshd
tcp 0 0 *:smtp *:* LISTEN 25372/master
tcp 0 0 *:https *:* LISTEN 9532/apache2
tcp 0 0 localhost.localdo:40150 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:mysql localhost.localdo:40171 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:mysql localhost.localdo:40162 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:mysql localhost.localdo:58997 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:58991 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:40165 localhost.localdo:mysql ESTABLISHED 28415/smtpd
tcp 0 0 localhost.localdo:58975 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:mysql localhost.localdo:40170 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40149 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58980 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:mysql localhost.localdo:40173 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40175 localhost.localdo:mysql ESTABLISHED 28416/smtpd
tcp 0 0 localhost.localdo:mysql localhost.localdo:40166 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40167 localhost.localdo:mysql ESTABLISHED 28414/proxymap
tcp 0 248 210.245.150.130:ssh 059148210078.ctine:4792 ESTABLISHED 27584/0
tcp 0 0 localhost.localdo:40163 localhost.localdo:mysql ESTABLISHED 28414/proxymap
tcp 0 0 localhost.localdo:58981 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:mysql localhost.localdo:40174 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:10025 localhost.localdo:35995 TIME_WAIT -
tcp 0 0 localhost.localdo:mysql localhost.localdo:40163 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40171 localhost.localdo:mysql ESTABLISHED 28475/cleanup
tcp 0 0 localhost.localdo:40174 localhost.localdo:mysql ESTABLISHED 28416/smtpd
tcp 0 0 localhost.localdo:40148 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:40147 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58997 localhost.localdo:mysql ESTABLISHED 28408/amavisd (ch5-
tcp 0 0 localhost.localdo:40164 localhost.localdo:mysql ESTABLISHED 28415/smtpd
tcp 0 0 localhost.localdo:40173 localhost.localdo:mysql ESTABLISHED 28416/smtpd
tcp 0 0 localhost.localdo:40170 localhost.localdo:mysql ESTABLISHED 28417/trivial-rewri
tcp 0 0 localhost.localdo:40172 localhost.localdo:mysql ESTABLISHED 28416/smtpd
tcp 0 0 localhost.localdo:58992 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:40162 localhost.localdo:mysql ESTABLISHED 28418/trivial-rewri
tcp 0 0 localhost.localdo:mysql localhost.localdo:40161 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:58983 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58974 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:mysql localhost.localdo:40167 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:mysql localhost.localdo:40168 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40161 localhost.localdo:mysql ESTABLISHED 28414/proxymap
tcp 0 0 localhost.localdo:58984 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58993 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58988 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:49252 localhost.localdo:mysql ESTABLISHED 26271/amavisd (ch17
tcp 0 0 localhost.localdo:40160 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58982 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:40168 localhost.localdo:mysql ESTABLISHED 28415/smtpd
tcp 0 0 localhost.localdo:mysql localhost.localdo:49252 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:mysql localhost.localdo:40172 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40166 localhost.localdo:mysql ESTABLISHED 28415/smtpd
tcp 0 0 localhost.localdo:mysql localhost.localdo:40164 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:mysql localhost.localdo:40175 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40157 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:10025 localhost.localdo:51667 TIME_WAIT -
tcp 0 0 localhost.localdo:58990 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 210.245.150.130:smtp 195.87.168.58:1466 ESTABLISHED 28416/smtpd
tcp 0 0 localhost.localdo:mysql localhost.localdo:40165 ESTABLISHED 25166/mysqld
tcp 0 0 localhost.localdo:40153 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58977 localhost.localdo:mysql TIME_WAIT -
tcp 0 0 localhost.localdo:58973 localhost.localdo:mysql TIME_WAIT -
tcp6 0 0 [::]:imaps [::]:* LISTEN 26137/couriertcpd
tcp6 0 0 [::]:pop3s [::]:* LISTEN 26173/couriertcpd
tcp6 0 0 [::]:pop3 [::]:* LISTEN 28511/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 26116/couriertcpd
tcp6 0 0 localhost:domain [::]:* LISTEN 26232/mydns
tcp6 0 0 [::]:ftp [::]:* LISTEN 26226/pure-ftpd (SE
tcp6 0 0 [::]:ssh [::]:* LISTEN 1929/sshd

iptables -L
Quote:

iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere


falko 15th August 2009 13:59

Looks ok. And it's working if you specify an IP in your email client, but not if you specify a hostname? That sounds as if the DNS record of the hostname is pointing to a wrong IP.


All times are GMT +2. The time now is 13:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.