Warning: if you have glibc-2.3.1 or later, then the binary rpm in this directory will not run on your system, and in fact you need to patch qmail. For further info, please go to the glibc-2.3.1 directory. Please note that the "memphis" qmail rpm got split into two packages. The first package is qmail, and it is here, the second package is qmail-run, and it is in ../qmail-run/. The installation instructions you got for the memphis rpm is probably obsolete, so please read this README carefully. If you are looking for a binary distribution of qmail, you are at the right place. Warning: all the binaries in this directory are for a Linux based sytem with glibc2. More precisely, the final product needs the following libraries to run ld-linux.so.2 libc.so.6(GLIBC_2.2) libresolv.so.2(GLIBC_2.2) You also need make installed, even if you do not compile the sources. I'd like emphasize that the packages in this directory install qmail as it would install you would build and install qmail from the original tarball with default settings. No patches are applied. If you have a RedHat 7.2 system, you are fine. If you have a RH 6.2 or older, then you need to compile. (Please let me know if this is not the case.) The qmail rpms install/contain only the basic qmail executables and man pages; the init scripts are in the package qmail-run. The qmail and qmail-run packages will properly upgrade your "memphis" rpm. But you also have the option to installing the qmail package, and then follow your own path in setting up initscripts, aliases and such for qmail. One of the advantages of having a separate qmail and qmail-run package is that now it is possible for me (and for others) to distribute *binary* rpms for qmail. Now the packages: var-qmail-1.03-2-gnu-linux-i686.tar.gz ======================================= This one is a binary distribution for qmail made on a RedHat 6.0 Lignux system. After untarring the package, see the README in the top directory for more details. It is necessary that useradd accepts the `-r' flag. If your version does not accept, then get the latest version of shadow-utils from RH. If you cannot, you need to recreate the distribution---the package var-qmail-create-2.tar can help you with that. var-qmail-create-2.tar: ===================== This can be used to make a binary distribution. See the README in the top dir after untarring. It is necessary that useradd accepts the `-r' flag. If your version does not accept, then get the latest version of shadow-utils from RH. If you cannot, you need to modify the add-account file (the main point is to make sure the home directory does *not* get created). Now about the rpms: Make sure you really understand what I am saying here. qmail's installation is not simple in that there are several so called qmail users that need to be added to your system. The UIDs for these users have to be compiled into the qmail binaries. Hence a binary distribution of qmail has to edit the binaries on the install (your) system. To make sure that rpm's verify does not botch on the edited binaries, the final package that will install qmail on your system has to be created on *your* system. As far as I am concerned, you want one of the following: A) Install fresh the qmail binaries, and you have an RH >= 7.0 system. B) Install fresh the qmail binaries, and you have a system with glibc2, and recent rpm. C) You want to compile qmail on your system, and then do a fresh install. D) You want to upgrade an already installed qmail rpm. Here is what to do -------------------- All installers. 1) If the machine you are installing is a NIS client machine but not a server, you need to stop ypbind and remove the file corresponding to the nis domain in /var/yp/binding. I just do rm -f /var/yp/binding/* The reason for stopping ypbind is that the qmail users have to be local users. With ypbind running, the scripts trying to add the qmail users will fail. 2) Stop sendmail, and then remove the sendmail package with rpm -e --nodeps sendmail Again, *first* stop sendmail! -------------------------------------------------------------------- A) Install fresh the qmail binaries, and you have an RH >= 7.0 system. Well, do this: 1) Make sure your system supports the compiled binaries. Look at INSTALL.rpm for info about the compilation environment. (You will not succeed if your RedHat system is older than 7.0) 2) Get the most recent update of rpm for your system ( >= 4.0 will do). You can find it in redhat's update directory. To help you out, I have put the most recent ones in the parent directory; they are ../rpm-4.0.2-5x.i386.rpm # for 5.x users ../rpm-build-4.0.2-5x.i386.rpm # for 5.x users ../rpm-4.0.2-6x.i386.rpm # for 6.x users ../rpm-build-4.0.2-6x.i386.rpm # for 6.x users ../ rpm-4.0.4-7x.i386.rpm # for 7.x users ../rpm-build-4.0.4-7x.i386.rpm # for 7.x users I got these from the RH updates ftp site, so they should install fine. You need both the rpm and rpm-build packages. 3) Make sure the command `hostname -f' returns the fully qualified domainname of your machine. An alias (CNAME) will not do. 4) Get the package qmail-1.03-109memphis.src.rpm from this directory. This package does not contain the qmail sources; it contains a tarball of the compiled qmail binaries and a spec file. Execute rpm --rebuild qmail-1.03-109memphis.src.rpm This command will add the qmail users to your system (if they do not yet exist), edits the binaries for the new uids, and repacks the binaries in a binary rpm. Unless you changed the defaults, the binary rpm will be installed as /usr/src/redhat/RPMS/i386/qmail-1.03-109memphis.i386.rpm So all you need to do is 5) Execute the command rpm -Uvh /usr/src/redhat/RPMS/i386/qmail-1.03-109memphis.i386.rpm 6) You have two options: a) If you want to set up initscripts and other stuff for qmail by yourself, read /usr/share/doc/qmail-1.03/README_rpm, and go from there. You can get additional help by reading http://web.infoave.net/~dsill/lwq.html. An important point: qmail's author does not recommend using inetd anymore; please set up qmail-smtpd to run under tcpserver of the ucspi-tcp package. Note that you can find ucspi-tcp and daemontools rpms in ../qmail-run. b) You want an rpm that sets up the initscripts, aliases and friends for you. Then go and start with ../qmail-run/README. It is still a good idea if you read the INSTALL* and TEST* docs in the /var/qmail/doc directory, and make sure you understand what points are done for you by qmail-run. One important remark: the qmail-run package sets up qmail-smtpd to run under tcpserver and not under inetd. ------------------------------------------------------------- B) Install fresh the qmail binaries, and you have a system with glibc2, and recent rpm. 0) Your main obstacle is the shadow-utils package: your version probably does not support the `-r' flag. So get RedHat's version of shadow-utils from their (or a mirror's) ftp site. Now you can do 1)-6) of the previous section. ----------------------------------------------------------------- C) You want to compile qmail on your system, and then do a fresh install. 0) Get a recent version of rpm ( >=4.0) 1) Get var-qmail-create-1.03-109memphis.src.rpm. 2) Run the command rpm --rebuild var-qmail-create-1.03-109memphis.src.rpm This creates var-qmail-create-1.03-109memphis.i386.rpm. 3) Run the command rpm -Uvh var-qmail-create-1.03-109memphis.i386.rpm This creates the spec file var-qmail.spec and a tarball containing the qmail binaries. The spec file is put in your spec directory. 4) Run the command rpm -bb var-qmail.spec This adds the qmail users and groups to your system if they do not yet exists, edits the qmail binaries to reflect the new uids/gids, and finally creates qmail-1.03-109memphis.i386.rpm. 5) Run the command rpm -Uvh qmail-1.03-109memphis.i386.rpm 6) You have two options: a) If you want to set up initscripts and other stuff for qmail by yourself, read /usr/share/doc/qmail-1.03/README_rpm, and go from there. You can get additional help by reading http://web.infoave.net/~dsill/lwq.html. Note that you can find ucspi-tcp and daemontools rpms in ../qmail-run. b) You want an rpm that sets up the initscripts, aliases and friends for you. Then go and read ../qmail-run/README.qmail-run, and see if this one is for you. It is still a good idea if you read the INSTALL* and TEST* docs in the /var/qmail/doc directory, and make sure you understand what points are done for you by qmail-run. Even if you install qmail-run, you get very good usage suggestions at http://web.infoave.net/~dsill/lwq.html. One important remark: the qmail-run package sets up qmail-smtpd to run under tcpserver and not under inetd. -------------------------------------------------------- D) You want to upgrade an already installed qmail rpm. If you have an rpm I did not make, upgrading might be rocky for you. The control files and aliases might get "rpmsaved", and other unexpected things might happen depending on which qmail rpm you have installed. All the rpms I know about, though, use /var/qmail as ~qmail, and your queue should not get messed up during the upgrade. If you have a qmail rpm I made, installing the qmail package from here, and then installing the qmail-run package from the ../qmail-run directory should provide a complete, and relatively smooth upgrade. Either way, choose A) B) or C) above depending on your system and desire, and then you probably want to read ../qmail-run/README.qmail-run; most of it will be familiar to you. You may also find useful to read http://web.infoave.net/~dsill/lwq.html. It is important though that you upgrade the daemontools and ucspi-tcp packages to the current ones. I had a few bugfixes. ---------------------------------------------------------- NOTES: ****** var-qmail-create-1.03-109memphis.src.rpm: ========================================= This contains the qmail sources, and creates the tarball containing the binaries, and the spec file to make qmail-1.03-109memphis.i386.rpm. var-qmail-create.spec: ====================== Spec file from var-qmail-create-1.03-109memphis.src.rpm. qmail-1.03-109memphis.src.rpm: ============================= This contains the precompiled binaries for qmail. var-qmail.spec: =============== This is the spec file from qmail-1.03-109memphis.src.rpm. It is automatically created from var-qmail-create-1.03-109memphis.src.rpm, so this is here for your info only. INSTALL.rpm: ============ This details the compilation environment for the the rpm for the binary distribution of qmail. var-qmail vs. qmail: ==================== Eventually, the name of the qmail binary distribution is going to be var-qmail, but rpm presently is not doing the right thing when upgrading a package with a different name (and I want the rpm's in this directory to upgrade my earlier rpms). ucspi vs memphis extension: ========================== Well, it makes no sense to append ucspi to the release of the qmail rpm, since there is nothing in it that requires the use of the ucspi-tcp package (though it is highly recommended over inetd; in fact, inetd is not supported by djb anymore). I use the memphis extension to distinguish this rpm from other people's releases, because they are almost certainly incompatible. Finally: ======== the files var-qmail-create-1.03-109memphis.i386.rpm and qmail-1.03-109memphis.src.rpm contain the same thing: the tarball of the precompiled qmail binaries and the spec file to build the final package.