Everything went smoothly, but inetd will not register imapd.
I am posting what I have done. Can anyone help make this work?
Caveat: I am using 10.1.3, and I do not have the SSL headers.
Here is the problem, in a nutshell. More details given below.
% sudo /usr/sbin/inetd -d
ADD : imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
FREE: imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
Here is a detailed list of what I did to install IMAP server.
% curl ftp://ftp.cac.washington.edu/imap/imap.tar.Z > imap.tar.Z
% uncompress imap.tar.Z
% tar xf imap.tar
% cd imap-2002d
% make osx SSLTYPE=none
% sudo mkdir -p /usr/local/bin
% sudo cp -p imapd/imapd /usr/local/bin/imapd
% sudo chown root:wheel /usr/local/bin/imapd
% sudo chmod 755 /usr/local/bin/imapd
% ls -ls /usr/local/bin/imapd
2792 -rwxr-xr-x 1 root wheel 1425988 Jul 28 19:07 /usr/local/bin/imapd
% grep imap /etc/services
imap 143/tcp imap2 imap4 #Interim Mail Access Protocol v2
imap 143/udp imap2 imap4 #Interim Mail Access Protocol v2
imap3 220/tcp #Interactive Mail Access Protocol v3
imap3 220/udp #Interactive Mail Access Protocol v3
imap4-ssl 585/tcp #IMAP4+SSL (use of 585 is not recommended,
imap4-ssl 585/udp # use 993 instead)
imaps 993/tcp
% grep imap /etc/inetd.conf
##imap4 stream tcp nowait root /usr/libexec/tcpd /usr/local/libexec/imapd
imap stream tcp nowait root /usr/libexec/tcpd /usr/local/bin/imapd
% ps -ax | grep inetd
239 ?? Ss 0:00.00 inetd
10114 std R+ 0:00.00 grep inetd
% sudo kill -HUP 239
I could not connect, so I killed inetd, and used debug mode.
% ls -ls /usr/sbin/inetd
48 -r-xr-xr-x 1 root wheel 24076 Dec 8 2001 /usr/sbin/inetd
% sudo /usr/sbin/inetd -d
ADD : imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
FREE: imap proto=tcp, wait=0, user=root builtin=0 server=/usr/libexec/tcpd
Apparently, imap is not registered. Using netstat -a confirms this.
Another post indcated this happens when it is missing from services,
but as you can see above, imap is a standard service inside Darwin.
Can anyone help me? Thanks!
|
You should use /sbin/service command to enable IMAP
cd /etc/xinetd.d
cp login imap
Edit imap and point server = to the location of imap binary,
e.g.,
server = /usr/local/libexec/imapd
then
sudo /sbin/service imap start