Jason Tishler jason@tishler.net
Fri Feb 21 18:00:00 GMT 2003

On Fri, Feb 21, 2003 at 10:37:41AM -0500, Christopher Faylor wrote:
> Is there anything wonderful waiting in the wings?

Um, maybe...

I just upgraded exim to 4.12-3 from 4.10-2 and exim started to misbehave
when run under Cygwin CVS (from 2003-02-20).

First, I noticed the following in exim's log file:

    2003-02-21 11:06:10 cannot find smtp/tcp service when starting daemon

Under strace or gdb, the above problem did not occur.  Instead, I got
the following:

    2003-02-21 11:11:06 IPv4 socket creation failed: Operation not permitted

which is further on during the initialization of the daemon.

I tracked the first problem down to the following exim code:

  if (default_smtp_port < 0)
    struct servent *smtp_service;
    if ((smtp_service = getservbyname("smtp", "tcp")) == NULL)
      log_write(0, LOG_MAIN|LOG_PANIC_DIE, "cannot find smtp/tcp service "
        "when starting daemon");
    default_smtp_port = ntohs(smtp_service->s_port);

I wrote a small test program to drive getservbyname() and it works just

I really needed to send some email so I switch back to exim 4.10-2 and
exim works as before.

Sorry, this is as far as I have gotten with this one...

I will try 1.3.20-1, the latest snapshot, and debug some more.  I hope
to report back soon with something more useful.  Maybe this post should
have gone to cygwin@ or /dev/null instead... :,)


PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

More information about the Cygwin-developers mailing list