主题: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

信件对外寄出会有如下错误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]

Post's attachments

AMAVIS-ERROR.txt 19.61 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

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

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

flycrab 写道:

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.

检查一下 /etc/amavisd.conf 里的这个设置:

$default_ldap = {}

麻烦将它的这一段设置贴一下(记得去掉密码)。

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

如下:
$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

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

尝试将这里的 "domainname=%d," 去掉,重启 amavisd 后试试:

    base            => "domainName=%d,o=domains,dc=abc,dc=com",

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

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

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

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

请问您使用的是哪个 Linux/BSD 发行版?具体的版本号是多少?

8 最后由 flycrab (2011-03-14 17:03:25) 编辑

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

您好~如下:

[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

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

能解释一下 出现这个问题的原因吗

回复: amavis: NOTICE: do_search: trying again: LDAP_NO_SUCH_OBJECT

这是 Amavisd 的 bug,我已反馈到 amavisd 官方邮件列表。
http://marc.info/?l=amavis-user&m=1 … 94&w=2