Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd
Virtual Mail And FTP Hosting With iRedMail And Pure-FTPdiRedMail is a shell script that lets you quickly deploy a full-featured mail solution in less than 2 minutes. Since iRedMail 0.5, it supports Debian 5.0.1 and Ubuntu 8.04 & Ubuntu 9.04 (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 CentOS 5.x, passwords will be stored in ldap and you can change the password through webmail. This tutorial is based on CentOS 5.3, so I suggest you set up a minimum CentOS 5.3, install iRedMail 0.5 RC2 and choose OpenLDAP as backend, as shown in these tutorials:
1 Install Pure-FTPdUse the rpmforge yum repository to install pure-ftpd.
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm # <-- For i386 Install pure-ftpd: yum install pure-ftpd
2 Configure Pure-FTPdDefault configuration files:
Basic settings in /etc/pure-ftpd/pure-ftpd.confMake sure that the CreateHomeDir and LDAPConfigFile options are enabled and look like this: vi /etc/pure-ftpd/pure-ftpd.conf
Find cn=vmail passwordvmail password was randomly created duiring the iredmail installation. You can find the password in /etc/postfix/ldap_virtual_mailbox_domains.cf: vi /etc/postfix/ldap_virtual_mailbox_domains.cf
Configure LDAP settings in /etc/pure-ftpd/pureftpd-ldap.confvi /etc/pure-ftpd/pureftpd-ldap.conf
3 Config LDAPGet schemaYou have two ways of getting the pureftpd schema. You only need to choose one.
Download the schema that has been modified by iredmail: wget http://iredmail.googlecode.com/hg/extra/pureftpd.schema -P /etc/openldap/schema/ Get the schema shipped within pure-ftpd-1.0.22:
cd /tmp/
Modify /etc/openldap/schema/pureftpd.schemaWe need to add one more attribute 'FTPHomeDir' before the objectclass definition, used to store the user's FTP directory. vi /etc/openldap/schema/pureftpd.schema
Modify /etc/openldap/slapd.confvi /etc/openldap/slapd.conf Include 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 3 root root 4096 Jun 7 20:18 /home/ftp/
5 Restart OpenLDAP service to make pureftpd.schema work
/etc/init.d/ldap restart Make sure pure-ftpd is running: netstat -ntlp | grep pure-ftpd tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2062/pure-ftpd (SERVER)
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
5 hours 46 min ago
7 hours 15 min ago
10 hours 49 min ago
13 hours 43 min ago
16 hours 41 min ago
17 hours 22 min ago
17 hours 36 min ago
18 hours 35 min ago
19 hours 40 min ago
20 hours 14 min ago