Integration/PureFTPd.iRedMail.with.OpenLDAP/Debian

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(Created page with '=Install Pure-FTPd= Install PureFTPD {{cmd|<pre> #apt-get install pure-ftpd-ldap </pre>}} =Find vmail user password= For security reason, we only need to use the vmail user …')
(Find vmail user password)
Line 18: Line 18:
bind_pw        = kZ6uB29mViWKWI9lOH3cGnF7z3Dw3B #cn=vmail password
bind_pw        = kZ6uB29mViWKWI9lOH3cGnF7z3Dw3B #cn=vmail password
 +
</pre>}}
 +
 +
=Config PureFTPD=
 +
 +
*Configure PureFTPd as a standalone daemon (it is currently controlled by inetd)
 +
 +
Open /etc/default/pure-ftpd-common  and set correct values:
 +
{{cfg|/etc/default/pure-ftpd-common |<pre>
 +
#STANDALONE_OR_INETD=inetd
 +
STANDALONE_OR_INETD=standalone    #change to standalone
 +
</pre>}}
 +
 +
Open /etc/inetd.conf and comment out the ftp line::
 +
{{cfg|/etc/inetd.conf |<pre>
 +
#ftp    stream  tcp    nowait  root    /usr/sbin/tcpd /usr/sbin/pure-ftpd-wrapper
</pre>}}
</pre>}}

Revision as of 03:09, 29 March 2010

Install Pure-FTPd

Install PureFTPD

Terminal:
#apt-get install pure-ftpd-ldap 

Find vmail user password

For security reason, we only need to use the vmail user to search ldap, not suggest use the admin to search.

vmail password was random create duiring iredmail install.you can find the password in /etc/postfix/ldap_virtual_mailbox_domains.cf

  • Open /etc/postfix/ldap_virtual_mailbox_domains.cf :
File: /etc/postfix/ldap_virtual_mailbox_domains.cf
bind_dn         = cn=vmail,dc=example,dc=com
bind_pw         = kZ6uB29mViWKWI9lOH3cGnF7z3Dw3B #cn=vmail password

Config PureFTPD

  • Configure PureFTPd as a standalone daemon (it is currently controlled by inetd)

Open /etc/default/pure-ftpd-common and set correct values:

File: /etc/default/pure-ftpd-common
#STANDALONE_OR_INETD=inetd
STANDALONE_OR_INETD=standalone    #change to standalone

Open /etc/inetd.conf and comment out the ftp line::

File: /etc/inetd.conf
#ftp    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/pure-ftpd-wrapper
Personal tools