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. So I checked /usr/share/doc/Cygwin/exim-4.66-1.README which tells me that:
Using the -bdf switch avoids the "caveat" mentioned in /usr/doc/Cygwin/cygrunsrv.README.
...
What if it doesn't work as expected? *********************************** Look at the log files in /var/log/exim and /var/spool/exim/msglog Run "exim -c" from the shell, it produces Cygwin related info. Read the user manual and consult the mailing list and the FAQ.'
But all the log files are either empty or nonexistent. 'exim -c' produces no output. I'm particularly puzzled at 'Win32 error 1062' since I am able to start sshd as service (see cygcheck.out attached). Elsewhere on the mailing lists that file permissions were the culprit for other people experiencing same 'Win32 error 1062' for sshd, so I tried to show all the permissions I could think of below. btw, I'm using 1.5.24-2 cygwin on my WinXPSP2 desktop. Below is all the steps I've taken right after fresh install of cygwin and activation of sshd via ssh-host-config. Please help. $ 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. mode of `/etc/passwd' changed to 0754 (rwxr-xr--) mode of `/etc/group' changed to 0754 (rwxr-xr--) OK. No usernames contain spaces. Who is the local postmaster? [peatey] OK. The /etc/aliases file was updated and given mode 0664. OK. The /etc/aliases file has owner 18 and group 0. OK. /etc/exim.conf created from /etc/defaults/etc/exim.conf. Looking for the fully qualified primary hostname. Is it "peatey1"? (yes/no) yes OK. Exim will autodiscover that name. OK. The mode and ownership of the /etc/exim.conf file are now: -rw-rw-r-- 1 18 0 34583 Mar 11 13:08 /etc/exim.conf INFO: Some programs expect /usr/sbin/sendmail to handle mail. Currently it does not exist. Linking to exim may affect other programs such as cron. Do you want to link /usr/sbin/sendmail to /usr/bin/exim ? (yes/no) yes OK. Done. 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) no OK. Type "cygrunsrv -S exim" to start the exim daemon service. It will restart automatically at each reboot. 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 :) $ 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 $ cygrunsrv -S exim cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. $ ls -all /etc/defaults/etc/exim.conf -rwxr-x---+ 1 peatey Users 34K Jul 31 2006 /etc/defaults/etc/exim.conf* $ ls -all /usr/bin/exi* -rwxr-x---+ 1 peatey Users 9.8K Feb 28 18:17 /usr/bin/exicyclog* -rwxr-x---+ 1 peatey Users 4.4K Feb 28 18:17 /usr/bin/exigrep* lrwxrwxrwx 1 peatey Users 15 Mar 11 04:07 /usr/bin/exim -> exim-4.66-1.exe* -rwxr-x---+ 1 peatey Users 746K Feb 28 18:17 /usr/bin/exim-4.66-1.exe* -rwxr-x---+ 1 peatey Users 24K Nov 26 21:31 /usr/bin/exim-config* -rwxr-x---+ 1 peatey Users 4.6K Feb 28 18:17 /usr/bin/exim_checkaccess* -rwxr-x---+ 1 peatey Users 8.0K Feb 28 18:17 /usr/bin/exim_dbmbuild.exe* -rwxr-x---+ 1 peatey Users 11K Feb 28 18:17 /usr/bin/exim_dumpdb.exe* -rwxr-x---+ 1 peatey Users 13K Feb 28 18:17 /usr/bin/exim_fixdb.exe* -rwxr-x---+ 1 peatey Users 11K Feb 28 18:17 /usr/bin/exim_lock.exe* -rwxr-x---+ 1 peatey Users 12K Feb 28 18:17 /usr/bin/exim_tidydb.exe* -rwxr-x---+ 1 peatey Users 141K Feb 28 18:17 /usr/bin/eximstats* -rwxr-x---+ 1 peatey Users 7.9K Feb 28 18:17 /usr/bin/exinext* -rwxr-x---+ 1 peatey Users 56K Feb 28 18:17 /usr/bin/exipick* -rwxr-x---+ 1 peatey Users 4.8K Feb 28 18:17 /usr/bin/exiqgrep* -rwxr-x---+ 1 peatey Users 4.9K Feb 28 18:17 /usr/bin/exiqsumm* -rwxr-x---+ 1 peatey Users 4.2K Feb 28 18:17 /usr/bin/exiwhat* $ ls -all /var drwxrwx---+ 10 peatey Users 0 Mar 11 13:05 ./ drwxrwx---+ 11 peatey Users 0 Mar 11 04:09 ../ drwxrwx---+ 3 peatey Users 0 Mar 11 04:07 cache/ drwxrwxrwt+ 3 peatey Users 0 Mar 11 04:09 cron/ drwxr-xr-x+ 2 SYSTEM root 0 Mar 11 13:05 empty/ drwxrwx---+ 3 peatey Users 0 Mar 11 04:07 lib/ drwxrwx---+ 3 peatey Users 0 Mar 11 13:07 log/ drwxrwx---+ 2 peatey Users 0 Mar 11 13:07 run/ drwxrwx---+ 3 peatey Users 0 Mar 11 04:07 spool/ drwxrwx---+ 2 peatey Users 0 Mar 11 04:07 tmp/ $ ls -all /var/log drwxrwx---+ 3 peatey Users 0 Mar 11 13:07 ./ drwxrwx---+ 10 peatey Users 0 Mar 11 13:05 ../ drwxrwx---+ 2 peatey Users 0 Mar 11 13:18 exim/ -rw-r--r-- 1 SYSTEM root 0 Mar 11 13:05 lastlog -rwxr-x---+ 1 peatey Users 1.6M Mar 11 13:38 setup.log* -rwxr-x---+ 1 peatey Users 1.5K Mar 11 13:38 setup.log.full* -rw-r--r-- 1 SYSTEM root 0 Mar 11 13:07 sshd.log $ ls -all /var/log/exim drwxrwx---+ 2 peatey Users 0 Mar 11 13:18 ./ drwxrwx---+ 3 peatey Users 0 Mar 11 13:07 ../ -rw-r--r-- 1 SYSTEM root 0 Mar 11 13:18 cygrunsrv_err.log -rw-r--r-- 1 SYSTEM root 0 Mar 11 13:18 cygrunsrv_out.log $ ls -all /var/spool drwxrwx---+ 3 peatey Users 0 Mar 11 04:07 ./ drwxrwx---+ 10 peatey Users 0 Mar 11 13:05 ../ drwxrwx---+ 2 peatey Users 0 Mar 11 04:07 exim/ $ ls -all /var/spool/exim drwxrwx---+ 2 peatey Users 0 Mar 11 04:07 ./ drwxrwx---+ 3 peatey Users 0 Mar 11 04:07 ../ $ ls -all /bin/cygwin1.dll -rwxr-x---+ 1 peatey Users 1.8M Jan 31 05:33 /bin/cygwin1.dll*
cygcheck.out
Description: Binary data
-- 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/