1 最后由 kouty (2013-11-20 22:43:07) 编辑

主题: 收件重复问题

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.4
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):openldap
- 使用的 Linux/BSD 发行版名称及版本号:centos6.4
- 与您的问题相关的日志信息:
====
Nov 20 21:49:00 mail postfix/smtpd[22417]: 2E87316E0049: client=mail[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@test.com.cn
Nov 20 21:49:00 mail postfix/cleanup[22678]: 2E87316E0049: message-id=<ffdf30637c6fab2255fd7ada40cf2657@test.com.cn>
Nov 20 21:49:00 mail postfix/qmgr[1663]: 2E87316E0049: from=<postmaster@test.com.cn>, size=554, nrcpt=2 (queue active)
Nov 20 21:49:00 mail roundcube: User postmaster@test.com.cn [172.16.1.136]; Message for test01@test.com.cn; 250: 2.0.0 Ok: queued as 2E87316E0049
Nov 20 21:49:00 mail postfix/smtpd[22417]: disconnect from mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/smtpd[22688]: connect from mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/smtpd[22688]: C9C5316E0062: client=mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/cleanup[22678]: C9C5316E0062: message-id=<ffdf30637c6fab2255fd7ada40cf2657@test.com.cn>
Nov 20 21:49:00 mail postfix/smtpd[22688]: disconnect from mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/qmgr[1663]: C9C5316E0062: from=<postmaster@test.com.cn>, size=1487, nrcpt=1 (queue active)
Nov 20 21:49:00 mail amavis[22290]: (22290-03) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <postmaster@test.com.cn> -> <test01_01@test.com.cn>, Message-ID: <ffdf30637c6fab2255fd7ada40cf2657@test.com.cn>, mail_id: boE5qaYGCgW6, Hits: -7, size: 554, queued_as: C9C5316E0062, 585 ms
Nov 20 21:49:00 mail postfix/smtp[22681]: 2E87316E0049: to=<test01_01@test.com.cn>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.65, delays=0.06/0.01/0/0.59, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C9C5316E0062)
Nov 20 21:49:00 mail postfix/pipe[22689]: C9C5316E0062: to=<test01_01@test.com.cn>, relay=dovecot, delay=0.03, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 20 21:49:00 mail postfix/qmgr[1663]: C9C5316E0062: removed
Nov 20 21:49:00 mail postfix/smtpd[22688]: connect from mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/smtpd[22688]: F1FDA16E0062: client=mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/cleanup[22678]: F1FDA16E0062: message-id=<ffdf30637c6fab2255fd7ada40cf2657@test.com.cn>
Nov 20 21:49:00 mail postfix/smtpd[22688]: disconnect from mail[127.0.0.1]
Nov 20 21:49:00 mail postfix/qmgr[1663]: F1FDA16E0062: from=<postmaster@test.com.cn>, size=1481, nrcpt=1 (queue active)
Nov 20 21:49:00 mail amavis[21240]: (21240-11) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <postmaster@test.com.cn> -> <test01@test.com.cn>, Message-ID: <ffdf30637c6fab2255fd7ada40cf2657@test.com.cn>, mail_id: mIp+bNm3qkTf, Hits: -7, size: 554, queued_as: F1FDA16E0062, 753 ms
Nov 20 21:49:00 mail postfix/smtp[22679]: 2E87316E0049: to=<test01@test.com.cn>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.82, delays=0.06/0/0/0.76, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F1FDA16E0062)
Nov 20 21:49:00 mail postfix/qmgr[1663]: 2E87316E0049: removed
Nov 20 21:49:01 mail postfix/pipe[22689]: F1FDA16E0062: to=<test01@test.com.cn>, relay=dovecot, delay=0.03, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 20 21:49:01 mail postfix/qmgr[1663]: F1FDA16E0062: removed

ldap中同一帐号设置两个不同的电子邮件地址,给任意一个电子邮件地址发邮件时,会产生两个相同的邮件,这个问题可以调吗?

Post's attachments

捕获.JPG 29.94 kb, file has never been downloaded. 

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

回复: 收件重复问题

根据在 Postfix 配置文件里定义的 LDAP 查询语句,它会返回 mail 属性里的值。你定义了多个,于是它返回了多个。
如果你要给一个用户设置多个地址,请使用一次 mail 属性作为主邮件地址,其它地址请使用 shadowAddress 属性。

回复: 收件重复问题

ZhangHuangbin 写道:

根据在 Postfix 配置文件里定义的 LDAP 查询语句,它会返回 mail 属性里的值。你定义了多个,于是它返回了多个。
如果你要给一个用户设置多个地址,请使用一次 mail 属性作为主邮件地址,其它地址请使用 shadowAddress 属性。

原来Shadowaddress是这么用的,它和别名有什么区别?