Re: How to stop squirrelmail temporarily
--- Yuriy Kuznetsov <yuriy.kuznetsov@gmail.com> wrote:
> Try to run the following on on your box and see what processes are
> listen to
> those ports:
>
> # netstat -lnp
>
> Normally these ports are used by imapd - normal and secure
> connections.
Hi Yuriy,
On domU1 - the routing mail server
# netstat -lnp | grep perdition
tcp 0 0 0.0.0.0:995 0.0.0.0:*
LISTEN 2876/perdition.pop3
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN 2874/perdition.pop3
It is OK. Perdition needs port 110. I have no idea of port 995
# netstat -lnp | grep 993
tcp6 0 0 :::993 :::*
LISTEN 2846/couriertcpd
# netstat -lnp | grep 143
tcp6 0 0 :::143 :::*
LISTEN 2834/couriertcpd
Perdition also needs port 993 and 143. They are taken by courier.
# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 127.0.0.1:60000 0.0.0.0:*
LISTEN 2 695/postgrey.pid -
tcp 0 0 0.0.0.0:995 0.0.0.0:*
LISTEN 2 876/perdition.pop3
tcp 0 0 127.0.0.1:10024 0.0.0.0:*
LISTEN 2 583/amavisd (maste
tcp 0 0 127.0.0.1:10025 0.0.0.0:*
LISTEN 2 938/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:*
LISTEN 2 647/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:*
LISTEN 2 938/master
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN 2 874/perdition.pop3
tcp 0 0 127.0.0.1:783 0.0.0.0:*
LISTEN 2 704/spamd.pid
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 2 437/portmap
tcp 0 0 0.0.0.0:465 0.0.0.0:*
LISTEN 2 938/master
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN 2 938/master
tcp 0 0 127.0.0.1:635 0.0.0.0:*
LISTEN 3 003/famd
tcp6 0 0 :::993 :::*
LISTEN 2 846/couriertcpd
tcp6 0 0 :::143 :::*
LISTEN 2 834/couriertcpd
tcp6 0 0 :::80 :::*
LISTEN 3 027/apache2
tcp6 0 0 :::22 :::*
LISTEN 2 952/sshd
udp 0 0 0.0.0.0:111 0.0.0.0:*
2 437/portmap
# /etc/init.d/courier-imap stop
Stopping Courier IMAP server: imapd.
# netstat -lnp | grep 993
tcp6 0 0 :::993 :::*
LISTEN 2
Is port 993 free?? Or disappeared?
# netstat -lnp | grep 143
tcp 0 0 0.0.0.0:143 0.0.0.0:*
LISTEN 3124/perdition.imap
Now port 143 is taken by perdition
# netstat -lnp | grep 993
tcp6 0 0 :::993 :::*
LISTEN 2846/couriertcpd
Why port 993 is still taken by courier? The latter is NOT running.
# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 127.0.0.1:60000 0.0.0.0:*
LISTEN 2695/postgrey.pid -
tcp 0 0 0.0.0.0:995 0.0.0.0:*
LISTEN 2876/perdition.pop3
tcp 0 0 127.0.0.1:10024 0.0.0.0:*
LISTEN 2583/amavisd (maste
tcp 0 0 127.0.0.1:10025 0.0.0.0:*
LISTEN 2938/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:*
LISTEN 2647/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:*
LISTEN 2938/master
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN 2874/perdition.pop3
tcp 0 0 127.0.0.1:783 0.0.0.0:*
LISTEN 2704/spamd.pid
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 2437/portmap
tcp 0 0 0.0.0.0:465 0.0.0.0:*
LISTEN 2938/master
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN 2938/master
tcp 0 0 127.0.0.1:635 0.0.0.0:*
LISTEN 3003/famd
tcp6 0 0 :::993 :::*
LISTEN 2846/couriertcpd
tcp6 0 0 :::80 :::*
LISTEN 3027/apache2
tcp6 0 0 :::22 :::*
LISTEN 2952/sshd
udp 0 0 0.0.0.0:111 0.0.0.0:*
2437/portmap
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program
name Path
unix 2 [ ACC ] STREAM LISTENING 3412 2647/mysqld
/var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 4173
2824/authdaemond /var/run/courier/authdaemon/socket.tmp
unix 2 [ ACC ] STREAM LISTENING 4479 2938/master
public/cleanup
unix 2 [ ACC ] STREAM LISTENING 4486 2938/master
private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 4491 2938/master
private/rewrite
unix 2 [ ACC ] STREAM LISTENING 4495 2938/master
private/bounce
unix 2 [ ACC ] STREAM LISTENING 4499 2938/master
private/defer
unix 2 [ ACC ] STREAM LISTENING 4503 2938/master
private/trace
unix 2 [ ACC ] STREAM LISTENING 4507 2938/master
private/verify
unix 2 [ ACC ] STREAM LISTENING 4511 2938/master
public/flush
unix 2 [ ACC ] STREAM LISTENING 4515 2938/master
private/proxymap
unix 2 [ ACC ] STREAM LISTENING 4519 2938/master
private/smtp
unix 2 [ ACC ] STREAM LISTENING 4523 2938/master
private/relay
unix 2 [ ACC ] STREAM LISTENING 4527 2938/master
public/showq
unix 2 [ ACC ] STREAM LISTENING 4531 2938/master
private/error
unix 2 [ ACC ] STREAM LISTENING 4535 2938/master
private/discard
unix 2 [ ACC ] STREAM LISTENING 4539 2938/master
private/local
unix 2 [ ACC ] STREAM LISTENING 4543 2938/master
private/virtual
unix 2 [ ACC ] STREAM LISTENING 4547 2938/master
private/lmtp
unix 2 [ ACC ] STREAM LISTENING 4551 2938/master
private/anvil
unix 2 [ ACC ] STREAM LISTENING 4555 2938/master
private/scache
unix 2 [ ACC ] STREAM LISTENING 4559 2938/master
private/maildrop
unix 2 [ ACC ] STREAM LISTENING 4563 2938/master
private/uucp
unix 2 [ ACC ] STREAM LISTENING 4567 2938/master
private/ifmail
unix 2 [ ACC ] STREAM LISTENING 4571 2938/master
private/bsmtp
unix 2 [ ACC ] STREAM LISTENING 4575 2938/master
private/scalemail-backend
unix 2 [ ACC ] STREAM LISTENING 4579 2938/master
private/mailman
unix 2 [ ACC ] STREAM LISTENING 4583 2938/master
private/amavis
unix 2 [ ACC ] STREAM LISTENING 4592 2938/master
public/pre-cleanup
unix 2 [ ACC ] STREAM LISTENING 3333 2583/amavisd
(maste /var/run/amavis/amavisd.sock
# /etc/init.d/perdition stop
Stopped /usr/sbin/perdition.pop3 (pid 2874).
Stopped /usr/sbin/perdition.pop3s (pid 2876).
No /usr/sbin/perdition.imap4 found running; none killed.
No /usr/sbin/perdition.imaps found running; none killed.
# ps aux | grep perdition
root 3114 0.0 2.0 2864 692 pts/2 S+ 11:02 0:00 grep
perdition
# kill -9 692
-bash: kill: (692) - No such process
# kill -9 2864
-bash: kill: (2864) - No such process
# kill -9 3114
-bash: kill: (3114) - No such process
# /etc/init.d/perdition start
Starting /usr/sbin/perdition.pop3...
Starting /usr/sbin/perdition.pop3s...
Starting /usr/sbin/perdition.imap4...
Starting /usr/sbin/perdition.imaps...
# tail -f /var/log/syslog | grep perdition
Dec 24 11:03:38 xen13 perdition[3121]: version=1.17, add_domain="",
- snip -
Dec 24 11:03:38 xen13 perdition[3124]: vanessa_socket_daemon_setid:
uid=65534 eu id=65534 gid=65534 egid=65534
Dec 24 11:03:38 xen13 perdition[3127]:
vanessa_socket_server_bind_sockaddr_in: b ind: Address already in use
Dec 24 11:03:38 xen13 perdition[3127]: vanessa_socket_server_bind:
vanessa_socke t_server_bind
Dec 24 11:03:38 xen13 perdition[3127]: main: vanessa_socket_server_bind
Dec 24 11:03:38 xen13 perdition[3127]: Fatal error listening for
connections. Ex iting.
Still fail.
B.R.
Stephen L
>
>
>
> On Wed, Dec 24, 2008 at 4:52 AM, Stephen Liu <satimis@yahoo.com>
> wrote:
>
> > > On Wed, 2008-12-24 at 11:38 +0800, Stephen Liu wrote:
> > >
> > > > I need ports 143 and 993 for another test. I suspect
> SquirrelMail
> > > > taking up those ports.
> > >
> > > Your imap server will listen on those ports; Squirrelmail will
> > > connect
> > > to one of those, but not listen on it.
> >
> >
> >
> > Hi Richard,
> >
> >
> > Thanks for your advice.
> >
> >
> > I'm testing perdition: Mail Retrieval Proxy
> > http://www.vergenet.net/linux/perdition/
> >
> >
> > but can't get it started;
> >
> > # tail -9 /var/log/syslog | grep perdition
> > ......
> > vanessa_socket_server_bind_sockaddr_in: bind: Address already in
> use
> > Dec 24 03:37:44 xen13 perdition[3247]: vanessa_socket_server_bind:
> > vanessa_socket_server_bind
> > Dec 24 03:37:44 xen13 perdition[3247]: main:
> vanessa_socket_server_bind
> > Dec 24 03:37:44 xen13 perdition[3247]: Fatal error listening for
> > connections. Exiting.
> >
> >
> > perdition uses ports 143 and 993
> >
> >
> > B.R.
> > Stephen L
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org
> >
> >
>
Send instant messages to your online friends http://uk.messenger.yahoo.com
Reply to: