This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [cygrunsrv] problem starting exim as service


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=.
> 
> 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 you
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="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 1062:
> The service has not been started.

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

[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 running as
SYSTEM but this directory is owned by your user.  Delete and let exim create it.
-- 
René 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]