先用slappasswd输出一个类似
{SSHA}pD6e0VRxZ4cVCXMJOLHi30a8Kyc9sxz1 的密码
然后在/etc/openldap/sldap.conf
内修改
rootpw {SSHA}pD6e0VRxZ4cVCXMJOLHi30a8Kyc9sxz1
便冠成修改。
先用slappasswd输出一个类似
{SSHA}pD6e0VRxZ4cVCXMJOLHi30a8Kyc9sxz1 的密码
然后在/etc/openldap/sldap.conf
内修改
rootpw {SSHA}pD6e0VRxZ4cVCXMJOLHi30a8Kyc9sxz1
便冠成修改。
当使用SFTP连接到CENTOS5.4时,在FileZila 出现exitcode 127
在用puttyssh连入,再使用sftp时出现。Request for subsystem ’sftp’ failed on channel 0
Couldn’t read packet: Connection reset by peer
解决方法:
到etc/ssh下有一个sshd_config文件,找到并修改如下:
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
问题解决!
在建立用户(aabbcc)时使用:
./create_mail_user_MySQL.sh xxx.com aabbcc
然后出让你在MYSQL中导入output.sql,内容为:
INSERT INTO mailbox (username, password, name, storagebasedirectory, maildir, quota, domain, active)
VALUES (’aabbcc@it.bond520.com’, ‘$1$PUwpks0V$65/rto/ZgYz8vcqLSB8Ns.’, ‘aabbcc’, ‘/var/vmail/vmail01′, ‘xxx.com/a/aa/aab/aabbcc-2010.04.15.14.57.40/’, ‘100′, ‘xxx.com’, ‘1′);
导入之后,你会发现根本没法使用,这时你只要再导入以下这句话就可以用了。
INSERT INTO alias(address,goto, domain, active)
VALUES (’aabbcc@xxx.com’,'aabbcc@xxx.com’, xxx.com’, ‘1′)
附件:一个修改后的SH执行句,可以方便一次性导入,解决iRedMail本身mailbox,alias设计问题的BUG
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |