LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2006, 09:08 PM   #1
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Rep: Reputation: 15
QMaill - can only POP3 from localhost..


Hello All,


I have a Qmailrocks Build of qmail, and has been running faultless for many many months.. uptime of well over 250 days.. anyway.

"something" has happend.

and now I can't connect on the main IP interface... or should I say, I can't get a response from Qmail, on eiher port 25, or 110.. but the TCP connction is made.. (I can see it's established from a netstat) I can't see another deamon running on those ports.

however, to localhost, I can telnet in, and get a welcome message on both 110, 25

The curious thing is, that webserver is still working, as is SSH thankfully..

Can some kind soul, please give me some clues, as to where to look. to start and sort this out... if there was another deamon running, sure I would get bind errors ? as it wouldn't bind correctly ?

TIA,

MarkA




1795 root 0.5 % /usr/src/webmin-1.190/proc/index_cpu.cgi
1869 root 0.5 % /usr/bin/mc -P /tmp/mc-root/mc.pwd.1395
181 nobody 0.2 % /usr/sbin/httpd
182 nobody 0.2 % /usr/sbin/httpd
183 nobody 0.2 % /usr/sbin/httpd
184 nobody 0.2 % /usr/sbin/httpd
186 nobody 0.2 % /usr/sbin/httpd
1 root 0.0 % init [3]
2 root 0.0 % [keventd]
3 root 0.0 % [ksoftirqd_CPU0]
4 root 0.0 % [kswapd]
5 root 0.0 % [bdflush]
6 root 0.0 % [kupdated]
10 root 0.0 % [mdrecoveryd]
11 root 0.0 % [raid1d]
12 root 0.0 % [raid1d]
13 root 0.0 % [raid1d]
14 root 0.0 % [raid1d]
15 root 0.0 % [kjournald]
45 root 0.0 % [kjournald]
46 root 0.0 % [kjournald]
47 root 0.0 % [kjournald]
68 root 0.0 % /usr/sbin/syslogd -r -m 0
71 root 0.0 % /usr/sbin/klogd -c 3 -x
120 root 0.0 % /usr/sbin/inetd
124 root 0.0 % /usr/sbin/sshd
132 root 0.0 % /usr/sbin/crond -l10
137 root 0.0 % /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/ ...
161 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
162 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
163 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
164 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
165 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
166 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
167 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
168 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
169 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
170 mysql 0.0 % /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
171 root 0.0 % /usr/sbin/httpd
173 root 0.0 % /usr/sbin/smbd -D
175 root 0.0 % /usr/sbin/smbd -D
176 root 0.0 % /usr/sbin/nmbd -D
190 root 0.0 % /usr/local/libexec/couriertcpd -address=0 -stderrlogger=/usr/local/sbin/courierl ...
194 root 0.0 % /usr/local/sbin/courierlogger imapd
200 root 0.0 % /usr/local/libexec/couriertcpd -address=0 -stderrlogger=/usr/local/sbin/courierl ...
204 root 0.0 % /usr/local/sbin/courierlogger imapd-ssl
209 spamd 0.0 % /usr/bin/spamd -x -u spamd -H /home/spamd -d --pidfile=/var/run/spamd.pid
211 root 0.0 % /usr/bin/perl /usr/src/webmin-1.190/miniserv.pl /etc/webmin/miniserv.conf
214 root 0.0 % snmpd
217 root 0.0 % /usr/bin/perl -w /usr/local/mrtg-2/bin/./mrtg /etc/mrtg/mrtg.cfg
218 root 0.0 % fetchmail --invisible -d 65 -f /etc/fetchmailrc
219 root 0.0 % /sbin/agetty 38400 tty1 linux
220 root 0.0 % /sbin/agetty 38400 tty2 linux
221 root 0.0 % /sbin/agetty 38400 tty3 linux
223 root 0.0 % /sbin/agetty 38400 tty5 linux
224 root 0.0 % /sbin/agetty 38400 tty6 linux
225 root 0.0 % /bin/sh /command/svscanboot
227 root 0.0 % svscan /service
228 root 0.0 % readproctitle service errors: .................................................. ...
229 root 0.0 % supervise qmail-send
230 root 0.0 % supervise log
231 root 0.0 % supervise qmail-smtpd
232 root 0.0 % supervise log
233 root 0.0 % supervise qmail-pop3d
234 root 0.0 % supervise log
392 root 0.0 % /sbin/agetty 38400 tty4 linux
1392 root 0.0 % sshd: root@pts/0
1395 root 0.0 % -bash
1793 root 0.0 % /usr/bin/perl /usr/src/webmin-1.190/miniserv.pl /etc/webmin/miniserv.conf
1849 qmails 0.0 % qmail-send
1851 root 0.0 % qmail-lspawn ./Maildir
1852 qmailr 0.0 % qmail-rspawn
1853 qmailq 0.0 % qmail-clean
1854 qmaill 0.0 % multilog t s100000 n40 /var/log/qmail/qmail-send
1857 vpopmail 0.0 % /usr/local/bin/tcpserver -v -R -l g6rza.org.uk -x /etc/tcp.smtp.cdb -c 30 -u 100 ...
1862 qmaill 0.0 % multilog t s100000 n40 /var/log/qmail/qmail-smtpd
1865 root 0.0 % tcpserver -H -R -v -c100 0 110 qmail-popup g6rza.org.uk /home/vpopmail/bin/vchkp ...
1866 qmaill 0.0 % multilog t s100000 n20 /var/log/qmail/qmail-pop3d
1871 root 0.0 % bash -rcfile .bashrc
1891 nobody 0.0 % /usr/sbin/httpd
1896 root 0.0 % sh -c ps --cols 500 -eo user,ruser,group,rgroup,pid,ppid,pgid,pcpu,vsz,nice,etim ...
1897 root 0.0 % ps --cols 500 -eo user,ruser,group,rgroup,pid,ppid,pgid,pcpu,vsz,nice,etime,time ...
1898 root 0.0 % /usr/bin/perl /usr/src/webmin-1.190/miniserv.pl /etc/webmin/miniserv.conf

Last edited by Mark007; 01-08-2006 at 07:28 AM.
 
Old 01-08-2006, 07:27 AM   #2
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Original Poster
Rep: Reputation: 15
Anyone ?????
 
Old 01-09-2006, 05:53 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Start with netstat -tlnp
This will list what is listening to what ports..
You will probably have 0.0.0.0:25 and 0.0.0.0:110 listed.

Then list your iptables rules with iptables-save | less
Look for REDIRECTS etc applying to those ports.

If necessary, add a REDIRECT rule to forward incoming packets to localhost to get it running until you have sorted the problem, eg
iptables -t nat -i ethxx -p tcp -m multiport --dports 25,110,143,993,995 -j REDIRECT

Start with a bare config file for qmail, then start a second daemon listening on port 225, and test to make sure it works.
If it works ok, use the original config file with port 225.
If it works ok, something is peculiar to port 25.. start with firewall rules, then with qmail off, ping the port to see if it responds, etc..

If it doesn't work, something is peculiar in your config file..
 
Old 01-09-2006, 06:54 AM   #4
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Original Poster
Rep: Reputation: 15
Fault resolved.

Many thanks for the reply,

I managed to find and resolve the problem, with a -lot- of digging and checking stuff out.. must of spent most of sunday doing this, veriyfying the extact nature of the fault, which eventually was found to be a very slow intail response on both pop3 and smtp.

I was right to note there was no other deamons running..

and indeed, only tcpserver etc was listning on the correct ports.

I do not have a firewall installed, as it's behind a cisco box. So it was nothing to do that as I pop/smtp locally

It turns out, it's a "feature" that sometimes manifests itself for some unkown reason, so a quick mod of some config files,

and fault resolved.


for the future, I think I need to find a "flow" diagram of what dose what, what is passed to each process etc etc within Qmail from intial connection, to delivery of perticular message.. - more googling !


MarkA
 
Old 01-09-2006, 08:48 AM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
It can be a reverse auth problem, where an auth ident is sent back to the client on port 135. Of course this won't work, so it waits for it to time out.

I've made iptables rules to --reject-with tcp-reset the packets and it's whizz bang fast!
 
  


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
Sendmail connects only to localhost lantek Linux - Software 4 12-30-2005 03:24 PM
Telnet & FTP localhost connects then hangs Derekeigentek Linux - Newbie 3 12-30-2005 11:46 AM
Samba connects @ localhost but not @ netbios name biglaz Linux - Networking 5 10-19-2004 02:22 PM
localhost.localdomain Problems Snabber Linux - Networking 2 09-11-2003 02:56 AM
How do I config Sendmail to accept connects /only/ from localhost marvin Linux - Security 4 05-09-2001 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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