As you already know, Fetchmail takes the information from the .fetchmailrc file from your home directory. So if you log on as User1 only /home/User1/.fetchmailrc file is used. Now, thinking about it, this makes sense as you can have a number of users log into your Linux box and they can have different email addresses and/or accounts. So, if User1 dials up, he/she doesn't get email for User2. Therefore putting Fetchmail in your /etc/ppp/ip-up script works well. BUT - there is always a but.... Here's my question..... If User1 logs in... and dials the internet, then /etc/ppp/ip-ip is called, starting fetchmail. If User2 logs in - is fetchmail accessing User2/.fetchmailrc to retrieve email for User2 email account? Example: The Linux machine has 1 shared modem to access the internet User1 has an email account: junkmail@email.net He logs into Linux, the modem dials out, ip-up is called and fetchmail is started using User1/.fetchmailrc User2 has an email account: iloveemail@another.isp.com She logs into Linux. She can't dial out - because the modem is being used by User1. But, fetchmail has already been started as a daemon. Is User2's .fetchmailrc file downloading email from iloveemail@another.isp.com (eventhough she never executed the ip-up script? Geesh - I go about things very long winded, don't I? Kev
-----Original Message----- From: Togan Muftuoglu [mailto:toganm@turk.net] Sent: 28 April 2000 11:28 To: suse-linux-e@suse.com Subject: Re: [SLE] Running Fetchmail as a deamon
dids wrote:
does wvdial call ip_up
Yes wdial calls the ip up
Koos Pol wrote
Fetchmail is a user process. It will places itself in the background by default. If you have a permanent network connection you can run it from the commandline with nohup. If you have non-permanent network connection, you can run it automatically from ip-up or manually from the commandline.
Currently I do it manually as fetchmail -d 300
After checking the ip-up script there is a line regarding fetchmail which is commented
#/usr/bin/fetchmail -a -v >> /var/log/fetchmail 2>&1 &
so if I comment out it and put the options -d 300 am I correct to understand it will work as a daemon ? but how does this script will know fetchmail config file it should read and check the appropriate accounts. or is there a way to centarilize the fecthmail config file also
Thanks -- Togan Muftuoglu toganm@turk.net
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/