iredmail-doc/zh_CN/troubleshooting/debug.amavisd.md

17 lines
431 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 调试 Amavisd 和 SpamAssassin
找到[Amavisd 配置文件](./file.locations.html#amavisd),修改 `$log_level` 参数,
然后重启 amavisd 服务。
```
$log_level = 5; # 日志等级0 到 5或 -d
```
如果需要调试 SpamAssassin请同时修改 `$sa_debug` 参数:
```
$sa_debug = 1;
```
在 iRedMail 里Amavisd 会记录日志到 [Postfix 日志文件](./file.locations.html#postfix)。