Qmail Domain Keys

Installation
Bolded text means you should add the information relevant to your setup.

set up netqmail

Unfortunately there is no ebuild for qmail-dk so you will need to download the qmail source code and qmail-dk patch to build qmail-dk.

Edit the following:

run make:

It may fail but qmail-dk should have been created which is all that is needed.

Setting up your RSA key pair
Make your public domainkey:

Create a TXT record for your DNS using BIND

 * Edit your /var/bind/example.com.hosts file.

Modify /etc/tcprules.d/tcp.qmail-smtp

 * Make sure to change example.com to your domain

Where it says

add the following so it looks like this

Run:

Modify /etc/tcprules.d/tcp.qmail-smtp (with qmail-scanner)
Where it says

add the following so it looks like this

Run:

Modify /etc/tcprules.d/tcp.qmail-qmtp

 * Make sure to change example.com to your domain

Where it says

add the following so it looks like this

Run:

Testing your new domainkey
You can test your new domainkey at these two websites.


 * http://senderid.espcoalition.org/
 * http://domainkeys.sourceforge.net/policycheck.html

Conclusion
Once you have everything working and the tests pass you can remove the following from your file:

The t=y; means that your domain is in testing mode. After you remove it remember to restart bind

Also be aware that your key may not work right away. You have to wait for your DNS information to propogate around the world.