[newbie] Many thank's for your reply.........
Hi Derek, Thanks ever so much for your speedy reply, Your suggestions are great, If I understand you correctly, your suggestion / solution implies that the dial-up / ppp connection is running on the same machine that fetchmail is. Therefore the dial up( if-up.local ) script calls fetchmail when it has brought the modem link up...! I am not sure if I made my self clear, my apoligies... My dial-up connection is on another box ( a smoothwall / firewall ) and it is this box that has a modem attached to act as my gateway device. ( dial on demand. ) I run fetchmail on my mandrake 9.0 work station, and it times out with a dns error I think this is due to the amout of time that the smoothwall box takes to dial up my isp? I have looked into my Reply To setting in my LookOut Express Once again many thanks. Paul - Original Message - From: Derek Jennings [EMAIL PROTECTED] To: newbie [EMAIL PROTECTED] Sent: Saturday, November 15, 2003 5:35 PM Subject: Re: [newbie] help with fetchmail. On Saturday 15 Nov 2003 4:31 pm, [EMAIL PROTECTED] wrote: Hello, I would be greatfull if some one could plz suggest a possible solution to a fetchmail problem I am having.. I am currently using smoothwall to connect to my ISP to send/ receive mail / browse the web, via a dial on demand ppp modem connection. On my Mandrake 9.0 Workstation, I have set up a cron job to run fetchmail several times a day to collect mail. The problem I am having is that when cron run's fetchmail at the designated time, fetchmail times out with the following error.. couldn't find canonical DNS name of pop.myisp.com I am running bind as a caching name server and it seems to be working ok. The average connect times on my dial up modem connection is 30-45sec... I run fetchmail with the following syntax /usr/bin/fetchmail -v -t 200 -D mydomain.co.uk -F Is there a way I can get fetchmail to wait for about 30 seconds before it tries to fetchmail.? I thought that the -t switch would be the answer, but this doesn't seem to help. Any suggestions welcome..? Regards Paul Downey Linux Newbie Instead of using a cron job you could put your fetchmail command in /etc/ppp/if-up.local It will be executed after the dial up is established. Alternatively run fetchmail as a daemon. Install the fetchmail-daemon RPM and it will run continuously using /etc/fetchmailrc as its config file. It does not matter if you are on line or not. By default it will poll for mail every 180 secs as defined in /etc/init.d/fetchmail Also to get bind out of the equation you could reference your ISP's mail server by IP address instead of canonical name HTH derek BTW: You do not need that Reply To setting in your LookOut Express configuration. Deleting it will make lots of people happy. -- -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] Thank you to all that replied - that little script done the trick very groovy.....!
Well I tried the little script, and with a few tweeks, I managed to get it to do what I have been wanting all along...? many many thanks to all that replied to my emails to the newbie lists. another happy Linux user (newbie.) I am slowly weening my self off using Microsoft's soft ( hope that comment's not too taboo). Cheers. Paul. Could a small script like this help? - #!/bin/sh # To activate the connection ping -c 4 pop.myisp.com /dev/null # Wait 30 seconds sleep 30s # fetch you mails /usr/bin/fetchmail -v -t 200 -D mydomain.co.uk -F - Try pinging pop.myisp.com to find out if the dial on demand connection is activated. If so, use the script in a cron job instead of calling fetchmail. HTH Adolfo - Original Message - From: Adolfo Bello [EMAIL PROTECTED] To: MDK Mandrake [EMAIL PROTECTED] Sent: Saturday, November 15, 2003 10:39 PM Subject: Re: [newbie] Many thank's for your reply. On Sat, 2003-11-15 at 16:05, Derek Jennings wrote: On Saturday 15 Nov 2003 7:37 pm, Paul Downey wrote: Hi Derek, Thanks ever so much for your speedy reply, Your suggestions are great, If I understand you correctly, your suggestion / solution implies that the dial-up / ppp connection is running on the same machine that fetchmail is. Therefore the dial up( if-up.local ) script calls fetchmail when it has brought the modem link up...! I am not sure if I made my self clear, my apoligies... My dial-up connection is on another box ( a smoothwall / firewall ) and it is this box that has a modem attached to act as my gateway device. ( dial on demand. ) I run fetchmail on my mandrake 9.0 work station, and it times out with a dns error I think this is due to the amout of time that the smoothwall box takes to dial up my isp? I have looked into my Reply To setting in my LookOut Express Once again many thanks. Paul Ok Well in that case you will not like my second suggestion either. Running fetchmail as a daemon would cause your firewall to redial the modem every 3 minutes :-( I assume the firewall saves the packets it has received while it is waiting for the modem to dial, so does the 3rd solution help? (Using an explicit IP address in fetchmail configuration) The other solution that comes to mind is to run fetchmail on your firewall and save your mail on there. You could run your cron job on the firewall itself. derek Could a small script like this help? - #!/bin/sh # To activate the connection ping -c 4 pop.myisp.com /dev/null # Wait 30 seconds sleep 30s # fetch you mails /usr/bin/fetchmail -v -t 200 -D mydomain.co.uk -F - Try pinging pop.myisp.com to find out if the dial on demand connection is activated. If so, use the script in a cron job instead of calling fetchmail. HTH Adolfo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com