[tpop3d-discuss] Re: FreeBSD listener_new: bind problem

Chris Lightfoot chris at ex-parrot.com
Thu, 21 Aug 2003 16:29:39 +0100

    [ to list ]

On Thu, Aug 21, 2003 at 05:13:44PM +0200, Micha? Czerwi?ski wrote:
> I've just updated the 1.4.2 to 1.5.1 and now i'm having a problem with
> binding to the address.
> Old version works just great:
> [root@mail 17:05:49 ~/tpop3d-1.4.2]# less /etc/tpop3d.conf
> listen-address: mail.inomail.pl
> max-children: 20
> mailbox: bsd:/var/mail/$(user)
> auth-pam-enable: yes
> [root@mail 17:05:30 ~/tpop3d-1.4.2]# ./tpop3d -d
> listening on address, port 110, domain inomail.pl
> 1 authentication drivers successfully loaded
> net_loop: tpop3d version 1.4.2 successfully started
> But when using 1.5.1...we have
> [root@mail 17:11:23 ~]# tpop3d -d
> listener_new: bind( Can't assign requested address
> /usr/local/etc/tpop3d.conf: no listen addresses obtained; exiting
> Any ideas?

You find bind(2) returns -1 with errno == EADDRNOTAVAIL.

Usually that would happen when the machine doesn't have an
interface with the requested address. But since the
previous version works, that can't be the difficulty.

Further, it appears that you're trying to bind to the
proper address.

Is it possible that something else is already bound to
that address? (Of course, that should give EADDRINUSE.)

``Normal people work, eat, breed, sleep and excrete.
  The rest of the time they're watching other people
  eat, breed, sleep and excrete on reality TV.'' (seen on the internet)