Re: OpenDKIM not doing anything on RHEL 6.1

From: Steve Jenkins <stevejenkins_at_gmail.com>
Date: Mon, 19 Sep 2011 17:52:35 -0700

On Mon, Sep 19, 2011 at 4:13 PM, Rory Jaffe <rjaffe_at_chpso.org> wrote:
> I have RHEL 6.1 and postfix, and installed openDKIM using the EPEL repository. When I send an email from the server, opendkim doesn’t do anything. Is there something I've done wrong that needs fixing? I checked processes and opendkim is running. I generated a key which is located at /etc/opendkim/keys/chpso.org/default.
>
> Thanks--Rory
>
> /etc/postfix/main.cf includes the following:
> smtpd_milters           = inet:127.0.0.1:8891
> non_smtpd_milters       = $smtpd_milters
> milter_default_action   = accept
>
> /etc/opendkim/KeyTable has:
> default._domainkey.chpso.org chpso.org:default:/etc/opendkim/keys/chpso.org/default
>
> /etc/opendkim/SigningTable has:
> chpso.org default._domainkey.chpso.org
>
> /etc/opendkim/TrustedHosts has:
> 127.0.0.1
>
> /etc/opendkim.conf has (comment lines removed)
> PidFile /var/run/opendkim/opendkim.pid
> Mode    sv
> Syslog  yes
> SyslogSuccess   yes
> UserID  opendkim:opendkim
> Socket  inet:8891_at_localhost
> Umask   002
> Canonicalization        relaxed/simple
> Selector        default
> KeyTable        refile:/etc/opendkim/KeyTable
> SigningTable    refile:/etc/opendkim/SigningTable
> ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
> InternalHosts   refile:/etc/opendkim/TrustedHosts
>
> And here's the log when I start this up and send an email.
>
> Sep 19 15:29:14 www opendkim[28384]: OpenDKIM Filter v2.4.2 starting (args: -x /etc/opendkim.conf -P /var/run/opendkim/opendkim.pid)
> Sep 19 15:29:18 www postfix/postfix-script[28394]: refreshing the Postfix mail system
> Sep 19 15:29:18 www postfix/master[1679]: reload -- version 2.6.6, configuration /etc/postfix
> Sep 19 15:29:45 www postfix/pickup[28399]: 5E1C32A0B7A: uid=0 from=<root>
> Sep 19 15:29:45 www postfix/cleanup[28403]: 5E1C32A0B7A: message-id=<20110919222945.5E1C32A0B7A_at_www.chpso.org>
> Sep 19 15:29:45 www postfix/qmgr[28398]: 5E1C32A0B7A: from=<root_at_www.chpso.org>, size=520, nrcpt=1 (queue active)
> Sep 19 15:29:45 www postfix/smtp[28406]: 5E1C32A0B7A: to=<rjaffe_at_chpso.org>, relay=west.smtp.exch023.serverdata.net[64.78.56.104]:25, delay=0.42, delays=0.1/0.02/0.06/0.24, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B5C7722B)
> Sep 19 15:29:45 www postfix/qmgr[28398]: 5E1C32A0B7A: removed

Maybe it's because 127.0.0.1 is in your InternalHosts (as it should
be), and you're sending mail FROM chpso.org TO chpso.org (which is
correct - you should be able to trust mail from your own host). Try
sending FROM your server TO Gmail or one of the other site addresses
at the end of this article:

http://stevejenkins.com/blog/2011/08/installing-opendkim-via-rpm-with-postfix-or-sendmail-for-rhel-centos-fedora/

Then let please us know how it goes!

SteveJ
Received on Tue Sep 20 2011 - 00:52:49 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:20 PST