Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2000 20:02:20 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Rick Knebel <rknebel@uplink.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: fetchmail
Message-ID:  <20000612200220.A26984@hades.hell.gr>
In-Reply-To: <00061109174400.00285@rknebel.uplink.net>; from rknebel@uplink.net on Sun, Jun 11, 2000 at 09:14:16AM -0400
References:  <00061109174400.00285@rknebel.uplink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000612200220.A26984>