Re: Linux style dialup automatically
> Dear fellow Debianers,
>
> I have just come to Debian 3 weeks ago, and still struggle to set up
> my previous dialup conf using another linux version.
>
> Here is what I want:
>
> Every time I log on to my isp (from anywhere in my box, could be
> root, or other users) I want my email downloaded, and sorted to the
> appropriate mailboxes, automatically by procmail. Before this
> happens I also want to sent all the queued mail out to the world.
> And when I shut down my connection I want fetchmail demon to be
> stopped.
>
> Here is what I have:
>
> If I have the connection up, and start fetchmail, I got all my mail
> downloaded and sorted to my mailboxes. I can send mail with exim.
>
> So, the problem is how to automate this. Previously I had my
> .fetchmailrc in the root dir:
>
> # Configuration created Sun Oct 22 22:14:46 2000 by fetchmailconf
> set postmaster "debuser"
> set bouncemail
> set properties ""
> poll pop.freeserve.net protocol POP3
> user bablabla.net.co.uk there with password passwd is debuser here
> poll pop.amexmail.com protocol POP3
> user blabla there with password passwd is debuser here
>
> And I had a file called ip-up.local in /etc/ppp :
>
> #!/bin/bash
> /usr/sbin/sendmail -q
> /usr/bin/fetchmail -d 2000
>
> And at the end of connection I had ip-down.local:
>
> #!/bin/bash
> fetchmail --quit
>
> I noticed that here under debian there is a dir with autoscripts:
>
> /etc/ppp/ip-up.d/ and
> /etc/ppp/ip-down.d/
>
>
> but when I put my scripts there I still do not get my mail
> automatically downloaded...
>
> I am sure that many of you have this auto set up, please help me to
> troubleshoot this.
>
> Thanks in advance. -- Viktor
>
>
Why not using /etc/ppp/ip-up.d/fetchmail ?
Note that it uses /etc/init.d/fetchmail which, in turn, needs /etc/fetchmailrc.
Please read /usr/share/doc/fetchmail/README.Debian
--
Shaul Karl <shaulka@bezeqint.net>
Reply to: