Re: Can't get opendkim to work on Ubuntu

From: Paul N. Pace <paulnpace_at_gmail.com>
Date: Sun, 21 Apr 2013 13:30:45 -0700

I was able to get this working with your help, Scott, thank you.

I updated the Ubuntu Community Help page on opendkim. Please let me
know if you spot an error or have a suggestion:
https://help.ubuntu.com/community/Postfix/DKIM#Installation

I noticed some others posting on their experience with Yahoo! and
Gmail spam filters.

I observed that initially Gmail saw my server as spam using only SPF,
but quickly moved me out of spam on only the second or third message.
I verified on a friend's Gmail that this wasn't an anomaly exclusive
to my Gmail spam folder. On Yahoo! I was never in spam until I got
DKIM working, and then it was only for one email.

One thing I wondered was whether it made a difference emailing from my
BlackBerry, which BlackBerry uses their own server with their SPF (no
DKIM) to send mail from. I didn't realize this until I had sent
several emails to both accounts.



On Tue, Apr 16, 2013 at 5:49 PM, Scott Kitterman
<ietf-dkim_at_kitterman.com> wrote:
> Manually create the run directory (note: this shouldn't be needed, but it
> should resolve the particular issue you're hitting for some reason):
>
> sudo mkdir /var/run/opendkim
>
> You don't need to worry about /var/spool/postfix unless you switch to a Unix
> socket, which you shouldn't need to do. If you do run opendkim via Unix
> socket withe postfix in a chroot, there may be other things you need to change
> as well. I recommend using the TCP socket.
>
> Scott K
>
> On Tuesday, April 16, 2013 05:13:36 PM Paul N. Pace wrote:
>> Just before getting your email I had performed 'apt-get remove opendkim'
>> and then 'apt-get autoremove'. and then followed the Ubuntu Community Help
>> page on backports, which states all versions 11.04 and later by default do
>> not use backports, and IAW the guide ran 'aptitude install
>> opendkim/precise-backports' and got the following message at the bottom of
>> the installation feed:
>>
>> Configuration file `/etc/opendkim.conf'
>> ==> Modified (by you or by a script) since installation.
>> ==> Package distributor has shipped an updated version.
>> What would you like to do about it ? Your options are:
>> Y or I : install the package maintainer's version
>> N or O : keep your currently-installed version
>> D : show the differences between the versions
>> Z : start a shell to examine the situation
>> The default action is to keep your current version.
>> *** opendkim.conf (Y/I/N/O/D/Z) [default=N] ? Y
>> Installing new version of config file /etc/opendkim.conf ...
>> chown: cannot access `/var/run/opendkim': No such file or directory
>> dpkg: error processing opendkim (--configure):
>> subprocess installed post-installation script returned error exit status 1
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>> A package failed to install. Trying to recover:
>> Setting up opendkim (2.6.8-0ubuntu1~ubuntu12.04.1) ...
>> chown: cannot access `/var/run/opendkim': No such file or directory
>> dpkg: error processing opendkim (--configure):
>> subprocess installed post-installation script returned error exit status 1
>> Errors were encountered while processing:
>> opendkim
>>
>> And similar after 'aptitude install opendkim-tools/precise-backports:
>>
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>> A package failed to install. Trying to recover:
>> Setting up opendkim (2.6.8-0ubuntu1~ubuntu12.04.1) ...
>> chown: cannot access `/var/run/opendkim': No such file or directory
>> dpkg: error processing opendkim (--configure):
>> subprocess installed post-installation script returned error exit status 1
>> Errors were encountered while processing:
>> opendkim
>>
>> Now I am getting the following message in /var/log/mail.log:
>>
>> mail postfix/smtpd: fatal: 8891:localhost: valid hostname or network
>> address required
>>
>> And the following new message in /var/log/mail.err:
>>
>> mail postfix/smtpd: fatal: 8891:localhost: valid hostname or network
>> address required
>>
>> Also, in response to your suggestions on using sockets /var/spool/postfix/
>> does not have a 'run' folder.
>>
>> On Tue, Apr 16, 2013 at 4:04 PM, Scott Kitterman <ietf-
> dkim_at_kitterman.com>wrote:
>> > Packages only get pulled from backports if you explicitly request it, so
>> > it's safe to enable.
>> >
>> > sudo apt-get -t precise-backports install opendkim
>> >
>> > (That's from memory - it's close, but may not be exactly correct)
>> >
>> > Scott K
>> >
>> > "Paul N. Pace" <paulnpace_at_gmail.com> wrote:
>> > >Thank you, Scott, I will try those solutions shortly.
>> > >
>> > >I installed 'opendkim' from current repositories as I have not enabled
>> > >backports. Will backports cause issues with any other packages? I'm not
>> > >clear on how backports works and whether or not I would update or
>> > >install packages from backports that I might prefer come from Precise.
>
Received on Sun Apr 21 2013 - 20:31:19 PST

This archive was generated by hypermail 2.3.0 : Sun Apr 21 2013 - 20:36:01 PST