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

您好~同时安装了roundcube跟sogo,在roundcube是可以设置密码长度,而在sogo我找不到合适的密码长度定义,会变成即便在roundcube设定的8码长度,但sogo却可以轻易修改成低于8码的简易密码。
查了一下sogo mailing list FAQ,有看到说是依照LDAP password policies,那这要怎样改....

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

User帐号建立后,登入roundcube,其邮箱地址会变成例如 xxx@127.0.0.1 ,需手动去修改成正确的邮箱网域名才可以发送,请问这要如何改正呢?谢谢

ZhangHuangbin 写道:

被隔离了。默认隔离到 /var/spool/amavis/ 目录下。

谢谢~在 /var/spool/amavisd/quarantine 可以看到 -rw-r-----  1 amavis amavis 5745731 Jun 16 11:38 virus-3YRIOFQJ4rSp 文件,只是在想,能怎样还原(捞出)此误判的隔离文件~就不用请对方重寄了....

您好~
想请问类似这种类似附件档被滤掉的邮件,有办法捞出来吗?

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iRedMail-0.8.6
- 使用哪个数据库存储用户帐号:MySQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS release 6.5
- 与您的问题相关的日志信息:
amavis[14817]: (14817-18) Blocked INFECTED () {DiscardedInternal,Quarantined}......<中间省略>..........quarantine: virus-3YRIOFQJ4rSp
====

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iRedMail-0.7.4
- 使用哪个数据库存储用户帐号:OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS release 5.8
- 与您的问题相关的日志信息:无
====
您好~我想将0.7.4升级到0.8.0
要修改updateLDAPValues_074_to_080.py ,我的iRedMail.tips的部份内容如下:

* LDAP suffix: dc=aaa,dc=com
* LDAP root dn: cn=Manager,dc=aaa,dc=com, password: 0000000000
* LDAP bind dn (read-only): cn=vmail,dc=aaa,dc=com, password: 11111111111111111111
* LDAP admin dn (used for iRedAdmin): cn=vmailadmin,dc=aaa,dc=com, password: 22222222222222222222
* LDAP base dn: o=domains,dc=aaa,dc=com
* LDAP admin base dn: o=domainAdmins,dc=aaa,dc=com

而updateLDAPValues_074_to_080.py關於bind_dn跟bind_pw部分,我不清楚下面改的对吗?....请指点,感谢。

uri = 'ldap://127.0.0.1:389'
basedn = 'o=domains,dc=aaa,dc=com'
bind_dn = 'cn=Manager,dc=aaa,dc=com'
bind_pw = '11111111111111111111'

谢谢提示~我从phpmyadmin的roundcubemail 中,发现users跟identities中的happy@abc.com皆变成了 Happy@abc.com ,把这两处改成小写字元~就可以顺利登入了~
我不清楚为何变成大写字元~因为我习惯都一定是开小写字元的帐号的~

谢谢~教教我如何清空roundcube 数据库吧:P

ZhangHuangbin 写道:

可以排除是 iRedAdmin 的问题了。

如果你是测试用的系统,建议尝试清空 roundcube 数据库后再测试一下。

您好~我试著新建三个帐号~可登入roundcube~先在roundcube改密码~三个帐号都可以登入的~接著于iRedAdmin内改密码~三个帐号也可以登入~

我有尝试从iRedAdmin删除happy帐号~也把其homeDirectory删除~再新开happy~一样会出现错误信息无法登入~

iredmail没有改动~也无安装roundcube插件的~

您好~用iRedAdmin建了一個名為happy帳號~原本還可以登入roundcube,可是改了密碼~就無法登入了~但從phpLDAPadmin內比對新密碼~是正確的~
iRedMail-0.7.0-beta5+roundcubemail-0.5.1

錯誤log如下:
Apr  1 17:36:25 ms01 roundcube: MDB2 Error: constraint violation (-3): _execute: [Error message: Unable to execute statement] [Last executed query:ERT INTO users (created, last_login, username, mail_host, alias, language) VALUES (now(), now(), ?, ?, ?, ?)] [Native code: 1062] [Native message: icate entry 'happy@abc.com-127.0.0.1' for key 2]
Apr  1 17:36:25 ms01 roundcube: DB Error: MDB2 Error: constraint violation Query: _execute: [Error message: Unable to execute statement] [Last exec query: INSERT INTO users (created, last_login, username, mail_host, alias, language) VALUES (now(), now(), ?, ?, ?, ?)] [Native code: 1062] [Nativssage: Duplicate entry 'happy@abc.com-127.0.0.1' for key 2]  in /var/www/roundcubemail-0.5.1/program/include/rcube_mdb2.php on line 650ST /?_task=login&_action=login)
Apr  1 17:36:25 ms01 roundcube: PHP Error: Failed to create new user in /var/www/roundcubemail-0.5.1/program/include/rcube_user.php on line 473 (PO?_task=login&_action=login)
Apr  1 17:36:25 ms01 roundcube: PHP Error: Failed to create a user record. Maybe aborted by a plugin? in /var/www/roundcubemail-0.5.1/program/inclucmail.php on line 747 (POST /?_task=login&_action=login)

