Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: fetchmail cygrunsrv ".fetchmailrc must be owned by you." Date: Mon, 12 Apr 2004 22:06:35 +1200 Message-ID: <4CF7828E8C708742B551A75A06AD4B09014E29@mcdam.internal.mcpond.co.nz> MIME-Version: 1.0 X-MS-Has-Attach: Content-Type: text/plain; charset="us-ascii" X-MS-TNEF-Correlator: Content-class: urn:content-classes:message From: "David McNeill" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i3CA460k013336 I've read Google, Cygwin FAQ's, Fetchmail FAQ's, Docs, Mail list archives etc but haven't found the right answer yet, apologies if it's an obvious answer. Objective: Run fetchmail as a service under Windows XP under Cygwin to get mail from a pop3 mailbox, and forward it on to someone else, leaving the mail on the original server. Tick Install fetchmail with Cygwin setup program Tick Setup fetchmail with run control file. /home/DM/.fetchmailrc [ see below for contents ] Tick Run fetchmail from command line, works correctly. Tick Install cygrunsrv to run fetchmail as an NT service Tick Use install command of cygrunsrv to add the service [ below ] Tick Look in NT Server manager / services to see setup correctly Tick Look in registry \HKLM\SYSTEM\CurrentControlSet\Services\fetchmail To verify install went ok. Tick Start it up with net start fetchmail or start in NT services or cygrunsrv --start fetchmail Bong cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Look In /var/log/fetchmail.log File /home/DM/.fetchmailrc must be owned by you. Cross But it is!!!??? /home/DM/ -rwx--x---+ 1 DM None 791 Apr 12 18:43 .fetchmailrc Is cygrunsrv running as a different user - who is it referring to as "you" ? I added a cygrunsrv with id, and it told me it was running as DM. It would be nice it cygrunsrv said who it meant by "you" Fetchmail talks about permissions on .fetchmailrc , but rwx x looks ok. Is the group None significant? JT talks about a hack of fetchmail to run under cygwin that removes the checking of owner of .fetchmailrc , but this appears to only be required for FAT and FAT32 file systems that do not have file owners, running under NTFS, there is a valid file owner. Have the user id's got mixed up? Don't think so. I did join a domain after installing Cygwin, which does change your NT user account. $ id uid=1003(DM) gid=513(None) groups=544(Administrators),545(Users) $ ls -nl .f* -rwx--x---+ 1 1003 513 791 Apr 12 18:43 .fetchmailrc Looks ok. I'm stumped at this point, and not sure where to research next, any pointers would be appreciated. David lists AT mcpond DOT co DOT nz /user/DM/.fetchmailrc # poll every 15 minutes set daemon 900 # log processes to log file, not stdout set logfile fetchmaillog # send mail undeliverable to... set postmaster DM AT elsewhere DOT co DOT nz # dont bounce to sender if undeliverable set no bouncemail set no spambounce # dont add anything to the headers set invisible # set some defaults defaults proto pop3 # get some mail poll pop3.somewhere.co.nz username "nod" password "imnottellingyou" keep smtphost smtp.somewhere.co.nz smtpname DM AT elsewhere DOT co DOT nz cygrunsrv --install fetchmail --path /usr/bin/fetchmail --args "--daemon 300 --nodetach" --disp FetchMail --desc "FetchMail remote mail retrieval and fowarding service under CygWin" --dep LanmanWorkstation --env HOME=/home/DM --termsig TERM --user 'DM' --passwd fffff --shutdown -- 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/