Can't get opendkim to work on Ubuntu

From: Paul N. Pace <>
Date: Tue, 16 Apr 2013 15:00:11 -0700

I just set up my first mail server on Ubuntu 12.04 LEMP server with
Postfix and Dovecot using a great guide[1], and it may have been the
happiest day of my life to send an email to my Gmail account. The only
problem was that the email ended up in the Gmail spam folder, so I
went to work setting up SPF and DKIM. SPF is fine, but DKIM isn't

I installed opendkim and followed the guide in the Ubuntu Community
Help page[2]. However, I did not install opendkim-tools as it caused a
conflict and it seems opendkim has all of the necessary packages.

The problem is that the headers do not appear in sent emails. I have
tried both the loopback port (SOCKET="inet:8891_at_localhost") and the
unix domain socket (SOCKET="local:/var/run/opendkim/opendkim.sock")
and neither option gets headers in the emails. I do get errors in
/var/log/mail.log depending on which I've set up for:

mail postfix/smtpd: warning: invalid transport name: SOCKET="inet in
MIlter service: SOCKET="inet:8891_at_localhost"
mail postfix/smtpd: warning: connect to Milter service
local:/var/run/dkim-filter/dkim/filter.sock: No such file or directory

I tried to troubleshoot my firewall, which I have set up using ufw and
allowing the apps that I have installed. In /etc/ufw/before.rules it
has the default settings for loopback:

# allow all on loopback
-A ufw-before-input -i lo -j ACCEPT
-A ufw-before-output -o lo -j ACCEPT

But I don't see these rules when I run iptables -L.

Even though I am still learning these things, I feel my preference
would be to have it set up for Unix domain sockets anyhow, but getting
DKIM working through any method would be great.

If someone can help me to get opendkim up and running, I will happily
update the Ubuntu Community Help page for opendkim to help those like
me who may be having similar issues.

Received on Tue Apr 16 2013 - 22:00:44 PST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2013 - 22:09:02 PST