<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; dkim 2048</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/dkim-2048/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>How to install DKIM 2048 bits long key</title>
		<link>https://wiki.centos-webpanel.com/how-to-install-dkim-2048-bits-long-key</link>
		<comments>https://wiki.centos-webpanel.com/how-to-install-dkim-2048-bits-long-key#comments</comments>
		<pubDate>Sun, 09 Jan 2022 20:41:36 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[E-Mail]]></category>
		<category><![CDATA[dkim 2048]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1675</guid>
		<description><![CDATA[You might need to install a custom DKIM key on your CWP DNS/bind server in case if you use your CWP server for nameservers and you use some external mail server with a custom DKIM key. In the user panel, you can do that by using DNS Zone Editor. Add New TXT Record and make [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>You might need to install a custom DKIM key on your CWP DNS/bind server in case if you use your CWP server for nameservers and you use some external mail server with a custom DKIM key.</p>
<p>In the user panel, you can do that by using DNS Zone Editor.<br />
Add New TXT Record and make sure you split 2048 bit long key in half and wrap in quotes.</p>
<p><strong>Example of the full key:</strong></p>
<pre>v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlTtO1qRFaK955gz16Y8c1EMCqtaT4exCrwfor2yT438ZVjrUcqo2tPUNR4eqkD+xcKRQnWSw931uVUY6YJWtOrgrXTIrHnTkf5Xtg+jaXr0OhjdeVDIG/Le7oOVWncMf+9J4ZSRybOpb+XZPp/JLjis6pmCLrt5j82yBC9DCbsEPSOVVOC1mr5lq8irQs+qAv6M/DnjNcUrdiRBJyNrs2lfuvfs8BFceZAk1AwcVBcYCmZl5OkxZBn8liTC34FPJLLHm6jMp9+c0OaEtxo8zr3QX0ZYEWC3XqZ/p9fo4Pcg+fpyjee79wBVqUzhVAWdzE5+qAIn4e1Dmslyb6IX4mwIDAQAB</pre>
<p><strong>Example of key split, first half:</strong></p>
<pre>v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlTtO1qRFaK955gz16Y8c1EMCqtaT4exCrwfor2yT438ZVjrUcqo2tPUNR4eqkD+xcKRQnWSw931uVUY6YJWtOrgrXTIrHnTkf5Xtg+jaXr0OhjdeVDIG/Le7oOVWncMf+9J4ZSRybOpb+XZPp/JLjis6pmC</pre>
<p><strong>second half:</strong></p>
<pre>Lrt5j82yBC9DCbsEPSOVVOC1mr5lq8irQs+qAv6M/DnjNcUrdiRBJyNrs2lfuvfs8BFceZAk1AwcVBcYCmZl5OkxZBn8liTC34FPJLLHm6jMp9+c0OaEtxo8zr3QX0ZYEWC3XqZ/p9fo4Pcg+fpyjee79wBVqUzhVAWdzE5+qAIn4e1Dmslyb6IX4mwIDAQAB</pre>
<p><strong>And now you can add it like this, both parts wrapped in the quotes:</strong></p>
<pre>"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlTtO1qRFaK955gz16Y8c1EMCqtaT4exCrwfor2yT438ZVjrUcqo2tPUNR4eqkD+xcKRQnWSw931uVUY6YJWtOrgrXTIrHnTkf5Xtg+jaXr0OhjdeVDIG/Le7oOVWncMf+9J4ZSRybOpb+XZPp/JLjis6pmC" "Lrt5j82yBC9DCbsEPSOVVOC1mr5lq8irQs+qAv6M/DnjNcUrdiRBJyNrs2lfuvfs8BFceZAk1AwcVBcYCmZl5OkxZBn8liTC34FPJLLHm6jMp9+c0OaEtxo8zr3QX0ZYEWC3XqZ/p9fo4Pcg+fpyjee79wBVqUzhVAWdzE5+qAIn4e1Dmslyb6IX4mwIDAQAB"</pre>
<p><em>* Wrap in quotes both parts and split it by space in the same line.</em></p>
<p><a href="http://wiki.centos-webpanel.com/wp-content/uploads/2022/01/Screenshot-from-2022-01-09-21-39-00.png"><img src="http://wiki.centos-webpanel.com/wp-content/uploads/2022/01/Screenshot-from-2022-01-09-21-39-00-1024x360.png" alt="Screenshot from 2022-01-09 21-39-00" width="980" height="345" class="alignnone size-large wp-image-1678" /></a></p>
<hr />
<h3>Manual Instructions:</h3>
<p>As an admin, you can also add it manually by editing the DNS zone file in /var/named/DOMAIN.COM.db ,example:</p>
<pre>default._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlTtO1qRFaK955gz16Y8c1EMCqtaT4exCrwfor2yT438ZVjrUcqo2tPUNR4eqkD+xcKRQnWSw931uVUY6YJWtOrgrXTIrHnTkf5Xtg+jaXr0OhjdeVDIG/Le7oOVWncMf+9J4ZSRybOpb+XZPp/JLjis6pmC" "Lrt5j82yBC9DCbsEPSOVVOC1mr5lq8irQs+qAv6M/DnjNcUrdiRBJyNrs2lfuvfs8BFceZAk1AwcVBcYCmZl5OkxZBn8liTC34FPJLLHm6jMp9+c0OaEtxo8zr3QX0ZYEWC3XqZ/p9fo4Pcg+fpyjee79wBVqUzhVAWdzE5+qAIn4e1Dmslyb6IX4mwIDAQAB"</pre>
<p>Then reload named/bind</p>
<pre>service named reload</pre>
<hr />
<h3>TESTING</h3>
<p>The output should show the full dkim line</p>
<pre>dig TXT default._domainkey.DOMAIN.COM @10.10.10.10</pre>
<p><em>* replace <strong>DOMAIN.COM</strong> and IP <strong>10.10.10.10</strong> with CWP IP</em></p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-install-dkim-2048-bits-long-key/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
