vpopmail

Any time you reconfigure and install vpopmail you will need to rebuild and install QmailAdmin. QmailAdmin statically links libvpopmail, so you need to recompile it whenever libvpopmail changes.

Installation
At the time of writing, the current "stable" version was 5.4.32, with 5.4.33 as the latest "devel":

cd /extra/src
wget http://downloads.sourceforge.net/project/vpopmail/vpopmail-stable/5.4.33/vpopmail-5.4.33.tar.gz
tar xzf /extra/src/vpopmail-5.4.33.tar.gz
cd vpopmail-5.4.33

As with qmail, we're going to specify the specific numeric user and group ID we want for vpopmail. FreeBSD has reserved 89 for vpopmail use so we'll use those. Our CentOS(i.e. Redhat) server should have that UID/GID available. CentOS 7 used UID/GID 89 for Postfix. Deleting them from /etc/passwd and /etc/group allowed them to be created for vpopmail.

groupadd -g 89 vchkpw
useradd -g vchkpw -u 89 -c 'vpopmail user' vpopmail

An easy way to keep track of what options you configured vpopmail with is to put them into a shell script. Open a file named go in vi or your favourite text editor:

vi go

Put the following into that script:

#!/bin/sh
./configure \
--enable-logging=y \
--enable-auth-logging \
--disable-passwd \
--disable-clear-passwd \
--disable-learn-passwords \
--enable-md5-passwords \
--enable-users-big-dir \
--disable-ip-alias-domains \
--disable-roaming-users \
--enable-qmail-ext \
--enable-onchange-script

Save and close the file, make it executable, run it to configure vpopmail. Then, if there are no configuration errors, make and install vpopmail.

chmod 700 go
./go
make && make install-strip

Vpopmail squawked about undefined reference to `backfill' on Centos 5.2. If that happens:

yum install automake
autoreconf
make clean
make && make install-strip

Just in case anything didn't have the proper permissions when installed, we'll use John Simpson's vfixpermissions script to fix the ownership and permissions of the entire vpopmail directory:

cd /usr/local/sbin
wget http://qmail.jms1.net/scripts/vfixpermissions
chmod ugo+x /usr/local/sbin/vfixpermissions
vfixpermissions

Now is a good time to create your first domain:

/home/vpopmail/bin/vadddomain productionmonkeys.net
echo "productionmonkeys.net" > /home/vpopmail/etc/defaultdomain

Credits

Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.

Recent Updates

  • 2 years 3 days ago
  • 2 years 3 days ago
  • 2 years 5 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff