How To Install courier-imap, courier-authlib, And maildrop On Fedora, RedHat, CentOS
How To Install courier-imap, courier-authlib, And maildrop On Fedora, RedHat, CentOSVersion 1.0 For some reason there are no Courier packages (courier-imap, courier-authlib, maildrop) available on RedHat-based distributions (RedHat, Fedora, CentOS), and the only third-party repository that had such packages seems to have closed (enlartenment.com). Therefore this tutorial explains how you can create and install your own Courier rpm packages from the sources, and I provide download links for my Courier rpm packages that I compiled on Fedora 8 (i386) so that you can save some time. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI have tried this on a Fedora 8 (i386) system; it should work for RedHat and CentOS as well. If you are on an x86_64 system, replace all references to i386 in this tutorial with x86_64.
2 Installing PrerequisitesBefore we can compile the Courier packages, we need some prerequisites such as compilers, development libraries, etc. which we can install like this: yum groupinstall 'Development Tools' yum groupinstall 'Development Libraries' yum install rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel
3 Creating A Non-Priviledged User AccountRPM packages should not be built as root; courier-imap will even refuse to compile if it detects that the compilation is run as the root user. Therefore we create a normal user account now (falko in this example) and give him a password: useradd -m -s /bin/bash falko We will need the sudo command later on so that the user falko can compile and install the rpm packages. But first, we must allow falko to run all commands using sudo: Run visudo In the file that opens there's a line root ALL=(ALL) ALL. Add a similar line for falko just below that line:
4 Building courier-authlib, courier-imap, And maildropNow we are ready to build our rpm package. First become the user falko: su falko Next we create our build environment: mkdir $HOME/rpm echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros Now we create a downloads directory and download the source files from http://www.courier-mta.org/download.php: mkdir $HOME/downloads wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.60.2.tar.bz2
4.1 courier-authlibNow (still in $HOME/downloads) we can build courier-authlib: sudo rpmbuild -ta courier-authlib-0.60.2.tar.bz2 After the build process, the rpm packages can be found in $HOME/rpm/RPMS/i386 ($HOME/rpm/RPMS/x86_64 if you are on an x86_64 system): cd $HOME/rpm/RPMS/i386 The command ls -l shows you the available rpm packages: [falko@server1 i386]$ ls -l Select the ones you want to install, and install them like this: sudo rpm -ivh courier-authlib-0.60.2-1.fc8.i386.rpm
4.2 courier-imapNow we go back to our downloads directory: cd $HOME/downloads and run rpmbuild again, this time without sudo, otherwise the compilation will fail because it was run as root: rpmbuild -ta courier-imap-4.2.1.tar.bz2 After the build process, the rpm packages can be found in $HOME/rpm/RPMS/i386 ($HOME/rpm/RPMS/x86_64 if you are on an x86_64 system): cd $HOME/rpm/RPMS/i386 The command ls -l shows you the available rpm packages: [falko@server1 i386]$ ls -l You can install courier-imap like this: sudo rpm -ivh courier-imap-4.2.1-1.8.i386.rpm
4.3 maildropNow we go back to our downloads directory: cd $HOME/downloads and run rpmbuild again: sudo rpmbuild -ta maildrop-2.0.4.tar.bz2 After the build process, the rpm packages can be found in $HOME/rpm/RPMS/i386 ($HOME/rpm/RPMS/x86_64 if you are on an x86_64 system): cd $HOME/rpm/RPMS/i386 The command ls -l shows you the available rpm packages: [falko@server1 i386]$ ls -l You can now install maildrop like this: sudo rpm -ivh maildrop-2.0.4-1.8.i386.rpm After you have compiled and installed all needed packages, you can become root again by typing exit
5 My Fedora 8 PackagesHere are the links to my Fedora 8 (i386) packages:
|







Recent comments
12 hours 41 min ago
17 hours 15 min ago
23 hours 26 min ago
2 days 11 hours ago
2 days 13 hours ago
3 days 11 hours ago
3 days 12 hours ago
4 days 16 hours ago
4 days 20 hours ago
6 days 17 hours ago