<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=DKIM_for_Multiple_Domains</id>
	<title>DKIM for Multiple Domains - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=DKIM_for_Multiple_Domains"/>
	<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=DKIM_for_Multiple_Domains&amp;action=history"/>
	<updated>2026-05-05T16:11:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.d3xt3r01.tk//index.php?title=DKIM_for_Multiple_Domains&amp;diff=375&amp;oldid=prev</id>
		<title>Admin: New page: ==WHY==  Because one mail server can host multiple domains and you want it to sign it for all/some domains, not only one ! Google in fact only accepts mail from me if I sign them ! I assum...</title>
		<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=DKIM_for_Multiple_Domains&amp;diff=375&amp;oldid=prev"/>
		<updated>2010-02-24T08:57:43Z</updated>

		<summary type="html">&lt;p&gt;New page: ==WHY==  Because one mail server can host multiple domains and you want it to sign it for all/some domains, not only one ! Google in fact only accepts mail from me if I sign them ! I assum...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==WHY==&lt;br /&gt;
&lt;br /&gt;
Because one mail server can host multiple domains and you want it to sign it for all/some domains, not only one ! Google in fact only accepts mail from me if I sign them ! I assume you already have it set up for 1 domain and have the knowledge to edit files and read configs. An important useful also is ABILITY TO GOOGLE !&lt;br /&gt;
&lt;br /&gt;
==HOW==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/etc/mail/dkim-filter # Because here is where I store my certs&lt;br /&gt;
# Generate a new key for a new domain&lt;br /&gt;
/usr/bin/dkim-genkey -r -s mydkim -D /etc/mail/dkim-filter -d mydomain1.com # you should now have a &amp;quot;default.txt&amp;quot; and a &amp;quot;default.private&amp;quot; file&lt;br /&gt;
mv mydkim.txt mydkim.mydomain1.com.txt # so we have it later too, this is the stuff we publish in named&amp;#039;s zone file !&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, add these lines to your domains zone file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
_adsp._domainkey        TXT     &amp;quot;dkim=all&amp;quot;&lt;br /&gt;
_ssp._domainkey IN TXT &amp;quot;t=y; dkim=unknown&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also do this to find out your keylist file !&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
grep -i keylist /path/to/your/dkim-filter.conf&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mine is &amp;quot;KeyList		/etc/mail/dkim-filter/keylist&amp;quot; so I set this up:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mv /etc/mail/dkim-filter/mydkim.private /etc/mail/dkim-filter/keys/mydomain1.com/mydkim&lt;br /&gt;
*@mydomain1.com:d3xt3r01.tk:/etc/mail/dkim-filter/keys/mydomain1.com/mydkim&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to have this in your main.cf&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#don&amp;#039;t forget to check dkim-filter.conf for the sock file path !&lt;br /&gt;
smtpd_milters     = unix:/var/run/dkim-filter/dkim-filter.sock&lt;br /&gt;
non_smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart dkim and postfix and be done with it !&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
/etc/init.d/postfix restart&lt;br /&gt;
/etc/init.d/dkim-filter restart&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: DKIM]]&lt;br /&gt;
[[Category: Postfix]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>