Re: Unable to bind to port

From: Murray S. Kucherawy <msk_at_blackops.org>
Date: Thu, 22 Mar 2012 18:03:28 -0700 (PDT)

On Fri, 23 Mar 2012, justatry wrote:
> Hi all,
> my /var/log/mail.warn is full of this message :
>
> opendkim[30622]: OpenDKIM Filter: Unable to bind to port inet:8891_at_localhost: Address already in use
> opendkim[30622]: OpenDKIM Filter: Unable to create listening socket on conn inet:8891_at_localhost

You're trying to start opendkim when either:

a) It's already running, or
b) Something else is already running using localhost port 8891.

> and my var/log/mail.log is full of this one :
> opendkim[16467]: OpenDKIM Filter v2.5.1 starting (args: -x /etc/opendkim.conf -u opendkim)
> opendkim[16467]: OpenDKIM Filter: Unable to bind to port inet:8891_at_localhost: Address already in use
> opendkim[16467]: OpenDKIM Filter: Unable to create listening socket on conn inet:8891_at_localhost
> opendkim[16467]: OpenDKIM Filter v2.5.1 terminating with status -1, errno = 98
> opendkim[20197]: exited with status 255, restarting

You have it set to auto-restart, possibly without bound.

> may I try to kill opendkim but doing a "killall opendkim" without any
> risk ? if so, will I be abble to restart the opendkim process by just
> doing "/etc/init.d/opendkim start"

Yes, that should be fine. If you still can't restart it and get the same
error, you need to configure it for a port that's not in use by something
else.

The "netstat" and "lsof" system tools might be able to help you figure out
what's already using that port.

-MSK
Received on Fri Mar 23 2012 - 01:03:46 PST

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