Ethan Benson wrote:

> On Tue, Mar 27, 2001 at 12:37:46AM +1000, Mark Devin wrote:
> >
> > OK, I tried it.  It seems to still not want to run.
> > Here is what I did:
> > 1.  Copied my users .fetchids and .fetchmailrc files to /etc/ppp/ and 
> > changed the
> > group and owner for them to "mail"
>
> /etc/ppp is not readable by user mail, at least not on my potato box:
>

Yeah.  That was the problem.  Thanks.  I fixed it with the following:

Edit the /etc/ppp/ip-up.d/fetchmail-up script to look like:
su - -c '/usr/bin/fetchmail -d 900 -t 90 --silent --syslog --fetchmailrc
/etc/fetchmail --idfile /var/spool/mail/.fetchids' mail

Edit the /etc/ppp/ip-down.d/fetchmail-down script to look like:
su - -c '/usr/bin/fetchmail --quit' mail

Then touch /var/spool/mail/.fetchids
chown mail /var/spool/mail/.fetchids
cp /root/.fetchmailrc /etc/fetchmail

user mail does own the /var/spool/mail directory and I made the owner and group 
for
/etc/fetchmail "mail"

And most importantly, it works.  Thanks to all who helped me learn something 
here.

Regards.

Mark.

Reply via email to