Postfix Virtual Hosting With LDAP Backend And With Dovecot As IMAP/POP3 Server On Ubuntu Kamic Koala 9.10 - Page 7
This tutorial exists for these OS versions
- Ubuntu 18.04 (Bionic Beaver)
- Ubuntu 14.04 LTS (Trusty Tahr)
- Ubuntu 9.10 (Karmic Koala)
- Ubuntu 8.10 (Intrepid Ibex)
- Ubuntu 8.04 (Hardy Heron)
On this page
Step 9: Install and configure proftpd
First we will install proftpd and its requirements:
aptitude install proftpd proftpd-mod-ldap
Depending on your load you can decide between stand alone and inet.d.
Edit /etc/proftpd/proftpd.conf:
vi /etc/proftpd/proftpd.conf
And change from:
# Use this to jail all users in their homes # DefaultRoot ~
To:
# Use this to jail all users in their homes DefaultRoot ~
Now edit /etc/proftpd/modules.conf:
vi /etc/proftpd/modules.conf
And change from:
# Install proftpd-mod-ldap to use this #LoadModule mod_ldap.c
To:
# Install proftpd-mod-ldap to use this LoadModule mod_ldap.c
And from:
# Install proftpd-mod-ldap to use this # LoadModule mod_quotatab_ldap.c
To:
# Install proftpd-mod-ldap to use this LoadModule mod_quotatab_ldap.c
No edit /etc/proftpd/ldap.conf and set the following:
<IfModule mod_ldap.c> AuthOrder mod_ldap.c AuthPAM off LDAPUseTLS off PersistentPasswd off LDAPServer 127.0.0.1 LDAPDNInfo cn=abook,dc=webhabitat,dc=be readonly LDAPDoAuth on "dc=webhabitat,dc=be" # (&(uid=%u)(objectclass=posixAccount)) </IfModule>
Now restart postfix and your domain postmasters created in phamm can login to their home directories. Note not the email accounts.
/etc/init.d/proftpd restart
This concludes the complete how to.