<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Which FTP server do you use for virtual domain/user hosting?]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic61.xml" />
	<updated>2009-10-04T10:13:14Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic61-which-ftp-server-do-you-use-for-virtual-domainuser-hosting.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1353.html#p1353" />
			<content type="html"><![CDATA[<p>Solved! <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I&#039;m not sure if it&#039;s a problem of pure-ftpd=ldap (Ubuntu package). You can not write any comment behind a directive, like this</p><p>LDAPDefaultUID 1001&nbsp; &nbsp; &nbsp; <em># &lt;- UID of &#039;vmail&#039; user, in file /etc/passwd</em></p><p>The <em># &lt;- UID of &#039;vmail&#039; user, in file /etc/passwd</em> shouldn&#039;t be there.</p><p>I&#039;m going to become an assmin after this.</p><p>Thanks for all.</p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-10-04T10:13:14Z</updated>
			<id>http://www.iredmail.org/forum/post1353.html#p1353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1334.html#p1334" />
			<content type="html"><![CDATA[<p>the pure-ftp schema have problem. you can down load from iredmail</p><p>wget <a href="http://iredmail.googlecode.com/hg/extra/pureftpd.schema">http://iredmail.googlecode.com/hg/extra/pureftpd.schema</a> </p><p>maybe you can email to me shake.chen@gmail.com , I let you access my test server. it is ubutu 9.04 install iredmail and pureftp.</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-10-02T09:15:38Z</updated>
			<id>http://www.iredmail.org/forum/post1334.html#p1334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1333.html#p1333" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>shake wrote:</cite><blockquote><p>I have do it in ubuntu 9.04 and have no any problem.</p><p>I think your problem is </p><p>LDAPDefaultUID 1001&nbsp; &nbsp;<br />LDAPDefaultGID 1001&nbsp; </p><p>the vmail&nbsp; uid and gid is 1000</p><p>check the /etc/passwd</p></blockquote></div><p>Here is mine<br /></p><div class="quotebox"><blockquote><p>lmthong:x:<strong>1000:1000</strong>:lmthong,,,:/home/lmthong:/bin/bash #&lt;-- My Ubuntu First Users<br />vboxadd:x:106:1::/var/run/vboxadd:/bin/false<br />bind:x:107:113::/var/cache/bind:/bin/false<br />dhcpd:x:108:114::/var/run:/bin/false<br />mysql:x:109:115:MySQL Server,,,:/var/lib/mysql:/bin/false<br />openldap:x:110:116:OpenLDAP Server Account,,,:/var/lib/ldap:/bin/false<br />postfix:x:111:118::/var/spool/postfix:/bin/false<br />clamav:x:112:120::/var/lib/clamav:/bin/false<br />dovecot:x:113:121:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false<br />amavis:x:114:122:AMaViS system user,,,:/var/lib/amavis:/bin/sh<br />vmail:x:<strong>1001:1001</strong>::/var/vmail:/sbin/nologin<br />policyd:x:1002:1002::/home/policyd:/sbin/nologin</p></blockquote></div><p>But in /etc/shadow<br /></p><div class="quotebox"><blockquote><p>vmail:!:14518:0:99999:7:::</p></blockquote></div><p>Do I have to enable vmail account (now its password disable!)</p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-10-02T09:08:48Z</updated>
			<id>http://www.iredmail.org/forum/post1333.html#p1333</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1311.html#p1311" />
			<content type="html"><![CDATA[<p>I have do it in ubuntu 9.04 and have no any problem.</p><p>I think your problem is </p><p>LDAPDefaultUID 1001&nbsp; &nbsp;<br />LDAPDefaultGID 1001&nbsp; </p><p>the vmail&nbsp; uid and gid is 1000</p><p>check the /etc/passwd</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-09-30T09:20:49Z</updated>
			<id>http://www.iredmail.org/forum/post1311.html#p1311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1309.html#p1309" />
			<content type="html"><![CDATA[<p>follow this page <a href="http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2007-10/msg02944.html">http://linux.derkeiler.com/Mailing-List … 02944.html</a><br /></p><div class="quotebox"><blockquote><p>1. Syntax error in attributetype description<br />The attributetype description &#039;FTPStatus&#039; in the pureftpd.schema that ships<br />with 1.0.21-11ubuntu1 has a syntax error. The word &quot;SYNTAX&quot; is there twice and<br />should only be there once:</p><p>attributetype ( 1.3.6.1.4.1.6981.11.3.7 NAME &#039;FTPStatus&#039;<br />DESC &#039;Account status: enabled or disabled&#039;<br />EQUALITY booleanMatch<br /><strong>SYNTAX SYNTAX</strong> 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )<br />^^^^^^<br />The typo invalidates the schema and slapd won&#039;t start.</p><p>2. Setting either FTPStatus <strong>TRUE</strong> or <strong>FALSE</strong> always disables logins. <span style="color: red">The Syntax rule for FTPStatus only allows to set TRUE or FALSE</span>. pure-ftpd however expects either &quot;enabled&quot; or &quot;disabled&quot;. If FTPStatus is present and neither &quot;enabled&quot; or &quot;disabled&quot; are given, pure-ftpd always assumes &quot;disabled&quot;, which effectively disables logins if the Admin sets FTPStatus =TRUE as required by the SYNTAX definition.<br />Patrick Koetter</p></blockquote></div><p>I&#039;ll try first</p><p>....<br />....</p><p>No, It doesn&#039;t effect! Sorry <img src="http://www.iredmail.org/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-09-30T07:39:27Z</updated>
			<id>http://www.iredmail.org/forum/post1309.html#p1309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1242.html#p1242" />
			<content type="html"><![CDATA[<p>Maybe there&#039;s something error in user authentication, such as PAM module or something else.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-09-25T06:55:51Z</updated>
			<id>http://www.iredmail.org/forum/post1242.html#p1242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1239.html#p1239" />
			<content type="html"><![CDATA[<p>I can use the dn and pw to login to phpldapadmin and find all object, so it is right.<br />I did compile an other pure-ftpd-ldap but no difference. </p><p>I think the problem from other service (i removes appamore already). I&#039;ll search in Ubuntu area for it and discuss later.</p><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-09-25T06:46:58Z</updated>
			<id>http://www.iredmail.org/forum/post1239.html#p1239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1233.html#p1233" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>lmthong wrote:</cite><blockquote><p>Sep 25 07:55:53 serv slapd[2194]: conn=1 op=0 BIND dn=&quot;cn=vmail,dc=core,dc=local&quot; method=128<br />Sep 25 07:55:53 serv slapd[2194]: conn=1 op=0 RESULT tag=97 err=49 text=</p></blockquote></div><p>It seems bind dn or password are incorrect (err=49).</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-09-25T01:29:31Z</updated>
			<id>http://www.iredmail.org/forum/post1233.html#p1233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1232.html#p1232" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Could you please post openldap log with &#039;loglevel 256&#039;?</p></blockquote></div><p>Sorry, but I already set loglevel 256. If it&#039;s not that log, where can i find it? (all log files are default dir) <img src="http://www.iredmail.org/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />Here is all in my <strong>/var/log/openldap.log</strong> (just renew and login with the same user)</p><p>Sep 25 07:54:32 serv slapd[2095]: @(#) $OpenLDAP: slapd 2.4.15 (Mar 19 2009 10:08:25) $ ^Ibuildd@palmer:/build/buildd/openldap-2.4.15/debian/build/servers/slapd<br />Sep 25 07:54:37 serv slapd[2194]: slapd starting<br />Sep 25 07:54:51 serv slapd[2194]: conn=0 fd=15 ACCEPT from IP=127.0.0.1:58819 (IP=0.0.0.0:389)<br />Sep 25 07:54:51 serv slapd[2194]: conn=0 op=0 BIND dn=&quot;cn=vmail,dc=core,dc=local&quot; method=128<br />Sep 25 07:54:51 serv slapd[2194]: conn=0 op=0 BIND dn=&quot;cn=vmail,dc=core,dc=local&quot; mech=SIMPLE ssf=0<br />Sep 25 07:54:51 serv slapd[2194]: conn=0 op=0 RESULT tag=97 err=0 text=<br />Sep 25 07:55:53 serv slapd[2194]: conn=1 fd=16 ACCEPT from IP=[::1]:50396 (IP=[::]:389)<br />Sep 25 07:55:53 serv slapd[2194]: conn=1 op=0 BIND dn=&quot;cn=vmail,dc=core,dc=local&quot; method=128<br />Sep 25 07:55:53 serv slapd[2194]: conn=1 op=0 RESULT tag=97 err=49 text=<br />Sep 25 07:56:05 serv slapd[2194]: conn=1 fd=16 closed (connection lost)</p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-09-25T00:46:38Z</updated>
			<id>http://www.iredmail.org/forum/post1232.html#p1232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1224.html#p1224" />
			<content type="html"><![CDATA[<p>Could you please post openldap log with &#039;loglevel 256&#039;?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-09-24T04:56:54Z</updated>
			<id>http://www.iredmail.org/forum/post1224.html#p1224</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1223.html#p1223" />
			<content type="html"><![CDATA[<p>#/etc/init.d/pure-ftpd-ldap restart<br />Restarting ftp server: Running: /usr/sbin/pure-ftpd-ldap -l ldap:/etc/pure-ftpd/db/ldap.conf -l pam -O clf:/var/log/pure-ftpd/transfer.log -E -d <span style="color: red">-u 1000 </span>-j -B </p><p># ls -dal /home/ftp<br />drwxrwxrwx 2 root root 4096 2009-09-24 11:36 /home/ftp</p><p>#cat /var/log/pureftpd.log<br />Sep 24 11:53:08 serv pure-ftpd: (?@localhost.localdomain) [INFO] New connection from localhost.localdomain<br />Sep 24 11:53:15 serv pure-ftpd: (?@localhost.localdomain) [DEBUG] Command [user] [user1@lmthong.local]<br />Sep 24 11:53:17 serv pure-ftpd: (?@localhost.localdomain) [DEBUG] Command [pass] [&lt;*&gt;]<br />Sep 24 11:53:17 serv pure-ftpd: (?@localhost.localdomain) [INFO] PAM_RHOST enabled. Getting the peer address<br />Sep 24 11:53:19 serv pure-ftpd: (?@localhost.localdomain) [WARNING] Authentication failed for user [user1@lmthong.local]<br />Sep 24 11:53:24 serv pure-ftpd: (?@localhost.localdomain) [DEBUG] Command [syst] []<br />Sep 24 11:53:25 serv pure-ftpd: (?@localhost.localdomain) [DEBUG] Command [quit] []<br />Sep 24 11:53:25 serv pure-ftpd: (?@localhost.localdomain) [INFO] Logout.</p><p>#cat /var/log/openldap.log<br />Sep 24 11:53:17 serv slapd[6364]: conn=0 fd=15 ACCEPT from IP=[::1]:52601 (IP=[::]:389)<br />Sep 24 11:53:17 serv slapd[6364]: conn=0 op=0 BIND dn=&quot;cn=vmail,dc=core,dc=local&quot; method=128<br />Sep 24 11:53:17 serv slapd[6364]: conn=0 op=0 RESULT tag=97 err=49 text=<br />Sep 24 11:53:25 serv slapd[6364]: conn=0 fd=15 closed (connection lost)</p><p>I did tried create home dir for user1 (/home/ftp/lmthong.local/user1) but no difference.</p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-09-24T04:48:58Z</updated>
			<id>http://www.iredmail.org/forum/post1223.html#p1223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1221.html#p1221" />
			<content type="html"><![CDATA[<p>Yes, you should check pureftpd log file.</p><p>And i think the error was caused by incorrect permission on /home/ftp/, it can&#039;t create ftp home directory for user.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-09-24T01:52:19Z</updated>
			<id>http://www.iredmail.org/forum/post1221.html#p1221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1220.html#p1220" />
			<content type="html"><![CDATA[<p>you need to view log.</p><p>enable ldap and pureftpd log. </p><p><a href="http://howtoforge.com/virtual-mail-and-ftp-hosting-with-iredmail-and-pure-ftpd-p2">http://howtoforge.com/virtual-mail-and- … re-ftpd-p2</a><br />9 Troubleshooting</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-09-24T01:45:55Z</updated>
			<id>http://www.iredmail.org/forum/post1220.html#p1220</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1216.html#p1216" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>We already integrate pure-ftpd account info in iRedMail-x.y.z/tools/create_mail_user_OpenLDAP.sh.</p><p>Set &#039;PUREFTPD_INTEGRATION&#039; to &#039;YES&#039;, and then new users created with this script will include FTP related objectclass and attributes.</p></blockquote></div><p>I mean through iredadmin. </p><p>How about my pure-ftpd-ldap, please!</p><div class="codebox"><pre><code>root@serv:~# lftp localhost
lftp localhost:~&gt; debug 4
lftp localhost:~&gt; login user1@lmthong.local 123456
lftp user1@lmthong.local@localhost:~&gt; ls
---- Connecting to localhost (::1) port 21
&lt;--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
&lt;--- 220-You are user number 1 of 50 allowed.
&lt;--- 220-Local time is now 22:46. Server port: 21.
&lt;--- 220-This is a private system - No anonymous login
&lt;--- 220 You will be disconnected after 15 minutes of inactivity.
&lt;--- 211-Extensions supported:
&lt;---  EPRT
&lt;---  IDLE
&lt;---  MDTM
&lt;---  SIZE
&lt;---  REST STREAM
&lt;---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
&lt;---  MLSD
&lt;---  TVFS
&lt;---  ESTP
&lt;---  PASV
&lt;---  EPSV
&lt;---  SPSV
&lt;---  ESTA
&lt;---  AUTH TLS
&lt;---  PBSZ
&lt;---  PROT
&lt;---  UTF8
&lt;--- 211 End.
&lt;--- 500 This security scheme is not implemented
&lt;--- 200 OK, UTF-8 enabled
&lt;--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
&lt;--- 331 User user1@lmthong.local OK. Password required
&lt;--- 530 Login authentication failed
ls: Login failed: 530 Login authentication failed
&lt;--- 530 You aren&#039;t logged in
&lt;--- 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
&lt;--- 221 Logout.</code></pre></div><p>and here is my /etc/pure-ftpd/db/ldap.conf<br /></p><div class="codebox"><pre><code>LDAPServer localhost
LDAPPort 389
LDAPBaseDN o=domains,dc=core,dc=local
LDAPBindDN cn=vmail,dc=core,dc=local
LDAPBindPW GZsHWof6Tlz2aBv9y6PJO8iuuZgp9d #cn=vmail password in file /etc/postfix/ldap_virtual_mailbox_domains.cf --&gt; 123456
LDAPDefaultUID 1001      # &lt;- UID of &#039;vmail&#039; user, in file /etc/passwd
LDAPDefaultGID 1001      # &lt;- GID of &#039;vmail&#039; user, in file /etc/passwd
LDAPFilter (&amp;(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
LDAPHomeDir FTPHomeDir  #
LDAPVersion 3</code></pre></div><p><span style="color: red"><strong>Pureftpd schema added, user1 PureFTP attributes added, firewall opened, /home/ftp/ make,... but it runs with login failed</strong></span></p>]]></content>
			<author>
				<name><![CDATA[lmthong]]></name>
				<uri>http://www.iredmail.org/forum/user296.html</uri>
			</author>
			<updated>2009-09-23T15:53:34Z</updated>
			<id>http://www.iredmail.org/forum/post1216.html#p1216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Which FTP server do you use for virtual domain/user hosting?]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1203.html#p1203" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>lmthong wrote:</cite><blockquote><p>How can I insert the PureFTP attributes in iredadmin or do a batch job? I want a FTP info will be inserted while create new email account. It&#039;ll be perfect if you add an option on iredadmin (not copy from an existed account)</p></blockquote></div><p>We already integrate pure-ftpd account info in iRedMail-x.y.z/tools/create_mail_user_OpenLDAP.sh.</p><p>For example, you can find below info in create_mail_user_OpenLDAP.sh:<br /></p><div class="codebox"><pre><code># ------------------------------------------------------------------
# -------------------- Pure-FTPd Integration -----------------------
# ------------------------------------------------------------------
# Add objectClass and attributes for pure-ftpd integration.
# Note: You must inlucde pureftpd.schema in OpenLDAP slapd.conf first.
PUREFTPD_INTEGRATION=&#039;NO&#039;
FTP_STORAGE_BASE_DIRECTORY=&#039;/home/ftp&#039;</code></pre></div><p>Set &#039;PUREFTPD_INTEGRATION&#039; to &#039;YES&#039;, and then new users created with this script will include FTP related objectclass and attributes.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-09-22T11:05:11Z</updated>
			<id>http://www.iredmail.org/forum/post1203.html#p1203</id>
		</entry>
</feed>
