Courier Mail Server

Building Courier mail server RPMs

You can build binary Courier mail server RPMs directly from the tarball, using RPM version 4.0.2 or higher. For example:

rpmbuild -ta courier-version.tar.bz2

Because the RPMs can be built directly from the tarball, binary RPMs will not be distributed separately.

NOTE:

The first attempt to build binary RPMs will likely result in an error message requesting additional RPMs to be installed first, such as the LDAP server, MySQL and PostgreSQL databases, and various other development libraries.

Do not blow off these requirements, and attempt to hack your way around them. Install the required RPMs, and try again. These RPMs are required to build the full complement of the Courier mail server packages, and they may be removed after building the Courier mail server.

Parts of the Courier mail server that use these optional RPMs will be built into separate, optional subpackages, and will not be required to run the Courier mail server. The optional RPMs must be installed only for the duration of the build process.

Note that the Courier mail server does not allow itself to be built as root. A single mistake -- especially when trying to build a system-level utility -- can have serious consequences. Therefore the configuration script won't let you. There's an undocumented flag to disable the check, for folks who don't make mistakes :-) See the FAQ for instructions on how to configure RPM to build packages as non-root.

Building the RPM packages yourself will also result in the packages being customized for your system. This procedure builds the following packages:

NOTE: these packages are built with certain directories in a non-default location. Specifically, the configuration files are installed in /etc/courier, the mail spool is installed in /var/spool/courier, and the manual pages are installed directly in /usr/man. Other configuration settings are left at their defaults. If you need to change the defaults, you will have to build your own packages.

NOTE: the first time the system boots after installing the the Courier mail server RPM, the system may pause for several minutes at the "Starting The Courier mail server" prompt. That's because the startup script automatically creates test SSL certificates the first time the script is executed (provided that SSL support is available). This can take as much as 5-6 minutes on a slow machine. Subsequent starts should take only a few seconds. Have patience. Also note that the main Courier mail server RPM has the ESMTP server turned off. You must manually enable receiving mail via ESMTP by editing the esmtpd configuration file.