Michael
This paragraph extracted from MUO I think answers all these questions

Derek

"So to poll your mail every five minutes, put this line into 
/etc/ppp/ip-up.local:

fetchmail -d 300

Note that since ip-up/down scripts are called by a root process, 'Fetchmail' 
looks for its configuration file in root's home directory. For security 
reasons the configuration must only be read/writable by its owner (since your 
passwords are stored in there). 'Fetchmail' refuses to work with 
configurations which do not meet this requirement.
 Another effect is that you can't use a configuration file which does not 
belong to 'root'. This is simple logic: all programs started from ip-up/down 
scripts are owned by root and so does 'Fetchmail'. And 'Fetchmail' does not 
accept a configuration file which isn't owned by the user who started it.
 This command for 'root' will solve the problem:

chown root:root .fetchmailrc && mv .fetchmailrc ~

Another possibility would be to run Fetchmail in daemon mode right on boot, 
e.g. by installing the 'fetchmail-daemon' package from your Mandrake CD. This 
package installs a service script in '/etc/rc.d/init.d' which can be 
controlled via the usual 'service' commands. If you use this package, the 
'fetchmailrc' has to be located in the '/etc' directory."



On Friday 26 October 2001 2:22 am, Michael wrote:
> Penultimate leg of the exercise.
>
> My .fetchmailrc  lines look like
> [poll pop3.paradise.net.nz protocol pop3
>    user "mbadams", with password "xxxxxxxx",
>    is "michael" here]
> The lastline telling it [EMAIL PROTECTED] is which
> local mailbox (or which /var/spool/... to store the incoming mail
> in.
>
> Which format is better?
> "fetchmail -d 600 -L ~/.fetchmaillog" in a startup script.
> or
> "fetchmail" in a script with the following lines in .fetchmailrc
> "set daemon 600
>  set logfile ~/.fetchmaillog"
> Based on the last paragraph in man fetchmail discussing
> DAEMON MODE i suspect the second method is better.
>
> What is the recommended script to run fetchmail in on bootup?
>
> Where do i put .fetchmailrc for root to do this? My guess
> is /root.
>
> Do i still chmod .fetchmailrc to 0600? Perhaps 0400 is safer
> for root (never can be too careful).
> Do i chmod .fetchmaillog to 0600 as well?
>
> Is running fetchmail as a daemon in root ok, or not recommended?
>
> Can i ask any other silly questions without getting laughed at?
> Just call me a Kiwi (New Zealander) on a steep learning curve.
>
> Jan Wilson wrote:
> > * Michael <[EMAIL PROTECTED]> [011024 06:21]:
> > > My ISP is letting me have multiple POP3 accounts.
> > >
> > > How do i set my client to fetch them. Or can i
> > > only view the other mailboxes online?
> > >
> > > I have kmail 1.0.28 or netscape 4.73.
> >
> > In your home directory, put (or edit) a file named
> > .fetchmailrc
> >
> > You need a line for each pop3 account ... something like:
> >
> > poll mail.domain.com proto pop3 user myname password mypass
> >
> > Make sure that file has read and write permission for the user only,
> > 0600 in octal code.
> >
> > Then, to fetch your mail from all 3 pop3 accounts, type
> >
> > fetchmail
> >
> > At the user prompt.
> >
> > For details,
> >
> > man fetchmail
> >
> > --
> > Jan Wilson, SysAdmin; [EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to