List Info

Thread: usermap table




usermap table
country flaguser name
Netherlands
2008-01-22 01:30:15

A while back I asked how to restrict imap to be used only by certain users, Marc Dirix replied and told me to read README.usermap, and use the usermap table. I read the readme file and wiki entry, but find it very confusing.

My goal is to deny imap by default, but enable it for specific users.

I tried the following, but this doesn't work:
+----------+----------------+------------------+----------+

| login ;   | sock_allow  ;   | sock_deny    ;    | userid   |
+----------+----------------+------------------+----------+
| ANY     ; |         ;       | inet:0.0.0.0:143 | %s       |
| username | inet:0.0.0.0:0 |         ;         | username |
+----------+----------------+------------------+----------+
Also, this didn't work as expected:
+----------+------------------+------------------+----------+

| login ;   | sock_allow  ;     | sock_deny    ;    | userid   |
+----------+------------------+------------------+----------+

| username | inet:0.0.0.0:110 | inet:0.0.0.0:143 | username | 
+----------+------------------+------------------+----------+

I really like to know exactly how the deny/allow rules are followed, is it a single record that is evaluated, are record processed in order? and if they are, in what order?

Greetings, Casper
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )