Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fetchmail daemon
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
revil
n00b
n00b


Joined: 06 Oct 2002
Posts: 68
Location: Japan

PostPosted: Mon Feb 28, 2005 3:14 am    Post subject: fetchmail daemon Reply with quote

is there a way to get the fetchmail daemon to check the individual user accounts .fetchmailrc?
Back to top
View user's profile Send private message
angoraspruce
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 193
Location: Minnesota, USA

PostPosted: Mon Feb 28, 2005 5:06 am    Post subject: Re: fetchmail daemon Reply with quote

revil wrote:
is there a way to get the fetchmail daemon to check the individual user accounts .fetchmailrc?

Each user should launch their own fetchmail daemon, and it will use the ~/.fetchmailrc of the user that launched it.

HTH :)
Back to top
View user's profile Send private message
revil
n00b
n00b


Joined: 06 Oct 2002
Posts: 68
Location: Japan

PostPosted: Mon Feb 28, 2005 12:37 pm    Post subject: Reply with quote

i see, thanks!
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Apr 12, 2005 1:16 pm    Post subject: Reply with quote

It's a cheap hack, but if you want it to start automaticvally on boot, then add something like
Code:

sudo -H -u myuser fetchmail

to /etc/conf.d/local.start
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat May 21, 2005 2:33 pm    Post subject: Reply with quote

Some users uses Linux, some uses Windows, others uses Mac (OS 9 & 10), some...

I don't think fetchmail is what I'm looking for. I need something that will fetch remote mai accounts into a centralized imap server, and it must be flexible enough to let users specify that, and it must run on a remote box where the server lives.

Doe it exist or am i dreaming awake?
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sat May 21, 2005 2:43 pm    Post subject: Reply with quote

If they are using an IMAP server, then it doesn't matter what kind of client they are using.
Run fetchmail on the IMAP server, and let them edit their own .fetchmailrc.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat May 21, 2005 11:15 pm    Post subject: Reply with quote

adsmith wrote:
If they are using an IMAP server, then it doesn't matter what kind of client they are using.
Run fetchmail on the IMAP server, and let them edit their own .fetchmailrc.


But I was under the impression that the .fetchmailrc is parsed when the user logs in 8O . The way I see it, the init.d/fetchmal scripts only parse /etc/fetchmailrc, and if the users only connect remotely to the imap server, I don't think it's sufficient to get the .fetchmailrc picked up. No? :?
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sat May 21, 2005 11:21 pm    Post subject: Reply with quote

.fetchmailrc is parsed whenever they run fetchmail (or the first time, if it runs as a daemon)

have fetchmail run just once and not daemonize (set daemon 0), then have cron call fetchmail for each user every couple minutes
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sun May 22, 2005 1:40 am    Post subject: Reply with quote

I'm not sure I understand.

Users don't log to that machine. It is solely a mail server with courier-imap and qmail.

If I understand you well, you are saying to cron a script that, when run, will scan users .fetchmailrc and run fetchmail with it? Something like:
Code:
for fetchmailrc in /home/*/.fetchmailrc
do fetchmail $fetchmailrc
done
:?:
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sun May 22, 2005 3:58 am    Post subject: Reply with quote

tecknojunky wrote:
I'm not sure I understand.

Users don't log to that machine. It is solely a mail server with courier-imap and qmail.

ah, then you have a problem, unless you could set up some web interface through which they could edit their settings.

Quote:

If I understand you well, you are saying to cron a script that, when run, will scan users .fetchmailrc and run fetchmail with it? Something like:
Code:
for fetchmailrc in /home/*/.fetchmailrc
do fetchmail $fetchmailrc
done
:?:

sure, something like that
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum