==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.97
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLdap
- 使用的 Linux/BSD 发行版名称及版本号:centos 7
- 与您的问题相关的日志信息:
====

我现在用ldapsearch导出ldap中的某一域名下的账户,现在也用ldapadd导入到新的服务器中的ldap中,进入iredadmin,能看到这个域下的账户,但是我登录不了,这个是什么原因


下面是我的操作记录:
ldapsearch -x -D "cn=Manager,dc=aaa,dc=com" -W  -b "ou=Users,domainName=aaa.com,o=domains,dc=aaa,dc=com" -LLL "(objectclass=*)"
ldapadd -x -D "cn=Manager,dc=aaa,dc=com" -w zxdEdJiaaSL22Hna4BgYS0PGmY4lPbZ2 -f /home/james/output.ldif

output.ldif 文件格式如下:
dn: mail=wangjieqiong@aaa.com,ou=Users,domainName=aaa.com,o=domains,dc=aa
a,dc=com
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: wangjieqiong@aaa.com
userPassword:: e1NTSEE1MTJ9bFllbXU3b1hkUmxoL01tNDBRcUxIbkk4TWpteVpEamVnd05nN29
iSStmdkZsbW5Hc2N0VjRCU3RDNVdhK1QwTVlGZzV2Z0lDYVRQQU1CZjF0cTg5cHp4
sn: wangjieqiong
uid: wangjieqiong
storageBaseDirectory: /mail/vmail
mailMessageStore: vmail1/aaa.com/w/a/n/wangjieqiong-2017.06.05.10.37.14/
homeDirectory: /mail/vmail/vmail1/aaa.com/w/a/n/wangjieqiong-2017.06.05.10.37
.14/
accountStatus: active
enabledService: mail
enabledService: deliver
enabledService: lda
enabledService: lmtp
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sogo
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: lib-storage
enabledService: indexer-worker
enabledService: doveadm
enabledService: dsync
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
shadowLastChange: 0
amavisLocal: TRUE
mailQuota: 2147483648
cn: wangjieqiong

2

(2 篇回复,发表在 iRedMail 技术支持)

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====
warning: /var/cache/yum/x86_64/7/epel/packages/altermime-0.3.10-10.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for altermime-0.3.10-10.el7.x86_64.rpm is not installed

我已经用官方的centos源

不能增加该对象到LDAP服务器。
LDAP said:Constraint violationError number:0x13 (LDAP_CONSTRAINT_VIOLATION)描述:Some constraint would be violated by performing the action. This can happen when you try to add a second value to a single-valued attribute, for example.
LDIF text importCould not add object

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 7
- 与您的问题相关的日志信息:
====
我现在想从服务器A(ubuntu 16.04),只把邮件账户导入服务器B(centos 7). 服务器A跟服务器B装的iRedmail都是0.9.6.数据库都用OpenLDAP. 但是邮件存储目录不一样,服务器A采用默认的路径 (/var/vmail),服务器B的邮件存储目录(/mail/vmail).
我按照 http://www.iredmail.com/docs/backup.res … 这里,导入数据不成功
服务器A(/var/vmail/backup/ldap/2017/06/2017-06-23-03-00-01.ldif)中要修改那些地方????
个人理解:1.dn    2.entryUUID  3.modifiersName 4.userPassword 5 storageBaseDirectory

可以参阅论坛里的帖子:
http://www.iredmail.com/bbs/topic3071-i … admin.html

补充,我查看了:/var/log/目录下没有clamav 这个目录,在passwd中也没有clamav这个用户,很奇怪,看了上面的安装记录,应该都安装好了。怎么会出现上面的2个错误。

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos 7
- 与您的问题相关的日志信息:
====
********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
[ INFO ] Configure Nginx web server and uWSGI.
[ INFO ] Configure PHP.
[ INFO ] Configure LDAP server: OpenLDAP.
[ INFO ] Setup daily cron job to backup LDAP data with /mail/vmail/backup/backup_openldap.sh
[ INFO ] Configure MySQL database server.
[ INFO ] Setup daily cron job to backup SQL databases with /mail/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
[ INFO ] Configure iRedAdmin (official web-based admin panel).
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure Roundcube webmail.
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).

*************************************************************************
* iRedMail-0.9.6 installation and configuration complete.
*************************************************************************

[ INFO ] Disable SELinux in /etc/selinux/config.
< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/firewalld/zones/iredmail.xml, with SSHD port: 10835. [Y|n]Y
[ INFO ] Copy firewall sample rules: /etc/firewalld/zones/iredmail.xml.
< Question > Restart firewall now (with SSHD port 10835)? [y|N]y 
[ INFO ] Restarting firewall ...
< Question > Would you like to use MySQL configuration file shipped within iRedMail now?
< Question > File: /etc/my.cnf. [Y|n]Y
[ INFO ] Copy MySQL sample file: /etc/my.cnf.
[ INFO ] Enable SSL support for MySQL server.
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
********************************************************************