请问个小问题~

若我域名是 abc.com.cn ,安装过程也都是填abc.com.cn,可是在/etc/postfix/main.cf的内容中的mydomain,却是abc.com,这样是正常的吗?

PS: iRedMail-0.7.0-beta4跟iRedMail-0.6.1新安装mydomain 都是产出abc.com

myhostname = ms01.abc.com.cn
myorigin = ms01.abc.com.cn
mydomain = abc.com

平台: CentOS 5.5 x64+iRedMail-0.7.0-beta4

刚刚试著从iRedAdmin(0.1.4-Open Source Edition)关闭邮件帐号的Displayed in Global LDAP Address Book,但是按Save changes之后~仍会呈现勾选状态(仍列于Global LDAP Address Book中)。

而直接从phpldapadmin(1.2.0.5)拿掉帐号中enabledService的displayedInGlobalAddressBook,结果则会如预期般,不会列于roundcubemail(0.5.1)通讯录的Global LDAP Address Book中。

您好~如下:

[root@ms01 ~]# more /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m

[root@ms01 ~]# uname -a
Linux ms01.abc.com 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

去掉后~可以成功寄出了~感谢您~

Mar 14 14:59:08 ms01 amavis[2688]: (02688-01) TIMING [total 14680 ms] - ldap-prepare: 2 (0%)0, SMTP greeting: 1 (0%)0, SMTP EHLO: 0 (0%)0, SMTP pre-MAIL: 0 (0%)0, mkdir tempdir: 22 (0%)0, create email.txt: 0 (0%)0, ldap-connect: 3 (0%)0, lookup_ldap: 3 (0%)0, lookup_ldap: 2 (0%)0, SMTP pre-DATA-flush: 1 (0%)0, SMTP DATA: 20 (0%)0, check_init: 0 (0%)0, digest_hdr: 1 (0%)0, digest_body_dkim: 0 (0%)0, sql-connect: 9 (0%)0, sql-enter: 119 (1%)1, mkdir parts: 1 (0%)1, mime_decode: 8 (0%)1, get-file-type2: 100 (1%)2, decompose_part: 1 (0%)2, parts_decode: 0 (0%)2, check_header: 1 (0%)2, AV-scan-1: 12 (0%)2, spam-wb-list: 1 (0%)2, SA parse: 2 (0%)2, SA check: 14277 (97%)99, update_cache: 13 (0%)99, decide_mail_destiny: 1 (0%)99, write-header: 4 (0%)99, fwd-data-dkim: 4 (0%)100, fwd-connect: 12 (0%)100, fwd-mail-pip: 8 (0%)100, fwd-rcpt-pip: 0 (0%)100, fwd-data-chkpnt: 0 (0%)100, write-header: 0 (0%)100, fwd-data-contents: 0 (0%)100, fwd-end-chkpnt: 35 (0%)100, prepare-dsn: 0 (0%)100, main_log_entry: 5 (0...
Mar 14 14:59:08 ms01 amavis[2688]: (02688-01) ...%)100, sql-update: 8 (0%)100, update_snmp: 1 (0%)100, SMTP pre-response: 0 (0%)100, SMTP response: 0 (0%)100, unlink-3-files: 0 (0%)100, rundown: 0 (0%)100
Mar 14 14:59:09 ms01 postfix/smtp[2881]: EF4876CD8470: to=<xxx@hotmail.com>, relay=mx2.hotmail.com[65.55.37.72]:25, delay=1, delays=0.04/0.01/0.49/0.52, dsn=2.0.0, status=sent (250  <a76c441769cee1b75547fac6300daaf6@abc.com> Queued mail for delivery)
Mar 14 14:59:09 ms01 postfix/qmgr[2683]: EF4876CD8470: removed

