fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]fetchmail configuration

2005-05-06 00:41:53
On Thu, May 05, 2005 at 11:37:12PM +0200, Jakob Hirsch wrote:

Why does the .fetchmailrc has to be in the root
directory (i.e., unix machine).?

It has to be in the home directory.
But you are free to use any path/filename with -f

There is no need to run it as root. You can run it under
your own user account. Every user on your machine
can run its own instance of fetchmail.

I would want the configuration files  to be part of my
database.

write a script to the information from your database in a fetchmail 
config file and execute it before every start of fetchmail

Better do a little cron script that writes down a new 
fetchmailrc. Fetchmail better runs in daemon mode in my
opinion. No need for starting and stopping the software..

Every time the timestamp of your fetchmailrc file changes
the daemonized fetchmail will read in the new config file
and fetch the mails of your users.


Suppose I want to do fetchmail for millions of users.

fetchmail is not designed for such purposes. It keeps itself from 
running more than one copy with the same uid.
Besides, doing that is simply wrong. fetchmail connects to servers in 
fetchmailrc sequentially. Guess how long it will take to fetch from 
millions of servers...

In such an environment you should better learn to configure
a mail server where mail for your millions of yours will be
sent to.

This is not the scope of fetchmail..


Marcus

-- 

Love sometimes expresses itself in sacrifice.
                -- Kirk, "Metamorphosis", stardate 3220.3


<Prev in Thread] Current Thread [Next in Thread>