Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd On Ubuntu 9.04
Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd On Ubuntu 9.04iRedMail is a shell script that lets you quickly deploy a full-featured mail solution in less than 2 minutes. Since version 0.5, it supports CentOS 5.x, Debian 5.x, Ubuntu 8.04 and 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 Ubuntu 9.04, passwords will be stored in ldap and you can change the password through webmail. This tutorial is based on Ubuntu 9.04 (works on Ubuntu 8.04 as well), so I suggest you set up a minimum Ubuntu 9.04, install iredmail 0.50 and choose OpenLDAP as the backend, as shown in this tutorial before you continue with this tutorial:
1 Install Pure-FTPdInstall pure-ftpd: apt-get install pure-ftpd-ldap
2 Default configuration files
3 Basic settings in /etc/pure-ftpd/conf/Create the file /etc/pure-ftpd/conf/ChrootEveryone which simply contains the string yes: echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone This will make PureFTPd chroot every virtual user in his home directory so he will not be able to browse directories and files outside his home directory. Also create the file /etc/pure-ftpd/conf/CreateHomeDir which again simply contains the string yes: echo "yes" > /etc/pure-ftpd/conf/CreateHomeDir This will make PureFTPd create a user's home directory when the user logs in and the home directory does not exist yet. Finally create the file /etc/pure-ftpd/conf/DontResolve which again simply contains the string yes: echo "yes" > /etc/pure-ftpd/conf/DontResolve This will make that PureFTPd doesn't look up host names which can significantly speed up connections and reduce bandwidth usage.
4 Find cn=vmail PasswordThe vmail password was randomly created during iredmail install. You can find the password in /etc/postfix/ldap_virtual_mailbox_domains.cf: cat /etc/postfix/ldap_virtual_mailbox_domains.cf
5 Configure LDAP settingsvi /etc/pure-ftpd/db/ldap.conf
6 Get schemaYou have two ways to get the pureftpd schema. You only need to choose one.
6.1 Download the schema that has been modified by iredmail: wget http://iredmail.googlecode.com/svn/trunk/extra/pureftpd.schema -P /etc/ldap/schema/ 6.2 Get the schema shipped within pure-ftpd-1.0.24:
cd /tmp/ Modify /etc/ldap/schema/pureftpd.schema: We need to add one more attribute 'FTPHomeDir' before the objectclass definition, used to store the user's FTP directory. vi /etc/ldap/schema/pureftpd.schema
7 Modify /etc/ldap/slapd.confvi /etc/ldap/slapd.conf Include pureftpd.schema after iredmail.schema:
Add index for attributes defined in pureftpd.schema:
8 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 root 4096 Oct 3 16:53 /home/ftp
9 Restart OpenLDAP service to make pureftpd.schema work
/etc/init.d/slapd 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 12548/pure-ftpd (SE
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial




print: 

Recent comments
14 hours 58 min ago
16 hours 5 min ago
16 hours 39 min ago
20 hours 33 min ago
21 hours 33 min ago
23 hours 29 min ago
1 day 52 min ago
1 day 3 hours ago
1 day 9 hours ago
1 day 16 hours ago