Subject: Installation on Fedora C2 for the dummy

From: "[email-masked]" <[email-masked]>
Date: Sat, 11 Sep 2004 11:44:24 +0200

# ##################################################
# Manual Installation on Fedora C2 from scartch for the dummy 
# ##################################################

//-------------------------------------------------------
// Compilation (without password encryption)
//-------------------------------------------------------

make lrh SSLTYPE=unix

$ [root@MyMachine imap-2004a]# make lrh SSLTYPE=unix
$ make sslunix
$ make[1]: Entering directory `/root/imap-2004a'
$ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$ + Building in PARTIAL compliance with RFC 3501 security
$ + requirements:
$ + Compliant:
$ ++ TLS/SSL encryption is supported
$ + Non-compliant:
$ ++ Unencrypted plaintext passwords are permitted
$ +
$ + In order to rectify this problem, you MUST build with:
$ ++ SSLTYPE=unix.nopwd
$ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$ 
$ Do you want to continue this build anyway? Type y or n please:
$ 

Reply YES , entrer [y]

[...]

Dont care about this message 
warning: the use of `tmpnam' is dangerous, better use `mkstemp'

Binaries from the build are:
imap-2004/mtest/mtest		c-client testbed program
imap-2004/ipopd/ipop2d		POP2 daemon
imap-2004/ipopd/ipop3d		POP3 daemon
imap-2004/imapd/imapd		IMAP4rev1 daemon

//-------------------------------------------------------
// Installation
//-------------------------------------------------------
I install all file in /usr/local/imap-2004
and i use this link /usr/local/imap for futur release  

/usr/local/
[...]
0 lrwxrwxrwx   1 root root   20 sep  9 19:44 imap -> /usr/local/imap-2004
4 drwxr-xr-x   2 root root 4096 sep 11 10:58 imap-2004
[...]

/usr/local/imap ( or /usr/local/imap-2004 )
-rwxr-xr-x  1 root root 1670507 sep 11 10:58 imapd
-rwxr-xr-x  1 root root 1600291 sep 11 10:58 ipop2d
-rwxr-xr-x  1 root root 1606147 sep 11 10:58 ipop3d

$ mkdir /usr/local/imap-2004 -p
$ cp ipopd/ipop2d		/usr/local/imap-2004/ipop2d
$ cp ipopd/ipop3d		/usr/local/imap-2004/ipop3d
$ cp imapd/imapd		/usr/local/imap-2004/imapd
$ ln /usr/local/imap-2004 /usr/local/imap -s

//-------------------------------------------------------
// Make it works 
//-------------------------------------------------------
create these files  

/etc/pam.d/pop

#%PAM-1.0
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth

/etc/pam.d/imap

#%PAM-1.0
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth

Add this in your /etc/xinetd.conf 
(remember i use a link for root directory) 

# WU IMAP 
service pop2
{
  # i dont need him   
	disable	= yes
	socket_type     = stream
	wait            = no
	user            = root
	server          = /usr/local/imap/ipop2d
}
service pop3
{
	# i need him
	# disable	= yes
	flags = IPv4
	disable = no
	log_on_success += HOST DURATION
	log_on_failure += HOST
	protocol = tcp
	socket_type     = stream
	wait            = no
	user            = root
	server          = /usr/local/imap/ipop3d
}

service imap
{
  # i need him  
	# disable	= yes
	socket_type     = stream
	wait            = no
	user            = root
	server          = /usr/local/imap/imapd
}

then start xinetd 
/etc/init.d/xinetd start

try netstat to see how is it started 

[root@MyMachine imap]# netstat -lp
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name   
[...]
tcp        0      0 *:pop3                  *:*                     LISTEN      24883/xinetd        
tcp        0      0 *:imap                  *:*                     LISTEN      24883/xinetd        
[...]
Sockets du domaine UNIX actives(seulement serveurs)
Proto RefCpt Indicatrs   Type       Etat          I-Node PID/Program name    Chemin
[...]

now it should work fine. 

It works for me ! 

The Box : 

[root@MyMachine imap]# uname -a
Linux MyMachine 2.6.8-1.521 #1 Mon Aug 16 09:01:18 EDT 2004 i686 athlon i386 GNU/Linux

No X system is on this stand-alone linux box 
This is a monitoring Box , no-body come one exept me.  

This mail is create to help other Fedora C2 user to install WU-Imap 
since , it s not the default software provided in the CD-Rom pack ! 
And the sources documentation is not realy talking about this OS ! 

Sorry for my poor english ! 
and Thanks for help 
[email-masked] 

PS : Mark C , i think it could be use full to add this (after rewrite)  in your documentation. 
i just use my (poor) previous experience to do that. i dinot find a real fedora How-to
they talk about Rpm and it works like "the sun rise" :))) , nothing for FC2 ! 
Re - thanks for help .

-- 
------------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/imap/c-client-list.html
------------------------------------------------------------------