This commit is contained in:
Zhang Huangbin 2015-10-22 20:45:33 +08:00
parent a63b341017
commit f0a4834be5
2 changed files with 30 additions and 4 deletions

View File

@ -226,14 +226,29 @@ __Note__: BIND ([The most widely used Name Server Software](http://www.isc.org/d
can handle this kind of multi-line format, so you can paste it in your domain
zone file directly.
* Add a `TXT` type DNS record for domain name `dkim._domainkey.mydomain.com`,
* Add `TXT` type DNS record for domain name `dkim._domainkey.mydomain.com`,
set value to the line you copied above: `v=DKIM1; p=...`.
> WARNING: A usual mistake is adding this DKIM record to domain name
> `mydomain.com`, this is wrong. Please make sure you added to domain name
> `dkim._domainkey.mydomain.com`.
* After you added this in DNS, type below command to verify it:
* After you added this in DNS, verify it with `dig` or `nslookup`:
```
$ dig -t txt dkim._domainkey.mydomain.com
$ nslookup -type=txt dkim._domainkey.foodmall.com
```
Sample output:
```
dkim._domainkey.mydomain.com. 600 IN TXT "v=DKIM1\;p=..."
```
And verify it with Amavisd:
```shell
# amavisd testkeys

View File

@ -229,7 +229,7 @@ can handle this kind of multi-line format, so you can paste it in your domain
zone file directly.</p>
<ul>
<li>
<p>Add a <code>TXT</code> type DNS record for domain name <code>dkim._domainkey.mydomain.com</code>,
<p>Add <code>TXT</code> type DNS record for domain name <code>dkim._domainkey.mydomain.com</code>,
set value to the line you copied above: <code>v=DKIM1; p=...</code>.</p>
<blockquote>
<p>WARNING: A usual mistake is adding this DKIM record to domain name
@ -238,9 +238,20 @@ zone file directly.</p>
</blockquote>
</li>
<li>
<p>After you added this in DNS, type below command to verify it:</p>
<p>After you added this in DNS, verify it with <code>dig</code> or <code>nslookup</code>:</p>
</li>
</ul>
<pre><code>$ dig -t txt dkim._domainkey.mydomain.com
$ nslookup -type=txt dkim._domainkey.foodmall.com
</code></pre>
<p>Sample output:</p>
<pre><code>dkim._domainkey.mydomain.com. 600 IN TXT &quot;v=DKIM1\;p=...&quot;
</code></pre>
<p>And verify it with Amavisd:</p>
<pre><code class="shell"># amavisd testkeys
TESTING: dkim._domainkey.mydomain.com =&gt; pass
</code></pre>