Hello,

I just upgraded a few servers to FreeBSD 5.1, and one of them was
running courier-imap, configured with:

./configure --prefix=/usr/local/courier --with-authmysql
--with-mysql-libs=/usr/local/mysql/lib/mysql
--with-mysql-includes=/usr/local/mysql/include/mysql
--disable-root-check

(last one is cause I'm to lazy to su sometimes :))

The problem is as follows:

If you assign an IPv4 ADDRESS in either pop3d/imapd/pop3d-ssl/imapd-ssl
configfile, then couriertcpd won't start and gives the output:

bind: Can't assign requested address
ll_daemon_start: Resource temporarily unavailable

Normally, something is already running on this port :)
However, I'm 100% sure that ONLY sshd is running on port 22 (sockstat
-4 output:)

root     sshd       487   4  tcp4   *:22                  *:*


If you specify '0' as the ADDRESS (wildcard), couriertcpd will function
just fine, even in combination with IPv6 (via the PORT argument)

Even if you specify an IPv4-address via the PORT argument, it doesn't
work :( For example: PORT=127.0.0.1.143 gives the same error.

I noticed this if in tcpd/tcpd.c :

        /* Create an IPv6 or an IPv4 socket */

#if     RFC1035_IPV6
        if (flags & MKS_USEAFINET4)


It correctly enters the if, BUT flags is 0 ...

I don't know WHY it is 0, but if I change the 0 into a 1 in the 'static int 
mksockets() {' 

(int fd=mksocket(p->ipaddr, p->servname, 1);) 

then couriertcpd binds correctly to the ADDRESS I specified !

Is there anyone who can confirm this ? I hope this is a couriertcpd 'bug' (big word 
:)) and not something I can do anything about :)

Greetings,

-- 
WideXS                          http://www.widexs.nl
Wouter de Jong                  System-Administrator
Tel +31 (0)23 5698070           Fax +31 (0)23 5698099
Bijlmermeerstraat 62,           2131 HG  HOOFDDORP, NL


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to