-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 29 Sep 2000, at 13:21, Dave Sill wrote:
> Clemens Hermann <[EMAIL PROTECTED]> wrote:
>
> >So now what do I want to do: Is there a way to fetch mail only for a
> >user when he/she contacts te local mailproxy via pop3?
>
> You'd do something like this for your qmail-pop3d
> startup. Unfortunately, at this point you only know the user's IP
> address, not their username.
You'd also need to make sure that all the mail is stored into user's
mailbox, before firing up qmail-pop3d.
> If you have dynamic IP addresses, you'll
> have to plus fetchmail in at a later point, e.g., with a wrapper
> around qmail-pop3d.
Well, I would solve the problem differently.
I'd start up from POP-before-SMTP kind of set up.
1. fetchmail uses database of users "known to be present".
2. This database gets "aged" every now and then from a cron script.
3. After a successful POP3 connection, you'd write "user xxx
present" into the database.
A user would first connect by POP3 and learn that there's no new
mail; then fetchmail would start up, download the e-mails also for
this user (because his name is in the database); next POP3
session would bring the user all his mails. - Some ten minutes
after his last POP3 session, his name would get deleted from the
database and mail would stay at the main server.
If you can tune
1. how often fetchmail pulls
2. how often user pop3-connects
3. how often the database gets aged
you can close the window (after last pop3 session, fetchmail might
pick up user's mail once more, leaving it in your queue).
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html
iQA/AwUBOdTD+1MwP8g7qbw/EQIayQCgh+LXJJr9JZQsgvLKrpbqmEVUbn4AoKa4
48AJpAmgeKM0yTjH+5V0lJKp
=iOCy
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
[Tom Waits]