No he podido iniciar el demonio Exim después de instalarlo en Cygwin en Windows 10.
Al final de la exim-config
configuración, el demonio falla con este mensaje:
Do you want to start the exim daemon as a service now? (yes/no) yes
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
ERROR: Could not start the daemon.
INFO: The exim log files are in /var/log/exim.
WARNING: The default permissions are only suitable for a casual environment.
See /usr/share/doc/Cygwin/exim-X-Y.README for how to adjust them.
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 :)
Los siguientes archivos de registro existen en /var/log/exim
:
$ dir -l /var/log/exim
total 4
-rw-rw-r-- 1 cyg_server Administrators 0 Jan 13 16:48 cygrunsrv_err.log
-rw-rw-r-- 1 cyg_server Administrators 0 Jan 13 16:48 cygrunsrv_out.log
-rw-rw-rw- 1 User1 User1 1499 Jan 14 09:49 exim_main.log
Los dos primeros están vacíos y el tercero no tiene información relevante.
Otros intentos de iniciar el servicio después de ejecutar la configuración fallan con este mensaje:
$ net start exim
The exim service is starting.
The exim service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
$ NET HELPMSG 3534
The service did not report an error.
El visor de eventos de Windows tiene este mensaje en los registros de su aplicación:
The description for Event ID 0 from source exim cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
exim: PID 2708: service `exim' failed: signal 6 raised
¿Alguna idea sobre cuál podría ser este error o qué diagnósticos adicionales ejecutar? ¡Gracias!
Respuesta1
Después de jugar con el mismo error durante aproximadamente una hora, inicié la corriente setup-x86.exe
desdehttps://cygwin.com/setup-x86.exey marcó "Reinstalar" para exim y openssh-server.
Luego ejecuté exim-config
como administrador de dominio y reconfigure el servicio (nuevamente).
El servicio funciona sin problemas ahora.
Respuesta2
El problema para mí (servidor 2016 y 2019) fue el usuario de inicio de sesión del servicio. El script de configuración le permite crear y utilizar el usuario cyg_server con sus permisos especiales. Pero hoy en día no parece suficiente.
Puede ver la falla ejecutando el comando: exim -bd -q15m -v -d
El mío dijo que no podía cambiar setuid a x e y..., no podía escribir en los registros... Este es un problema de permisos.
Para evitar esto: ejecute exim únicamente como servicio y utilice el "Servicio local" incorporado de Windows de la siguiente manera. En servicios, exim, pestaña Iniciar sesión, seleccione Cuenta del sistema local.