iredmail-doc/html_bk/debug.amavisd-zh_CN.html

32 lines
1.9 KiB
HTML
Raw 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.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>调试 Amavisd 和 SpamAssassin</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="https://www.iredmail.org" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages. <a href="https://github.com/iredmail/docs">Help translate more</a></p>
<p><a href="./debug.amavisd.html">English</a> /</p>
</div>
<h1 id="amavisd-spamassassin">调试 Amavisd 和 SpamAssassin</h1>
<p>找到<a href="./file.locations.html#amavisd">Amavisd 配置文件</a>,修改 <code>$log_level</code> 参数,
然后重启 amavisd 服务。</p>
<pre><code>$log_level = 5; # 日志等级0 到 5或 -d
</code></pre>
<p>如果需要调试 SpamAssassin请同时修改 <code>$sa_debug</code> 参数:</p>
<pre><code>$sa_debug = 1;
</code></pre>
<p>在 iRedMail 里Amavisd 会记录日志到 <a href="./file.locations.html#postfix">Postfix 日志文件</a></p><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div></body></html>