An IMAP & POP daemon problem

An IMAP & POP daemon problem

Post by Mark » Mon, 06 Jan 2003 05:12:19



Sorry this is long, but I wanted to answer as many question as I could in
the first post.

I am running Red Hat 7.3.  I just added imap with the following command:

rpm -Uvh imap*.rpm

I do not have a CD drive installed in the server so I found the file from a
workstation and copied imap-2001a-10.i386.rpm onto the server.  The install
looked fine.  No messages other than the extraction indicator.

When I got a prompt back there were 2 instances of imapd, 1 instance of
ipop3d, and 0 instances of ipop2d.  I tried to query the server with Outlook
Express.  It failed with the following messaeg:

The connection to the server has failed. Account: '192.168.0.2', Server:
'192.168.0.2', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error:
10061, Error Number: 0x800CCC0E

I checked /etc/services and found:
pop2            109/tcp
pop2            109/udp
pop3            110/tcp
pop3            110/udp
...
imap            143/tcp
imap            143/udp

Looks okay to me.

The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have no
such file on my system.

I looked in /etc/rc.d/init.d/ to see if there was a script that I could use
to restart the servers.  I found none.

I was pretty sure that these services would not start on boot, so I rebooted
to test my theroy.

Upon boot the following processes were running:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  3 15:00 ?        00:00:04 init
root         2     1  0 15:00 ?        00:00:00 [keventd]
root         3     1  0 15:00 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 15:00 ?        00:00:00 [kswapd]
root         5     1  0 15:00 ?        00:00:00 [bdflush]
root         6     1  0 15:00 ?        00:00:00 [kupdated]
root         7     1  0 15:00 ?        00:00:00 [mdrecoveryd]
root        11     1  0 15:00 ?        00:00:00 [kjournald]
root        89     1  0 15:00 ?        00:00:00 [khubd]
root       193     1  0 15:00 ?        00:00:00 [scsi_eh_0]
root       199     1  0 15:01 ?        00:00:00 [kjournald]
root       200     1  0 15:01 ?        00:00:00 [kjournald]
root       201     1  0 15:01 ?        00:00:00 [kjournald]
root       202     1  0 15:01 ?        00:00:00 [kjournald]
root       203     1  0 15:01 ?        00:00:00 [kjournald]
root       597     1  0 15:01 ?        00:00:00 syslogd -m 0
root       602     1  0 15:01 ?        00:00:00 klogd -x
rpc        622     1  0 15:01 ?        00:00:00 portmap
rpcuser    650     1  0 15:01 ?        00:00:00 rpc.statd
root       800     1  0 15:01 ?        00:00:00 /usr/sbin/sshd
root       833     1  0 15:01 ?        00:00:00
xinetd -stayalive -reuse -pidfil
lp         855     1  0 15:01 ?        00:00:00 lpd Waiting
root       885     1  0 15:01 ?        00:00:00 sendmail: accepting
connections
root       904     1  0 15:01 ?        00:00:00 gpm -t ps/2 -m /dev/mouse
root       927     1  1 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     945   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     946   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     947   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     948   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     949   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     950   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     951   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     952   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
root       953     1  0 15:02 ?        00:00:00 crond
root       983     1  0 15:02 ?        00:00:00 smbd -D
root       988     1  0 15:02 ?        00:00:00 nmbd -D
daemon    1024     1  0 15:02 ?        00:00:00 /usr/sbin/atd
root      1032     1  0 15:02 ?        00:00:00 /bin/sh /etc/rc3.d/S99local
star
root      1034     1  0 15:02 tty1     00:00:00 /sbin/mingetty tty1
root      1035     1  0 15:02 tty2     00:00:00 /sbin/mingetty tty2
root      1036     1  0 15:02 tty3     00:00:00 /sbin/mingetty tty3
root      1037     1  0 15:02 tty4     00:00:00 /sbin/mingetty tty4
root      1038     1  0 15:02 tty5     00:00:00 /sbin/mingetty tty5
root      1039     1  0 15:02 tty6     00:00:00 /sbin/mingetty tty6
root      1042  1032 97 15:02 ?        00:00:17 setiathome
root      1043   800  0 15:02 ?        00:00:00 /usr/sbin/sshd
root      1044  1043  1 15:02 pts/0    00:00:00 -bash
root      1088  1044  0 15:02 pts/0    00:00:00 ps -ef

I appear to be correct.

I don't know how to restart the daemons by hand, so now I am stuck.  I tried
tho just run them and  # prompt, but they arrpear to be interactive.  I also
tried to nohup them into the background but they immediatley die.

TIA,

Mark C

 
 
 

An IMAP & POP daemon problem

Post by Mark » Mon, 06 Jan 2003 05:25:00


Sorry this is long, but I wanted to answer as many question as I could in
the first post.  (if this ais a second copy I am sorry I didn't see the
first one appear)

I am running Red Hat 7.3.  I just added imap with the following command:

rpm -Uvh imap*.rpm

I do not have a CD drive installed in the server so I found the file from a
workstation and copied imap-2001a-10.i386.rpm onto the server.  The install
looked fine.  No messages other than the extraction indicator.

When I got a prompt back there were 2 instances of imapd, 1 instance of
ipop3d, and 0 instances of ipop2d.  I tried to query the server with Outlook
Express.  It failed with the following messaeg:

The connection to the server has failed. Account: '192.168.0.2', Server:
'192.168.0.2', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error:
10061, Error Number: 0x800CCC0E

I checked /etc/services and found:
pop2            109/tcp
pop2            109/udp
pop3            110/tcp
pop3            110/udp
...
imap            143/tcp
imap            143/udp

Looks okay to me.

The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have no
such file on my system.

I looked in /etc/rc.d/init.d/ to see if there was a script that I could use
to restart the servers.  I found none.

I was pretty sure that these services would not start on boot, so I rebooted
to test my theroy.

Upon boot the following processes were running:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  3 15:00 ?        00:00:04 init
root         2     1  0 15:00 ?        00:00:00 [keventd]
root         3     1  0 15:00 ?        00:00:00 [ksoftirqd_CPU0]
root         4     1  0 15:00 ?        00:00:00 [kswapd]
root         5     1  0 15:00 ?        00:00:00 [bdflush]
root         6     1  0 15:00 ?        00:00:00 [kupdated]
root         7     1  0 15:00 ?        00:00:00 [mdrecoveryd]
root        11     1  0 15:00 ?        00:00:00 [kjournald]
root        89     1  0 15:00 ?        00:00:00 [khubd]
root       193     1  0 15:00 ?        00:00:00 [scsi_eh_0]
root       199     1  0 15:01 ?        00:00:00 [kjournald]
root       200     1  0 15:01 ?        00:00:00 [kjournald]
root       201     1  0 15:01 ?        00:00:00 [kjournald]
root       202     1  0 15:01 ?        00:00:00 [kjournald]
root       203     1  0 15:01 ?        00:00:00 [kjournald]
root       597     1  0 15:01 ?        00:00:00 syslogd -m 0
root       602     1  0 15:01 ?        00:00:00 klogd -x
rpc        622     1  0 15:01 ?        00:00:00 portmap
rpcuser    650     1  0 15:01 ?        00:00:00 rpc.statd
root       800     1  0 15:01 ?        00:00:00 /usr/sbin/sshd
root       833     1  0 15:01 ?        00:00:00
xinetd -stayalive -reuse -pidfil
lp         855     1  0 15:01 ?        00:00:00 lpd Waiting
root       885     1  0 15:01 ?        00:00:00 sendmail: accepting
connections
root       904     1  0 15:01 ?        00:00:00 gpm -t ps/2 -m /dev/mouse
root       927     1  1 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     945   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     946   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     947   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     948   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     949   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     950   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     951   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
apache     952   927  0 15:02 ?        00:00:00
/usr/sbin/httpd -DHAVE_ACCESS -D
root       953     1  0 15:02 ?        00:00:00 crond
root       983     1  0 15:02 ?        00:00:00 smbd -D
root       988     1  0 15:02 ?        00:00:00 nmbd -D
daemon    1024     1  0 15:02 ?        00:00:00 /usr/sbin/atd
root      1032     1  0 15:02 ?        00:00:00 /bin/sh /etc/rc3.d/S99local
star
root      1034     1  0 15:02 tty1     00:00:00 /sbin/mingetty tty1
root      1035     1  0 15:02 tty2     00:00:00 /sbin/mingetty tty2
root      1036     1  0 15:02 tty3     00:00:00 /sbin/mingetty tty3
root      1037     1  0 15:02 tty4     00:00:00 /sbin/mingetty tty4
root      1038     1  0 15:02 tty5     00:00:00 /sbin/mingetty tty5
root      1039     1  0 15:02 tty6     00:00:00 /sbin/mingetty tty6
root      1042  1032 97 15:02 ?        00:00:17 setiathome
root      1043   800  0 15:02 ?        00:00:00 /usr/sbin/sshd
root      1044  1043  1 15:02 pts/0    00:00:00 -bash
root      1088  1044  0 15:02 pts/0    00:00:00 ps -ef

I appear to be correct.

I don't know how to restart the daemons by hand, so now I am stuck.  I tried
tho just run them and  # prompt, but they arrpear to be interactive.  I also
tried to nohup them into the background but they immediatley die.

TIA,

Mark C

 
 
 

An IMAP & POP daemon problem

Post by dav.. » Mon, 06 Jan 2003 05:26:43



Quote:> When I got a prompt back there were 2 instances of imapd, 1 instance of
> ipop3d, and 0 instances of ipop2d.

That's quite strange since usually imap/pop are started by inetd
(or xinetd).

Quote:> The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have no
> such file on my system.

First check if there is xinetd installed in your system, if not, install
inetd or xinetd. Then configure it and execute.

See the documentation of the imap daemon you just installed to see how
to configure it in the inetd.conf file.

Davide

 
 
 

An IMAP & POP daemon problem

Post by John-Paul Stewar » Mon, 06 Jan 2003 05:34:29



> Sorry this is long, but I wanted to answer as many question as I could in
> the first post.

> I am running Red Hat 7.3.  I just added imap with the following command:

> rpm -Uvh imap*.rpm

> I do not have a CD drive installed in the server so I found the file from a
> workstation and copied imap-2001a-10.i386.rpm onto the server.  The install
> looked fine.  No messages other than the extraction indicator.

[snip]

Quote:> The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have no
> such file on my system.

inetd has laregly been replaced with xineted.  Try 'man 5
xinetd.conf' or 'man xinetd' for information about the
configuration file and the daemon itself.  Just like inetd
did, xinetd will start the services automatically as needed.
 
 
 

An IMAP & POP daemon problem

Post by Markku Kolkk » Mon, 06 Jan 2003 08:19:34



> I am running Red Hat 7.3.  I just added imap with the following command:
(...)
> The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have
> no such file on my system.

> I looked in /etc/rc.d/init.d/ to see if there was a script that I could
> use
> to restart the servers.  I found none.

Red Hat Linux (and many other current distributions) use xinetd instead of
inetd. You can use the "chkconfig" command to query the status of services
and set them up to start at boot. Try:
chkconfig --list

--
        Markku Kolkka

 
 
 

An IMAP & POP daemon problem

Post by Peter T. Breue » Mon, 06 Jan 2003 08:14:45



Quote:> rpm -Uvh imap*.rpm
> I do not have a CD drive installed in the server so I found the file from a
> workstation and copied imap-2001a-10.i386.rpm onto the server.  The install

??? is it an rpm for your distro? It must be.

Quote:> looked fine.  No messages other than the extraction indicator.
> When I got a prompt back there were 2 instances of imapd, 1 instance of
> ipop3d, and 0 instances of ipop2d.  I tried to query the server with Outlook

Those are too many. There should be none running. It should run out of
xinetd.

Is popd in the same rpm? I think it might be.

ANyway, you'll have to enable those services in xinetd, and allow
access via hosts.allow.

Quote:> The connection to the server has failed. Account: '192.168.0.2', Server:
> '192.168.0.2', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error:

Well, you tried an ssl wrapped service. Try plain pop3 instead!
Or install sslwrap and wrap it.

Quote:> The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have no
> such file on my system.

Yes you do. It's called xinetd.d.

Quote:> I looked in /etc/rc.d/init.d/ to see if there was a script that I could use
> to restart the servers.  I found none.

Stop looking so hard and making such a palavar. It's perfectly simple.
Enable the thing in inetd (that's a ggeneric term - yours will probably
be called xinetd), and allow access via hosts.allow. Open a firewall
hole if you're running one.

Peter

 
 
 

An IMAP & POP daemon problem

Post by Nico Kadel-Garci » Mon, 06 Jan 2003 09:54:20



Quote:> Sorry this is long, but I wanted to answer as many question as I could in
> the first post.

> I am running Red Hat 7.3.  I just added imap with the following command:

> rpm -Uvh imap*.rpm

> I do not have a CD drive installed in the server so I found the file from
a
> workstation and copied imap-2001a-10.i386.rpm onto the server.  The
install
> looked fine.  No messages other than the extraction indicator.

First: get the updates from the local RedHat mirror.

Second: run "/sbin/chkconfig --list | less" and see what it says for imap,
imaps, ipop, etc. In particular, inetd was replaced some time ago with the
safer and more configurable xinetd, so take a look under that for the
various services it turns on.

Third: You may need to enable the services you want and run "/sbin/service
xinetd restart". Do "man chkconfig service" for details on how to use that.