如下:
$default_ldap   = {
    hostname        => "127.0.0.1",
    port            => 389,
    version         => 3,
    tls             => 0,
    timeout         => 120,
    base            => "domainName=%d,o=domains,dc=abc,dc=com",
    scope           => "sub",
    query_filter    => "(&(objectClass=mailUser)(objectClass=amavisAccount)(accountStatus=active)(|(mail=%m)(shadowAddress=%m)))",
    bind_dn         => "cn=vmail,dc=abc,dc=com",
    bind_password   => "删",
};
$sql_allow_8bit_address = 1;
$timestamp_fmt_mysql = 1;
@storage_sql_dsn = (
    ['DBI:mysql:database=amavisd;host=localhost;port=3306', 'amavisd', '删'],
);

1;  # insure a defined return

补充:
用相同的安装步骤~使用iRedMail-0.7.0-beta4.tar.bz2 会有这样的错误~
用iRedMail-0.6.1.tar.bz2  則是OK的~

信件对外寄出会有如下错误log~详细LOG在附件档案~请问如何解决呢?谢谢~
ps: iRedMail-0.7.0-beta4

Mar 14 09:22:49 ms01 postfix/smtpd[2865]: BDBEC6CD8466: client=ms01.abc.com[127.0.0.1], sasl_method=LOGIN, sasl_username=user01@abc.com
Mar 14 09:22:49 ms01 postfix/cleanup[2869]: BDBEC6CD8466: message-id=<c24130fdbaffd7eee7e49d0538e2c404@abc.com>
Mar 14 09:22:49 ms01 roundcube: User user01@abc.com [192.168.67.240]; Message for xxx@hotmail.com; 250: 2.0.0 Ok: queued as BDBEC6CD8466
Mar 14 09:22:49 ms01 postfix/qmgr[2688]: BDBEC6CD8466: from=<user01@abc.com>, size=1125, nrcpt=1 (queue active)
Mar 14 09:22:49 ms01 amavis[2693]: (02693-01) loaded policy bank "MYNETS"
Mar 14 09:22:49 ms01 amavis[2693]: (02693-01) loaded policy bank "MYUSERS" over "MYNETS"
Mar 14 09:22:49 ms01 amavis[2693]: (02693-01) NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT
Mar 14 09:22:49 ms01 amavis[2693]: (02693-01) (!)lookup_ldap: do_search: failed again, LDAP_NO_SUCH_OBJECT at (eval 104) line 159, <DATA> line 392.
Mar 14 09:22:49 ms01 amavis[2693]: (02693-01) (!!)TROUBLE in process_request: do_search: failed again, LDAP_NO_SUCH_OBJECT at (eval 104) line 159, <DATA> line 392. at (eval 104) line 445, <DATA> line 392.
Mar 14 09:22:49 ms01 amavis[2693]: (02693-01) (!)Requesting process rundown after fatal error
Mar 14 09:22:50 ms01 amavis[2872]: TIMING [total 2 ms] - bdb-open: 2 (100%)100, rundown: 0 (0%)100
Mar 14 09:22:50 ms01 postfix/smtp[2870]: BDBEC6CD8466: to=<xxx@hotmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.45, delays=0.22/0.05/0/0.17, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))
Mar 14 09:22:50 ms01 postfix/smtpd[2865]: disconnect from ms01.abc.com[127.0.0.1]

我今天用CentOS 5.5 + iRedMail-0.7.0-beta4全新安装~试了几次也老是无法正常访问iredadmin~
后来转个弯~用iRedOS-0.6.0安装,等到出现iRedMail installation wizard步骤时,选No退出iRedMail安装~
接著下载iRedMail-0.7.0-beta4.tar.bz2,照著Installation Guide安装就成功了~:P

vmware或virtualbox好像都会发生时间不准问题~因为我都遇到过~
都在crontab里头设定自动矫时~
0 * * * * /usr/sbin/ntpdate xxx.xxx.xxx.xxx ; /sbin/hwclock -w

我找到如下之前回应的信息~试过可以work~tks!!!

http://www.iredmail.org/forum/topic1229 … sword.html

iRedMail-0.6.1,roundcubemail改完密码,会呈现空白页面~maillog出现以下信息,无法变更密码,请问如何解决呢~谢谢~

Nov  1 19:48:30 ms01 roundcube: PHP Warning:  require_once(Net/LDAP2.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: 沒有此一檔案或目錄 in /var/www/roundcubemail-0.3.1/plugins/password/drivers/ldap.php on line 20

Nov  1 19:48:30 ms01 roundcube: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Net/LDAP2.php' (include_path='/var/www/roundcubemail/:/var/www/roundcubemail/program:/var/www/roundcubemail/program/lib:/var/www/roundcubemail/program/include:.:/usr/share/pear:/usr/share/php') in /var/www/roundcubemail-0.3.1/plugins/password/drivers/ldap.php on line 20