Configure OpenDKIM with Postfix on Debian Wheezy

Postfix_logoShort tutorial how to install and configure OpenDKIM with Postfix on Debian Wheezy. OpenDKIM is really useful for signing your mail messages by generated pair of private key which is afterwards validated by public key stored as TXT DNS record for lookup by other servers. In result, If you want avoid your sent messages to be marked as spam, follow this easy tutorial. This will help other mail servers to trust your mail server.

I assume you have properly installed and configured postfix.

At the end of the file add:

Replace by your mail server IP Address.

Uncomment SOCKET=”inet:[email protected]”.

At the end of the file add:

 If you want to add domain with DKIM support, do always these steps:

 Add Output of cat to your DNS server as TXT record, sample output should look like this:

Here is how it should look in Bind:

If you add DNS records through provider web app :

For debugging you can watch syslog or postfix mail.log if OpenDKIM throw any error messages, for example badly configured SigningTable.

I also recommend you setup SPF records for more trusted mail server, it’s just one additional DNS TXT record. There is simple wizard which will guide you how to genereate TXT record:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.