Quote:> When I got a prompt back there were 2 instances of imapd, 1 instance of
> ipop3d, and 0 instances of ipop2d.  I tried to query the server with
Outlook
> Express.  It failed with the following messaeg:

Sounds about right.

Quote:> The connection to the server has failed. Account: '192.168.0.2', Server:
> '192.168.0.2', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error:
> 10061, Error Number: 0x800CCC0E

> I checked /etc/services and found:
> pop2            109/tcp
> pop2            109/udp
> pop3            110/tcp
> pop3            110/udp
> ...
> imap            143/tcp
> imap            143/udp

> Looks okay to me.

> The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I have
no
> such file on my system.

> I looked in /etc/rc.d/init.d/ to see if there was a script that I could
use
> to restart the servers.  I found none.

> I was pretty sure that these services would not start on boot, so I
rebooted
> to test my theroy.

Those services are run by xinetd, and are started on a one-off basis when
xinetd detects someone connecting to that port. So you wouldn't see them
until or unless someone connects to them.

- Show quoted text -

Quote:> I appear to be correct.

> I don't know how to restart the daemons by hand, so now I am stuck.  I
tried
> tho just run them and  # prompt, but they arrpear to be interactive.  I
also
> tried to nohup them into the background but they immediatley die.

 
 
 

An IMAP & POP daemon problem

Post by Nico Kadel-Garci » Mon, 06 Jan 2003 09:55:39




> > When I got a prompt back there were 2 instances of imapd, 1 instance of
> > ipop3d, and 0 instances of ipop2d.

> That's quite strange since usually imap/pop are started by inetd
> (or xinetd).

> > The pop3 documentation I have run into rerfer to /etc/inetd.conf.  I
have no
> > such file on my system.

> First check if there is xinetd installed in your system, if not, install
> inetd or xinetd. Then configure it and execute.

His "rpm -Uvh" command would have failed if he didn't have xinetd: it's a
requirement for the imap RPM and his version of RedHat.
 
 
 

An IMAP & POP daemon problem

Post by Timo Voipi » Mon, 06 Jan 2003 21:06:53



> >The connection to the server has failed. Account: '192.168.0.2', Server:
> >'192.168.0.2', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error:

> Well, you tried an ssl wrapped service. Try plain pop3 instead!

No he didn't: "Protocol: POP3, Port: 110, Secure(SSL): No"

Which part of the word "no" you didn't understand?

--

GeekCode ver 3: GU>CC d s-: a--- C++ UL(+)$>+++$ P+>+++ L++(+) E- W++ N++
o? K? w O M- V- PS PE Y+ PGP+ t 5++ X R tv- b++(++++) DI+ D G e- h! r !y

 
 
 

An IMAP & POP daemon problem

Post by Peter T. Breue » Mon, 06 Jan 2003 21:21:53




>> >The connection to the server has failed. Account: '192.168.0.2', Server:
>> >'192.168.0.2', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error:

>> Well, you tried an ssl wrapped service. Try plain pop3 instead!
> No he didn't: "Protocol: POP3, Port: 110, Secure(SSL): No"

That's true.

Quote:> Which part of the word "no" you didn't understand?

Which of colon and comma have priority as binary separators
in resolving parse ambiguities? Look it up.

Peter

 
 
 

An IMAP & POP daemon problem

Post by the wharf r » Tue, 07 Jan 2003 00:08:15




>Sorry this is long, but I wanted to answer as many question as I could in
>the first post.

        Have you looked for error messages on the server?  /var/log/messages
and/or /var/log/mail.
 
 
 

1. Imap vs POP what are the pros & cons?


Assuming your question is in the Subject:, the pros and cons have
a lot to do with what your mail clients can use effectively.  It
certainly possible in many situations for a mail server to offer
both IMAP and POP to support different mail clients, or different
usage patterns.

--
------------------------------------------------------------------------
Timothy J. Lee
Unsolicited bulk or commercial email is not welcome.
No warranty of any kind is provided with this message.

2. stdint.h: abstract declarator compile errors

3. imap & pop on Linux under xinetd won't start

4. problems with HERCULES STINGRAY Pro

5. Shadows passwords & IMAP/POP

6. Samba's message command

7. POP/IMAP Config Problem

8. Perplexing memory loss problem

9. SlackWare POP Daemon Problem.

10. Options for X11 POP/IMAP Client?

11. Suggestions for setting up POP or IMAP server...

12. Cannot connect to mail server via pop/imap

13. IMAP/POP Vulnerability