Maildrop with MySQL Support on Debian Sarge
The default maildrop package in Debian Sarge comes without MySQL support. If you want to enable MySQL support you have to compile it from source:
apt-get install dpkg-dev
apt-get install fakeroot
cd /usr/local/src
apt-get source maildrop
cd maildrop-1.5.3
Edit the file debian/rules and add the lines:
--enable-syslog=1 --enable-maildropmysql --with-mysqlconfig=/etc/maildropmysql.config --without-db \\
--enable-maildrop-uid=5000 --enable-maildrop-gid=5000 --enable-trusted-users="root postfix vmail"
Now build and install .deb package:
apt-get build-dep maildrop
dpkg-buildpackage -rfakeroot -uc -b
dpkg -i maildrop_1.5.3-1.1sarge1_i386.deb
Note: The above setup assumes that your user and group vmail have UID/GID 5000. This may be different on your system. Check your vmail user in /etc/passwd and set accordingly.