Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd On FreeBSD

iRedMail is a shell script that lets you quickly deploy a full-featured mail solution in less than 2 minutes. Since version 0.6, it supports FreeBSD 7.2 and 8.0 (both i386 and x86_64). iRedMail supports both OpenLDAP and MySQL as backends for storing virtual domains and users.

The OpenLDAP backend of iRedMail allows you to integrate all kinds of applications. This guide shows you how to integrate pure-ftpd into the iRedMail ldap backend on FreeBSD 7.2, passwords will be stored in ldap and you can change the password through webmail.

This tutorial is based on FreeBSD 7.2, so I suggest you set up a minimum FreeBSD 7.2 , install iredmail 0.60 and choose openldap as backend, ss shown in these tutorials:

1 Install Pure-FTPd

Install pure-ftpd:

# cd /usr/ports/ftp/pure-ftpd/
# make install clean

Options for Pure-ftpd, the LDAP must be select:

2 Add FTP User

When you install pureftp, an ftp group is created, but no ftp user; this results in the error "mail pure-ftpd:(?:?) [ERROR] Unable to find the 'ftp' account". So we need to manually create the ftp user.