No IMAP

tino

Verified User
Joined
Jan 8, 2004
Messages
92
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
 
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
 
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
 
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
 
Code:
#!/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
 
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
 
Okay;

up2date -i xinetd

service xinet.d start

Voila!

Thanks for the input! Great!

Tino
 
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
 
i thought you put up a guide to converting it from itself to xinetd the other day? or is this a recent chnage?

Chris
 
Oooooooooh right! thought it was IMAP.... thats me not reading things properly again :p ;)
 
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
 
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
 
I use SIM on my Esim servers. That works like a charm. :-)

On other servers I use the daemontools...

Tino
 
I use SIM on every server I work on and swear by it - amazing script!

Chris
 
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.
 
Back
Top