delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/11/21:57:02

X-Spam-Check-By: sourceware.org
Message-ID: <ee2fbe8d0703111956p4d829f84see992b5640475cb6@mail.gmail.com>
Date: Sun, 11 Mar 2007 22:56:37 -0400
From: Peatey <peatey AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re: [cygrunsrv] problem starting exim as service
In-Reply-To: <ee2fbe8d0703111741p126dc1b1m968b5e5a38a4c0e5@mail.gmail.com>
MIME-Version: 1.0
References: <ee2fbe8d0703111109v34a5975dj32f02457f6849667 AT mail DOT gmail DOT com> <ee2fbe8d0703111741p126dc1b1m968b5e5a38a4c0e5 AT mail DOT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l2C2upoO013065

Success! your showing me about cygcheck solved it.  Now I'm moving on
to configuring /etc/exim.conf, but I thought I'd document for a future
neophyte with the same problem.

The issue was with cyglber-2-3-0.dll and cygldap-2-3-0.dll not being
installed automatically with 'exim-4.66-1' package in setup.exe (2-2-7
dlls were installed instead).  Perhaps this is an application
packaging bug for 'exim-4.66-1'?

The issue was not the PATH environmental variable (which I already had
set correctly before).
The issue does not seem to be the file permissions either (I set the
chown/chmod for /var/log/exim and /var/spool/exim back to
peatey:User/770 and the service still starts fine).

Thanks René, three cheers for the helpful cygwin mailing list!

> Just for the record, if you run `cygcheck /usr/bin/exim-4.66-1.exe` before
> changing the PATH, you'll see that the executable does not find some of the
> libraries (/usr/bin/exim is a symbolic link to the real executable); the path
> where those are should be added to Window' PATH (the service doesn't see the
> same PATH you see inside a shell, it sees the general Windows PATH or one
> specified at the time the service is installed).

$ cygcheck /usr/bin/exim-4.66-1.exe
C:/cygwin/bin/exim-4.66-1.exe
  C:/cygwin/bin\cygcrypt-0.dll
    C:/cygwin/bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\KERNEL32.dll
        C:\WINDOWS\system32\RPCRT4.dll
  C:/cygwin/bin\cygcrypto-0.9.8.dll
  C:/cygwin/bin\cyggdbm-4.dll
  C:/cygwin/bin\cygiconv-2.dll
Error: could not find cyglber-2-3-0.dll
Error: could not find cygldap-2-3-0.dll
  C:/cygwin/bin\cygminires.dll
  C:/cygwin/bin\cygssl-0.9.8.dll
Error: could not find cyglber-2-3-0.dll
Error: could not find cyglber-2-3-0.dll
Error: could not find cyglber-2-3-0.dll

Well, cygcheck couldn't find it in /bin, since those .dlls weren't
there.  So I searched for the names in the Cygwin Package List and
installed 'libopenldap2_3_0' package. I then ran cygcheck again.

$ cygcheck /usr/bin/exim-4.66-1.exe
C:/cygwin/bin/exim-4.66-1.exe
  C:/cygwin/bin\cygcrypt-0.dll
    C:/cygwin/bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\KERNEL32.dll
        C:\WINDOWS\system32\RPCRT4.dll
  C:/cygwin/bin\cygcrypto-0.9.8.dll
  C:/cygwin/bin\cyggdbm-4.dll
  C:/cygwin/bin\cygiconv-2.dll
  C:/cygwin/bin\cyglber-2-3-0.dll
  C:/cygwin/bin\cygldap-2-3-0.dll
    C:/cygwin/bin\cygminires.dll
    C:/cygwin/bin\cygssl-0.9.8.dll
    C:/cygwin/bin\cygsasl2-2.dll

$ exim-config
************************************************
This script sets some key parameters of the exim
installation and starts the exim daemon.
See the details in /usr/share/doc/Cygwin/exim-X-Y.README.
    Interrupt with ^D.

OK. No usernames contain spaces.

OK. The /etc/aliases file contains "postmaster".

OK. The primary hostname gmail.com
    is already defined in /etc/exim.conf.

INFO: Some programs expect /usr/sbin/sendmail to handle mail.
Currently it is a symbolic link to /usr/bin/exim.

Exim is already installed as a service under account 'LocalSystem'.
Do you want to remove or reinstall it? (yes/no) yes
OK. The exim service was removed.

Do you want to install the exim daemon as a service? (yes/no) yes
Enter the period of the queue runner, in minutes: [15]
Enter the value of CYGWIN for the daemon: [ntsec notraverse]

Do you want to start the exim daemon as a service now? (yes/no) yes
OK. The mail daemon is now accepting mail.
    You can test it with "telnet localhost 25".

INFO: The exim log files are in /var/log/exim.

When everything else fails,
    read /usr/share/doc/Cygwin/exim-X-Y.README,
    or look up the documentation on www.exim.org.
Many happy mailings :)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019