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]

fetchmail cygrunsrv ".fetchmailrc must be owned by you."


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@mcpond.co.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@elsewhere.co.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@elsewhere.co.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/


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