[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems running fetchmail in /etc/ppp/ip-up.d



On Fri, Aug 11, 2000 at 05:11:42PM +0000, alan@catalyst.net.nz wrote:
> Fetchmail is not fetching my email properly when 
> invoked from a script in the /etc/ppp/ip-up.d
> 
> /etc/ppp/ip-up.d/fetchmail reads ...
> #!/bin/sh
> # run fetchmail
> test -r /etc/fetchmailrc && //
> 	fetchmail --syslog --invisible --fetchmailrc /etc/fetchmailrc
> 
> Syslog contains the following ...
> 
> Aug 10 20:32:41 calliope fetchmail[9256]: fetchmail: POP3 connection
> to pop3.paradise.net.nz failed: temporary name server error. 
> Aug 10 20:32:41 calliope fetchmail[9256]: Query status=2 (SOCKET)
> 
> /etc/ppp/ip-up.d also contains 00ipmasq to rerun the firewalling rules
> over the new interface (ppp0) and 0dns-up which sets up
> /etc/resolv.conf for the provider being connected to.
> 
> The fetchmail script (above) runs fine from the command line.
> 
> For completeness /etc/fetchmailrc reads ... 
> 
> poll pop3.paradise.net.nz proto pop3 user [USERNAME] with password
> [PASSWORD] 
> 
> NB: [ ]'s replace actual values.

You're probably running fetchmail before your connection and/or DNS
configuration have been established.  Try putting a "sleep nn" argument
before running fetchmail, with a value of "nn" ranging from 30 to 300
seconds.  I'd think 30-60 should cover it.

-- 
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

Attachment: pgpOU6XQphfdz.pgp
Description: PGP signature


Reply to: