1 最后由 hackerzyh (2016-06-16 10:03:56) 编辑

主题: iredapd 控制邮件收发权限问题

- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号  MySQL
- 使用的 Linux/BSD 发行版名称及版本号: debian8.5
- 与您的问题相关的日志信息: iredapd日志如下
====
测试一
2016-06-16 09:39:12 DEBUG smtp session: encryption_keysize=0
2016-06-16 09:39:12 DEBUG Skip plugin: reject_null_sender (protocol_state != END-OF-MESSAGE)
2016-06-16 09:39:12 DEBUG Skip plugin: reject_sender_login_mismatch (protocol_state != END-OF-MESSAGE)
2016-06-16 09:39:12 DEBUG Skip plugin: greylisting (protocol_state != END-OF-MESSAGE)
2016-06-16 09:39:12 DEBUG --> Apply plugin: throttle
2016-06-16 09:39:12 DEBUG Sender domain (@mehow.com) is same as recipient domain, skip throttling.
2016-06-16 09:39:12 DEBUG <-- Result: DUNNO
2016-06-16 09:39:12 DEBUG Skip plugin: sql_alias_access_policy (protocol_state != END-OF-MESSAGE)
2016-06-16 09:39:12 DEBUG Skip plugin: amavisd_wblist (protocol_state != END-OF-MESSAGE)
2016-06-16 09:39:12 DEBUG Session ended
2016-06-16 09:39:12 INFO [127.0.0.1] END-OF-MESSAGE, postmaster@mehow.com -> mlist@mehow.com, DUNNO


测试二
2016-06-16 09:48:43 DEBUG smtp session: request=smtpd_access_policy
2016-06-16 09:48:43 DEBUG smtp session: protocol_state=END-OF-MESSAGE
2016-06-16 09:48:43 DEBUG smtp session: protocol_name=ESMTP
...
2016-06-16 09:48:43 DEBUG smtp session: recipient_count=1
2016-06-16 09:48:43 DEBUG smtp session: queue_id=A6A7D9FFDD
2016-06-16 09:48:43 DEBUG smtp session: instance=2a04.57620576.979f2.0
2016-06-16 09:48:43 DEBUG smtp session: size=3972
2016-06-16 09:48:43 DEBUG smtp session: etrn_domain=
2016-06-16 09:48:43 DEBUG smtp session: stress=
2016-06-16 09:48:43 DEBUG smtp session: sasl_method=
2016-06-16 09:48:43 DEBUG smtp session: sasl_username=
2016-06-16 09:48:43 DEBUG smtp session: sasl_sender=
2016-06-16 09:48:43 DEBUG smtp session: ccert_subject=
2016-06-16 09:48:43 DEBUG smtp session: ccert_issuer=
2016-06-16 09:48:43 DEBUG smtp session: ccert_fingerprint=
2016-06-16 09:48:43 DEBUG smtp session: ccert_pubkey_fingerprint=
2016-06-16 09:48:43 DEBUG smtp session: encryption_protocol=TLSv1.2
2016-06-16 09:48:43 DEBUG smtp session: encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384
2016-06-16 09:48:43 DEBUG smtp session: encryption_keysize=256
2016-06-16 09:48:43 DEBUG Skip plugin: reject_null_sender (protocol_state != END-OF-MESSAGE)
2016-06-16 09:48:43 DEBUG Skip plugin: reject_sender_login_mismatch (protocol_state != END-OF-MESSAGE)
2016-06-16 09:48:43 DEBUG Skip plugin: greylisting (protocol_state != END-OF-MESSAGE)
2016-06-16 09:48:43 DEBUG --> Apply plugin: throttle
2016-06-16 09:48:43 DEBUG Bypass sender throttling (No sasl_username).
2016-06-16 09:48:43 DEBUG Check recipient throttling.
2016-06-16 09:48:43 DEBUG [SQL] Query throttle setting:
....         
2016-06-16 09:48:43 DEBUG [SQL] Query result:
[]
2016-06-16 09:48:43 DEBUG No recipient throttle setting.
2016-06-16 09:48:43 DEBUG <-- Result: DUNNO
2016-06-16 09:48:43 DEBUG Skip plugin: sql_alias_access_policy (protocol_state != END-OF-MESSAGE)
2016-06-16 09:48:43 DEBUG Skip plugin: amavisd_wblist (protocol_state != END-OF-MESSAGE)
2016-06-16 09:48:43 DEBUG Session ended
2016-06-16 09:48:43 INFO [113.98.*.*] END-OF-MESSAGE, zhangyh@163.com -> mlist@mehow.com, DUNNO




表mailbox 字段信息如下
+----------------+----------------+-----------------+-------------------+--------------------+
| username              | allowedsenders     | rejectedsenders | allowedrecipients | rejectedrecipients |
+----------------+----------------+-----------------+-------------------+--------------------+
| mlist@mehow.com | test@mehow.com | @.                     | @mehow.com         | @.                     |
+----------------+----------------+-----------------+-------------------+--------------------+

问题描述,
无法控制只允许test@mehow.com 发送邮件到  mlist@mehow.com
amavisd_wblist 插件已启用。

回复: iredapd 控制邮件收发权限问题

mailbox 里的这四个字段早已弃用,请改用 "amavisd_wblist" 插件并添加它需要的黑白名单数据。

用 iRedAdmin-Pro 可以直接管理黑白名单。请看截图。
用 sql 命令行管理较为复杂,这里是详细的文档:
https://amavis.org/README.sql.txt