3 # Sample access control program for pop3.proxy
7 # Simply allow connections from outside.
9 if (~ $PROXY_INTERFACE 140.77.194.1)
13 # Important users have the IP numbers 192.168.1.10,11,45, allow them.
15 if (~ $PROXY_CLIENT *.10 *.11 *.45)
19 # Get the current hour.
23 if (~ $PROXY_SERVER *.yahoo.com *.hotmail.*) {
25 # Private usage, restriced to lunch breaks from 12:00 to 13:00.
28 echo -ERR try later again
29 echo private usage: $PROXY_SERVER >[1=2]
35 # For some reason the outgoing POP3 proxy is only available during working
38 if (! ~ $now 08 09 10 11 12 13 14 15 16 17 18) {
39 echo -ERR server not available
40 echo out of time window >[1=2]