At 09:04 2004-02-03 -0800, Bart Schaefer wrote:
No-prize for figuring out why I chose port number 7726.
It's the local extension portion of the Earthlink anti-spam hotline.
(888-356-7726)
Of course if two people on the same host try exactly this technique, one
of them is going to have to use a different port number.
No guarantee that the port will be unused by any other process, and UID
assignments are pretty wild in some installations, but you could always
look at making it a base of some high port + the UID value. That'd make it
user-unique, at least within the scope of the rcfile setup, which would
allow other users to make use of the script unmodified in most instances,
and so long as the UID assignments aren't scattered all over the place, the
range of ports occupied won't be much more than the number of users.
BASEPORT=7726
# simple math without using BC or similar:
:0
* $ $BASEPORT^0
* $ $UID^0
{
SAPORT=$=
}
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail