Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd On FreeBSD
Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd On FreeBSDiRedMail 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-FTPdInstall pure-ftpd:
# cd /usr/ports/ftp/pure-ftpd/ Options for Pure-ftpd, the LDAP must be select:
2 Add FTP UserWhen 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.
# pw useradd ftp -u 14 -g 14 -s /sbin/nologin -d /dev/null ftp:*:14:14:User &:/dev/null:/sbin/nologin # cat /etc/group | grep ftp ftp:*:14:
3 Configure Pure-ftpdCreate pure-ftp config files:
# cd /usr/local/etc Edit pure-ftpd.conf , let pure-ftpd support ldap:
3.1 Find cn=vmail passwordThe vmail password was randomly created during iredmail install. You can find the password in /usr/local/etc/postfix/ldap_virtual_mailbox_domains.cf: cat /usr/local/etc/postfix/ldap_virtual_mailbox_domains.cf
3.2 Edit pureftpd-ldap.conf
3.3 Get Pure-ftpd SchemaDownload the schema that has been modified by iredmail: wget http://iredmail.googlecode.com/svn/trunk/extra/pureftpd.schema -P /usr/local/etc/openldap/schema/
3.4 Edit /usr/local/etc/openldap/slapd.confInclude pureftpd.schema after iredmail.schema:
Add index for attributes defined in pureftpd.schema:
4 Create FTP Home DirFTP data are all stored in the /home/ftp/ directory. Create /home/ftp/, owner must be the root user. # mkdir /home/ftp/ drwxr-xr-x 2 root wheel 512 Jan 31 13:25 /home/ftp/
|




Recent comments
7 hours 6 min ago
11 hours 55 min ago
16 hours 44 min ago
19 hours 4 min ago
19 hours 21 min ago
19 hours 32 min ago
23 hours 34 min ago
1 day 19 min ago
1 day 2 hours ago
1 day 9 hours ago