Hello Linux friends!

This question is not very usual and I appreciate any help!  I posted this
message also at [EMAIL PROTECTED] (Masquerading Mailing-list).  This might
seem like a Masquerade topic, but perhaps there're other solutions that
doesn't require Masquerading.

I already have IP Masq working for a Linux server and everyone is happy..
;-)  But I wish to do this:

When a user behind the "Masq box" connects to a remote POP3 server, I wish
to "dynamically" add a message to this user's mailbox.

So, when the mail client connects to a remote POP port (110), and types:

+OK server ready
user foo
+OK User fine, type password now
pass bar
+OK hello dude
stat
+OK 3 235000
list
+OK
1 210000
2 20000
3 5000
[ ... ]
quit

This user has 3 messages, and it occupies a total of 235,000 bytes.
So, if I wish to add a message that occupies 10,000 bytes, I have to fake
the results of the "stat" and "list" commands, so it will show:

stat
+OK 4 245000
list
+OK
1 210000
2 20000
3 5000
4 10000
[ ... ]
quit

And when the client types "retr 4", I'll generate this "new" and "dynamic"
message.

Did I make myself clear?  Is such a thing possible?  Perhaps there is some
kind of "POP proxy" that would work in a way that the user wouldn't notice
(forwarding remote 110 port to a local xxx port and proxy the user's
request from there)

Thanks a lot!!!

Henrique Pantarotto
Coord. T�cnico Operacional
CEPAnet Internet Provider
Web: http://www.cepa.com.br
Tel. suporte: +55 (011) 5506-8477
Sao Paulo - Brasil
Linux Friend
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to