DKIM for outgoing mail

After version 2.3 , RaidenMAILD adds DKIM for outgoing mail. It could sign your outgoing mail with DKIM signature. If you need to know more detail about DKIM, please refer

To use DKIM, you need two important settings as following. Take as domain example, we need to specify a selector string to recognize the key pair which server uses. In this example, we use s1024 as selector of

  • Mail Server side: We need to generate a keypair first (private key file and public key file) and set s1024 to be selector for to enable DKIM for the domain.


  • DNS Server side: In DNS Server, we need to create a TXT record named , The text content of the record is the DKIM TXT RECORD when you done key pair generating. The contents looks like below:


(Ignore the Carriage-Returnn, above is a continuous string)


After finishing these two settings, you need to wait the TXT record to take effect.

How to test DKIM? First, I want to show you how to use nslookup command to query DKIM TXT Record.

> set q=txt
Address: 2001:b000:168::1

Non-authoritative answer: text =


If the record is successfully queried, it means your DKIM is ready to go. Send a mail from to yahoo/gmail...etc, then find your mail and check the mail source/header, you may find the following information in mail headers.

Authentication-Results:; domainkeys=neutral (no sig);; dkim=pass (ok)

This means your mail was successfully added DKIM signature to it and passed the DKIM checking.

One more thing needs to be clear. A DKIM mail doesn't mean it will not be treated as spam mail, it is just a mechanism to identify the mail host which sent from.





Back to Index

Copyright © RaidenMAILD TEAM

Copyright (C) . , all rights reserved. The copyrighted works contained in this information service shall not be copied, reproduced, varied, altered, modified, adapted, distributed, performed and displayed in any form without the written permission of the copyright owner. All trademarks belong to their respective owners .