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 123.123.123.123 by your mail server IP Address.

Uncomment SOCKET=”inet:12345@localhost”.

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: http://www.spfwizard.net/

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">