From owner-freebsd-questions Sun Jun 11 13: 4:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nscache2.x-treme.gr (mail1.x-treme.gr [212.120.196.23]) by hub.freebsd.org (Postfix) with ESMTP id DD6D337B61E for ; Sun, 11 Jun 2000 13:04:25 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat52.x-treme.gr [212.120.197.244]) by nscache2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id XAA20836; Sun, 11 Jun 2000 23:04:16 +0300 Received: (from charon@localhost) by hades.hell.gr (8.10.2/8.10.2) id e5CH2K927430; Mon, 12 Jun 2000 20:02:20 +0300 (EEST) Date: Mon, 12 Jun 2000 20:02:20 +0300 From: Giorgos Keramidas To: Rick Knebel Cc: questions@FreeBSD.ORG Subject: Re: fetchmail Message-ID: <20000612200220.A26984@hades.hell.gr> References: <00061109174400.00285@rknebel.uplink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <00061109174400.00285@rknebel.uplink.net>; from rknebel@uplink.net on Sun, Jun 11, 2000 at 09:14:16AM -0400 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jun 11, 2000 at 09:14:16AM -0400, Rick Knebel wrote: > Hi, > > I am trying to run fetchmail as root for multiple users. I thought > I could put the fetchmailrc in the root directory and the command > to start the daemon in my rc.local. This can be done, I'm using it to fetch the mailboxes of a couple of people that connect through ssh on my home box while I'm online to read their email and chat with me when they feel that IRC is not enough. > On boot up I keep getting the message mailserver not specified. If I > log in as root and issue the command fetchmail -d 30 everything works > fine. When you do this, then fetchmail already knows a lot about your environment, who you have logged in as, etc. The problem is not with fetchmail, or rc.local. See below: > I though that the fetchmail in rc.local would look to the root > directory for the .fetchmailrc file? It could be that the rc.* scripts run without the HOME environment variable havign been defined to something meaningful. Try specifying the fetchmailrc file you wish to use on the command that calls fetchmail in rc.local : # grep fetchmail /etc/rc.local /usr/local/bin/fetchmail -d 300 -f /root/fetchmailrc.local I hope this helps a bit. Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > For my public key: finger keramida@ceid.upatras.gr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message