On Thu, 8 Jun 2006, Gabriel Kihlman wrote:

> > Because of that I just need popa3d to listen on 127.0.0.1.
> 
> Index: standalone.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/popa3d/standalone.c,v
> retrieving revision 1.10
> diff -u -r1.10 standalone.c
> --- standalone.c      13 Mar 2005 19:29:44 -0000      1.10
> +++ standalone.c      8 Jun 2006 08:15:33 -0000
> @@ -127,7 +127,7 @@
>       hints.ai_socktype = SOCK_STREAM;
>       hints.ai_family = af;
>       hints.ai_flags = AI_PASSIVE;
> -     error = getaddrinfo(NULL, sbuf, &hints, &res0);
> +     error = getaddrinfo("127.0.0.1", sbuf, &hints, &res0);
>       if (error)
>               return log_error("getaddrinfo");
> 

Why go through all of this trouble when you can just run it out of
inetd(8)?

[127.0.0.1]:pop3 stream tcp  nowait root /usr/libexec/tcpd /usr/sbin/popa3d
[::1]:pop3       stream tcp6 nowait root /usr/libexec/tcpd /usr/sbin/popa3d

-d

Reply via email to