主题: PureFTPd安裝問題
==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:iRedMail-0.8.1 ---> iRedAdmin-Pro-LDAP-1.7.2
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 6.2 x64
- 与您的问题相关的日志信息:
====
Hi 張大:
我是依照 Integration/PureFTPd.iRedMail.with.OpenLDAP/CentOS安裝
1). lftp測試的訊息:
<--- 500 This security scheme is not implemented
<--- 200 OK, UTF-8 enabled
<--- 200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
<--- 331 User user1@aaaa.com OK. Password required
<--- 530 Login authentication failed
ls: 登入錯誤: 530 Login authentication failed
<--- 530 You aren't logged in
<--- 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
<--- 221 Logout.
2). openldap log
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 fd=13 ACCEPT from IP=127.0.0.1:59433 (IP=0.0.0.0:389)
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 op=1 SRCH base="mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,dc=aaaa,dc=com" scope=0 deref=0 filter="(&(objectClass=mailUser)(mail=user1@aaaa.com))"
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 op=1 SRCH attr=mail cn accountStatus mailQuota jpegPhoto enabledService memberOfGroup employeeNumber telephoneNumber userRecipientBccAddress userSenderBccAddress mailForwardingAddress mtaTransport storageBaseDirectory mailMessageStore mobile title shadowAddress shadowLastChange amavisWhitelistSender amavisBlacklistSender mailWhitelistRecipient mailBlacklistRecipient lastLoginDate lastLoginIP createTimestamp
Jun 26 18:37:06 mail1 slapd[19630]: conn=1065 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 fd=37 ACCEPT from IP=127.0.0.1:59434 (IP=0.0.0.0:389)
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 op=1 SRCH base="ou=Groups,domainName=aaaa.com,o=domains,dc=aaaa,dc=com" scope=2 deref=0 filter="(objectClass=mailList)"
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 op=1 SRCH attr=mail accountStatus cn description accessPolicy hasMember createTimestamp
Jun 26 18:37:06 mail1 slapd[19630]: conn=1066 op=1 SEARCH RESULT tag=101 err=0 nentries=14 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 fd=38 ACCEPT from IP=127.0.0.1:59435 (IP=0.0.0.0:389)
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=1 MOD dn="domainName=aaaa.com,o=domains,dc=aaaa,dc=com"
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=1 MOD attr=domainCurrentListNumber
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=1 RESULT tag=103 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 op=2 UNBIND
Jun 26 18:37:06 mail1 slapd[19630]: conn=1067 fd=38 closed
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 fd=38 ACCEPT from IP=127.0.0.1:59436 (IP=0.0.0.0:389)
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 op=1 SRCH base="domainName=aaaa.com,o=domains,dc=aaaa,dc=com" scope=0 deref=0 filter="(&(objectClass=mailDomain)(domainName=aaaa.com))"
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 op=1 SRCH attr=domainName domainAliasName
Jun 26 18:37:06 mail1 slapd[19630]: conn=1068 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 fd=39 ACCEPT from IP=127.0.0.1:59437 (IP=0.0.0.0:389)
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 op=1 SRCH base="ou=Aliases,domainName=aaaa.com,o=domains,dc=aaaa,dc=com" scope=2 deref=0 filter="(objectClass=mailAlias)"
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 op=1 SRCH attr=mail accountStatus cn description enabledService mailForwardingAddress createTimestamp
Jun 26 18:37:06 mail1 slapd[19630]: conn=1069 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 fd=40 ACCEPT from IP=127.0.0.1:59438 (IP=0.0.0.0:389)
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=1 MOD dn="domainName=aaaa.com,o=domains,dc=aaaa,dc=com"
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=1 MOD attr=domainCurrentAliasNumber
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=1 RESULT tag=103 err=0 text=
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 op=2 UNBIND
Jun 26 18:37:06 mail1 slapd[19630]: conn=1070 fd=40 closed
Jun 26 18:37:07 mail1 slapd[19630]: conn=1066 op=2 UNBIND
Jun 26 18:37:07 mail1 slapd[19630]: conn=1066 fd=37 closed
Jun 26 18:37:07 mail1 slapd[19630]: conn=1068 op=2 UNBIND
Jun 26 18:37:07 mail1 slapd[19630]: conn=1068 fd=38 closed
Jun 26 18:37:07 mail1 slapd[19630]: conn=1069 op=2 UNBIND
Jun 26 18:37:07 mail1 slapd[19630]: conn=1069 fd=39 closed
Jun 26 18:37:07 mail1 slapd[19630]: conn=1065 op=2 UNBIND
Jun 26 18:37:07 mail1 slapd[19630]: conn=1065 fd=13 closed
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 fd=13 ACCEPT from IP=127.0.0.1:59440 (IP=0.0.0.0:389)
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=1 SRCH base="mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,dc=aaaa,dc=com" scope=0 deref=0 filter="(&(objectClass=mailUser)(mail=user1@aaaa.com))"
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=1 SRCH attr=mail cn accountStatus mailQuota jpegPhoto enabledService memberOfGroup employeeNumber telephoneNumber userRecipientBccAddress userSenderBccAddress mailForwardingAddress mtaTransport storageBaseDirectory mailMessageStore mobile title shadowAddress shadowLastChange amavisWhitelistSender amavisBlacklistSender mailWhitelistRecipient mailBlacklistRecipient lastLoginDate lastLoginIP createTimestamp
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 fd=37 ACCEPT from IP=127.0.0.1:59441 (IP=0.0.0.0:389)
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=1 SRCH base="o=domains,dc=aaaa,dc=com" scope=1 deref=0 filter="(&(objectClass=mailDomain)(domainName=aaaa.com))"
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=1 SRCH attr=domainName accountSetting
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 op=2 UNBIND
Jun 26 18:37:10 mail1 slapd[19630]: conn=1071 fd=13 closed
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 op=2 UNBIND
Jun 26 18:37:10 mail1 slapd[19630]: conn=1072 fd=37 closed
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 fd=13 ACCEPT from IP=127.0.0.1:59443 (IP=0.0.0.0:389)
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1074 fd=37 ACCEPT from IP=127.0.0.1:59444 (IP=0.0.0.0:389)
Jun 26 18:37:17 mail1 slapd[19630]: conn=1074 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:17 mail1 slapd[19630]: conn=1074 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:17 mail1 slapd[19630]: conn=1074 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 fd=38 ACCEPT from IP=127.0.0.1:59445 (IP=0.0.0.0:389)
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=1 SRCH base="o=domains,dc=aaaa,dc=com" scope=1 deref=0 filter="(&(objectClass=mailDomain)(domainName=aaaa.com))"
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=1 SRCH attr=domainName accountSetting
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=1 MOD dn="mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,dc=aaaa,dc=com"
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=1 MOD attr=userPassword shadowLastChange
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=1 RESULT tag=103 err=0 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1074 op=1 UNBIND
Jun 26 18:37:17 mail1 slapd[19630]: conn=1074 fd=37 closed
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 op=2 UNBIND
Jun 26 18:37:17 mail1 slapd[19630]: conn=1075 fd=38 closed
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 op=2 UNBIND
Jun 26 18:37:17 mail1 slapd[19630]: conn=1073 fd=13 closed
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 fd=13 ACCEPT from IP=127.0.0.1:59447 (IP=0.0.0.0:389)
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 op=1 SRCH base="mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,dc=aaaa,dc=com" scope=0 deref=0 filter="(&(objectClass=mailUser)(mail=user1@aaaa.com))"
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 op=1 SRCH attr=mail cn accountStatus mailQuota jpegPhoto enabledService memberOfGroup employeeNumber telephoneNumber userRecipientBccAddress userSenderBccAddress mailForwardingAddress mtaTransport storageBaseDirectory mailMessageStore mobile title shadowAddress shadowLastChange amavisWhitelistSender amavisBlacklistSender mailWhitelistRecipient mailBlacklistRecipient lastLoginDate lastLoginIP createTimestamp
Jun 26 18:37:17 mail1 slapd[19630]: conn=1076 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 fd=37 ACCEPT from IP=127.0.0.1:59448 (IP=0.0.0.0:389)
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" method=128
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 op=0 BIND dn="cn=vmailadmin,dc=aaaa,dc=com" mech=SIMPLE ssf=0
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 op=0 RESULT tag=97 err=0 text=
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 op=1 SRCH base="o=domains,dc=aaaa,dc=com" scope=1 deref=0 filter="(&(objectClass=mailDomain)(domainName=aaaa.com))"
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 op=1 SRCH attr=domainName accountSetting
Jun 26 18:37:17 mail1 slapd[19630]: conn=1077 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Jun 26 18:37:18 mail1 slapd[19630]: conn=1076 op=2 UNBIND
Jun 26 18:37:18 mail1 slapd[19630]: conn=1076 fd=13 closed
Jun 26 18:37:18 mail1 slapd[19630]: conn=1077 op=2 UNBIND
Jun 26 18:37:18 mail1 slapd[19630]: conn=1077 fd=37 closed
2)./pureftpd.log為空白
3). ls -dl /home/ftp
drwxr-xr-x 2 root root 4096 2012-06-26 13:13 /home/ftp
4). netstat -tlnup |grep pure-ftpd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 19449/pure-ftpd (SE
tcp 0 0 :::21 :::* LISTEN 19449/pure-ftpd (SE
5). /iRedMail-0.8.1/tools/create_mail_user_OpenLDAP.sh檔案發現有如下問題:
a)內容:
FTPHomeDir: ${FTP_STORAGE_BASE_DIRECTORY}/${maildir}/ftp/
ftp前的 / 要去掉 ,因新增user時會產生問題路徑
b)在phpLDAPadmin :
FTPHomeDir : /home/ftp/aaaa.com/u/s/e/user1-2012.06.26.18.21.07//ftp/
c)在系統卻沒有建立資料:
# ls -la /home/ftp/
總計 8
drwxr-xr-x 2 root root 4096 2012-06-26 13:13 .
drwxr-xr-x. 7 root root 4096 2012-06-26 13:13 ..
d)另 匯出user1的ldif資料:也有1個問題
# LDIF Export for mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,dc=aaaa,dc=com
# 伺服器: My LDAP Server (127.0.0.1)
# 搜尋範圍: base
# 過濾搜尋: (objectClass=*)
# 全部的紀錄: 1
#
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on June 26, 2012 10:26 am
# Version: 1.2.2
version: 1
# 紀錄 1: mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=do...
dn: mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,dc=aaaa,dc=com
accountstatus: active
cn: user1
createtimestamp: 20120626102107Z
creatorsname: cn=Manager,dc=aaaa,dc=com
enabledservice: internal
enabledservice: doveadm #經由create_mail_user_OpenLDAP.sh才會產生,由iRedAdmin 產生的user無 ,why? Fresh install時是否要加入?
enabledservice: mail
enabledservice: pop3
enabledservice: pop3secured
enabledservice: imap
enabledservice: imapsecured
enabledservice: managesieve
enabledservice: managesievesecured
enabledservice: sieve
enabledservice: sievesecured
enabledservice: smtp
enabledservice: deliver
enabledservice: lda
enabledservice: forward
enabledservice: senderbcc
enabledservice: recipientbcc
enabledservice: shadowaddress
enabledservice: displayedInGlobalAddressBook
enabledservice: lib-storage
entrycsn: 20120626102107.412834Z#000000#000#000000
entrydn: mail=user1@aaaa.com,ou=Users,domainName=aaaa.com,o=domains,
dc=aaaa,dc=com
entryuuid: 630a2b5a-53c4-1031-89db-b3836d225131
ftpdownloadbandwidth: 50
ftpdownloadratio: 5
ftphomedir: /home/ftp/aaaa.com/u/s/e/user1-2012.06.26.18.21.07/ftp/
ftpquotafiles: 50
ftpquotambytes: 10
ftpstatus: enabled
ftpuploadbandwidth: 50
ftpuploadratio: 1
givenname: user1
hassubordinates: FALSE
homedirectory: /var/vmail/vmail1/aaaa.com/u/s/e/user1-2012.06.26.18.21.07/
mail: user1@aaaa.com
mailmessagestore: vmail1/aaaa.com/u/s/e/user1-2012.06.26.18.21.07/
mailquota: 1048576000
modifiersname: cn=Manager,dc=aaaa,dc=com
modifytimestamp: 20120626102107Z
objectclass: inetOrgPerson
objectclass: shadowAccount
objectclass: amavisAccount
objectclass: mailUser
objectclass: top
objectclass: PureFTPdUser
sn: user1
storagebasedirectory: /var/vmail
structuralobjectclass: inetOrgPerson
subschemasubentry: cn=Subschema
uid: user1
userpassword: {SSHA}an536ym8MkKpM4AYUpwb6xHjjb3ZHyGO
請幫我查察,問題在哪?
謝謝!