delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/11/16:03:12

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: [cygrunsrv] problem starting exim as service
Date: Sun, 11 Mar 2007 16:02:34 -0500
Lines: 89
Message-ID: <et1qpb$lvq$1@sea.gmane.org>
References: <ee2fbe8d0703111109v34a5975dj32f02457f6849667 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
In-Reply-To: <ee2fbe8d0703111109v34a5975dj32f02457f6849667@mail.gmail.com>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
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

Peatey wrote:

> I'm having a frustrating time trying to get exim (current, 4.66-1) to
> start as service.  I'd appreciate any help to get exim to work as
> sendmail so I can get crontab started with MAILTO=3D.
>=20
> I was broadly following the steps outlined at
> http://pigtail.net/LRP/exim/exim-cygwin.html until the failure to
> start as service.

The in-famous pigtail site... did you read his comments at the main page?

> So I checked
> /usr/share/doc/Cygwin/exim-4.66-1.README which tells me that:

Now that's better, but you have strange directory ownership all over, did y=
ou
create the directories yourself?
[snip]
> OK. /etc/exim.conf created from /etc/defaults/etc/exim.conf.
------^^^^^^^^^^^^^^
BTW, this is the configuration file not the second one.

> Looking for the fully qualified primary hostname.
------------------^^^^^
> Is it "peatey1"? (yes/no) yes

That's not a _fully_qualified_ host name.

[snip]
> Enter the value of CYGWIN for the daemon: [ntsec notraverse]

What's the notraverse for?

[snip]
> $ cygrunsrv -V -Q exim
> Service             : exim
> Display name        : Exim
> Description         : Mail Transfer Agent
> Current State       : Stopped
> Command             : /usr/bin/exim -bdf -q15m
> stdin path          : /dev/null
> stdout path         : /var/log/exim/cygrunsrv_out.log
> stderr path         : /var/log/exim/cygrunsrv_err.log
> Environment         : CYGWIN=3D"ntsec notraverse"
> Process Type        : Own Process
> Startup             : Automatic
> Dependencies        : Tcpip
> Account             : LocalSystem

All looks fine, except that notraverse which I don't use, but I don't know =
if
that is the cause of the problem.

> $ cygrunsrv -S exim
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 106=
2:
> The service has not been started.

You should look at the events, there's something describing the problem the=
re.

[snip]
> $ ls -all /var/log
...
> drwxrwx---+  2 peatey Users    0 Mar 11 13:18 exim/
...
Doesn't look right, I have:
drwxrwxrwx+  2 SYSTEM  root      0 Feb 23 00:00 exim/

...
 > $ ls -all /var/spool
...
> drwxrwx---+  2 peatey Users 0 Mar 11 04:07 exim/

Same here, I have:
drwxrwxrwx+  6 SYSTEM  root 0 Mar 14  2006 exim/

> $ ls -all /var/spool/exim
> drwxrwx---+ 2 peatey Users 0 Mar 11 04:07 ./
> drwxrwx---+ 3 peatey Users 0 Mar 11 04:07 ../

Empty, exim could not create anything, that is the problem... exim is runni=
ng as
SYSTEM but this directory is owned by your user.  Delete and let exim creat=
e it.
--=20
Ren=E9 Berber


--
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