search for: grepcidr

Displaying 6 results from an estimated 6 matches for "grepcidr".

2017 Nov 11
2
Postlogin script
...t;Gedalya" <gedalya at gedalya.net> napisa?(a): > On 11/10/2017 11:03 PM, Joseph Tam wrote: > > > > The toughest situation (using script techniques) is for > > CIDR ranges just shy of a full octet boundary e.g. /25. > > Actually there is a great tool for that, grepcidr > > $ echo 10.11.12.127 | grepcidr 10.11.12.0/25 && echo OK > 10.11.12.127 > OK > $ echo 10.11.12.128 | grepcidr 10.11.12.0/25 && echo OK > $ > > But in your case you really probably should use postgres for the userdb > and just return everything from ther...
2017 Nov 10
3
Postlogin script
"j.emerlik" <j.emerlik at gmail.com> writes: > I would like to prepare postlogin a script that allow imap connection to > roundcube for all but restrict imap access for selected users. "from" roundcube? > Is possible in condition IF use IP addresses as range or with mask (because > I've more than one web servers) ? Of course -- many ways to skin this
2019 Apr 30
8
Feature request: exclude IP/network in allow_nets extra field
Dear all, We use `allow_nets`[1] to restrict login clients, it works fine. Recently we need to allow some users to login from everywhere except some IP/networks, how can we accomplish this with "allow_nets"? Tried allow_nets="!a.b.c.d", but Dovecot reports error "allow_nets: Invalid network '!a.b.c.d'". Can we have this feature? i guess it should be done
2017 Nov 11
0
Postlogin script
On 11/10/2017 11:03 PM, Joseph Tam wrote: > > The?toughest?situation?(using?script?techniques)?is?for > CIDR?ranges?just?shy?of?a?full?octet?boundary?e.g.?/25.? Actually there is a great tool for that, grepcidr $ echo 10.11.12.127 | grepcidr 10.11.12.0/25 && echo OK 10.11.12.127 OK $ echo 10.11.12.128 | grepcidr 10.11.12.0/25 && echo OK $ But in your case you really probably should use postgres for the userdb and just return everything from there in user fields / extra fields, and if the...
2017 Nov 11
0
Postlogin script
...lya.net> napisa?(a): > > > On 11/10/2017 11:03 PM, Joseph Tam wrote: > > > > > > The toughest situation (using script techniques) is for > > > CIDR ranges just shy of a full octet boundary e.g. /25. > > > > Actually there is a great tool for that, grepcidr > > > > $ echo 10.11.12.127 | grepcidr 10.11.12.0/25 && echo OK > > 10.11.12.127 > > OK > > $ echo 10.11.12.128 | grepcidr 10.11.12.0/25 && echo OK > > $ > > > > But in your case you really probably should use postgres for the userdb &...
2019 Apr 30
0
Feature request: exclude IP/network in allow_nets extra field
Hello, Zhang. You can easily do this without a new feature in Dovecot. - Create a post login script, for instance, in bash. - install grepcidr on your server. Your post login script can use grepcidr to check for white or black list. https://wiki.dovecot.org/PostLoginScripting I have implemented this myself on a small open source project, I can send you the links of you want. Andr?. Tue Apr 30 02:57:18 GMT+01:00 2019 Zhang Huangbin vi...