Postfix Virtual Hosting With LDAP Backend And With Dovecot As IMAP/POP3 Server On Ubuntu Kamic Koala 9.10 - Page 7

Want to support HowtoForge? Become a subscriber!
 
Submitted by Miguel (Contact Author) (Forums) on Sun, 2009-11-22 16:36. ::

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.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.