Re: [exim] Address already in use error even though exim is …

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Odhiambo Washington
Ημερομηνία:  
Προς: Gabriel Harrison
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Address already in use error even though exim is working
On Tue, Apr 1, 2008 at 1:15 PM, Gabriel Harrison
<gabriel@???> wrote:
> On Mon, Mar 31, 2008 at 2:12 PM, Ted Cooper <eximX1211@???> wrote:
>
> > Odhiambo Washington wrote:
> > > On Mon, Mar 31, 2008 at 2:08 PM, Gabriel Harrison <
> > > gabriel@???> wrote:
> > >
> > >> Hi,
> > >>
> > >> I'm getting periodic errors in the paniclog that I can't track down the
> > >> cause of. I'm running exim on a Debian vserver.
> > >>
> > >> The error is:
> > >>
> > >> 2008-03-31 08:20:59 socket bind() to port 25 for address (any IPv4)
> > >> failed:
> > >> Address already in use: daemon abandoned
> > >>
> > >
> > > You are sure nothing else is listening on port 25?
> > >
> > > netstat -anp | grep 25 (Linux)
> > > sockstat -l | grep 25 (FreeBSD, the one I know about)
> > >
> > >
> >
> > You might also want to look for anything in your cron or anywhere
> > mentioning running exim with "-bd" at all. Any time that is run with
> > exim already running or something sitting on that port it will throw
> > that error. Check absolutely every time you call exim like from a spam
> > scanning re-injection or any reports using exim to post. The list goes on.
> >
> > It's there .. just have to find it
>
>
> It looks like exim is somehow seeing the listener on the vserver host
> machine.
>
> If I stop it on one then the other will start! I'm now confused, I thought
> any vserver was isolated from the host.
>
> What I am trying to achieve is for the vservers to only bind to localhost
> but it is this that is conflicting with the listener on the host, which is
> also localhost only.
>
> How is it that exim sees the host binding from the vserver and vise-versa
> but netstat doesn't?
>
> Gabriel


Why don't you then just tell exim to bind to the IP you want? By
default Exim binds to all interfaces, including 127.0.0.1 (the
loopback interface). It seems netstat does not see the vserver
(whatever that is).
So in your Exim's configure file, add:

local_interfaces = <; 1.2.3.4; 5.6.7.8

[I have used the semicolon as separator]

This way exim will NOT bind to any other IP than the one specified.

HTH


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
                        --from a /. post