PDA

View Full Version : No IMAP



tino
01-29-2004, 07:27 AM
Hi,

The DA server I have is not running IMAP.
telnet server 143: No connection
telnet localhost 143: No connection
ps -A | grep imap: Nothing
/etc/xinit.d: imap is there:
-rw-r--r-- 1 root root 221 Jan 8 00:44 imap
(See; NO +x!)

Webmail IS working.

Should I "enable" IMAP in some way?

Tino

ProWebUK
01-29-2004, 07:42 AM
pico -w /etc/xinet.d/imap

check disable = no if it says yes switch it to no!

besides that - service xinetd restart (should do the trick)

Chris

tino
01-29-2004, 07:48 AM
Hi,

The file reads; disable = no

# default: on
# description: imapd
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

service xinetd start gives me:
xinetd: unrecognized service

service imap start gives me:
imap: unrecognized service

service imapd start gives me:
imapd: unrecognized service

I tried:
service --status-all | grep imap
SIOCADDRT: File exists

Any ideas?

Tino

ProWebUK
01-29-2004, 07:52 AM
Tried /etc/rc.d/init.d/xinetd restart

?

Chris

tino
01-29-2004, 07:56 AM
Hmm..

There is no xinetd in /etc/rc.d/init.d

That could be the problem. :-)

Could you post the contents of that file?!

Tino

ProWebUK
01-29-2004, 08:01 AM
#!/bin/bash
#
# xinetd This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
# xinetd has access control mechanisms, extensive \
# logging capabilities, the ability to make services \
# available based on time, and can place \
# limits on the number of servers that can be started, \
# among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

# Check that we are root ... so non-root users stop here
[ `id -u` = 0 ] || exit 1

# Check that networking is up.
[ "${NETWORKING}" = "yes" ] || exit 0

[ -f /usr/sbin/xinetd ] || exit 1
[ -f /etc/xinetd.conf ] || exit 1


RETVAL=0

prog="xinetd"

start(){
echo -n $"Starting $prog: "
# Need to get rid of localization for external services -
# it doesn't make much sense to have i18n on the server side here

LANG=en_US
LC_TIME=en_US
LC_ALL=en_US
LC_MESSAGES=en_US
LC_NUMERIC=en_US
LC_MONETARY=en_US
LC_COLLATE=en_US
export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
unset HOME MAIL USER USERNAME
daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
RETVAL=$?
echo
touch /var/lock/subsys/xinetd
return $RETVAL
}

stop(){
echo -n $"Stopping $prog: "
killproc $prog
RETVAL=$?
echo
rm -f /var/lock/subsys/xinetd
return $RETVAL

}

reload(){
echo -n $"Reloading configuration: "
killproc $prog -HUP
RETVAL=$?
echo
return $RETVAL
}

restart(){
stop
start
}

condrestart(){
[ -e /var/lock/subsys/xinetd ] && restart
return 0
}


# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $prog
;;
restart)
restart
;;
reload)
reload
;;
condrestart)
condrestart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
RETVAL=1
esac

exit $RETVAL

tino
01-29-2004, 08:06 AM
Hmm... Seems like I'm missing everyting that is related to xinitd.

(No /etc/xinitd.conf etc.)

So this won't work. (I tried it; created the file, chmodded it +x, started it; nothing)

I think I'll have to create my own start script for /usr/sbin/imapd or something.

Too bad... Isn't this all part of the default installation???

I'm on a 'rented' server, so I think this stuff should all be in place?!

Tino

tino
01-29-2004, 08:20 AM
Okay;

up2date -i xinetd

service xinet.d start

Voila!

Thanks for the input! Great!

Tino

ProWebUK
01-29-2004, 08:47 AM
ahhhh........ did you set imap to run on xinetd.... if not the normal setup may have required the initial install..... ;)

/usr/local/directadmin/scripts/imapd.sh

(that wont run as xinetd)

Chris

DirectAdmin Support
01-29-2004, 10:57 AM
Hello,

imapd runs using xinetd by default.

John

ProWebUK
01-29-2004, 11:04 AM
i thought you put up a guide to converting it from itself to xinetd the other day? or is this a recent chnage?

Chris

DirectAdmin Support
01-29-2004, 11:14 AM
Hello,

That's for pop3 :) (vm-pop3d)

John

ProWebUK
01-29-2004, 12:07 PM
Oooooooooh right! thought it was IMAP.... thats me not reading things properly again :p ;)

tino
01-29-2004, 02:42 PM
Hi,

This is my first DirectAdmin installation.

It's on a dedicated server I rent, so I have no clue how the machine is set up initially (well, I know it's RH9 of course) and how DirectAdmin was set up.

All my other servers run Ensim.

So I'm kinda new at this and this IMAP problem strikes me as funny. Isn't this services monitored in one way or the oter?

I've got one other server using the daemontools; It's a server with a DNS control panel etc. I created myself. The daemontools are monitoring the services on that box. Are the daemontools used by DirectAdmin as well? I know my service setup is quit different!

Well, at least it worked after I installed xinit.d by using up2date.

Tino

ProWebUK
01-29-2004, 03:31 PM
Xinetd is *not*monitored by DA, if you want monitoring for that I advise you to use SIM (checklist link in sig for guide)

Chris

tino
01-30-2004, 12:14 AM
I use SIM on my Esim servers. That works like a charm. :-)

On other servers I use the daemontools...

Tino

ProWebUK
01-30-2004, 07:48 AM
I use SIM on every server I work on and swear by it - amazing script!

Chris

zdrux
12-09-2004, 01:54 AM
im sorry to bring this thread back up but... Ive been having problems getting my Squirrel mail to run. After some reading of the threads, i was told to make sure imap is running.. but that I need xinetd started to run that...

..anyways, this is the thread where I stopped, the following advice was given:
-------------------
up2date -i xinetd

service xinet.d start
----------------------

which I did but get the error:

There was an SSL error: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
A common cause of this error is the system time being incorrect. Verify that the time on this system is correct.

.. after checking my system time it seems to be set correctly. Can anyone help me? I`m not a linux guru so please take it easy on me. I cannot do "service xinetd start/restart/stop" because it says unknown service or it doesnt exist.