Re: Issues installing/starting opendkim

From: Todd Lyons <tlyons_at_ivenue.com>
Date: Tue, 6 Dec 2011 09:46:24 -0800

On Fri, Dec 2, 2011 at 8:35 AM, RAM Designs <rickn_at_ramdesigns.com> wrote:
> I am trying to install opendkim on a server running RHEL 6.  I have followed
> the instructions at
> http://stevejenkins.com/blog/2011/08/installing-opendkim-rpm-via-yum-with-postfix-or-sendmail-for-rhel-centos-fedora/comment-page-1/#comment-16242
> by Steve Jenkins closely, but I still can't get opendkim to start.

If you haven't solved it by now, these are things that I would do:
1) Using vim, open the config files and text files that opendkim is
complaining about. Check if they are in a dos file format (vim will
say in the status line). If so, convert it to unix file format and
see what happens.
2) Check file and directory permissions to make sure the opendkim user
can access it:
  /etc/opendkim.conf
  /etc/opendkim/
  /etc/opendkim/*
  /var/lib/opendkim/
  /var/lib/opendkim/*
3) What port is it listening on? (assuming your're not using a unix
socket). netstat -ltn and see if anything else is already listening
on that port.
4) Figure out the command that your init script is running, add -f to
it to stay in the foreground (not daemonize), and see what it spits
out. Example:
  /usr/sbin/opendkim -x /etc/opendkim.conf -u dkim
becomes
  /usr/sbin/opendkim -x /etc/opendkim.conf -u dkim -f
5) If that doesn't help, use strace to see what it's doing:
  strace /usr/sbin/opendkim -x /etc/opendkim.conf -u dkim -f
6) Check for the firewall that might be blocking it:
  # Adding -v makes it list the interface it's applied to, if any
  iptables --list -n -v

Hopefully one of these will provide some kind of useful output that
more clearly identifies why it's having a problem.

...Todd

-- 
If Americans could eliminate sugary beverages, potatoes, white bread,
pasta, white rice and sugary snacks, we would wipe out almost all the
problems we have with weight and diabetes and other metabolic
diseases. -- Dr. Walter Willett, Harvard School of Public Health
Received on Tue Dec 06 2011 - 17:46:33 PST

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tue Dec 06 2011 - 21:50:06 PST