dovecot to restrict pop/imap
===

please help,

I have 50 email users(virtual users) using dovcot,postfix,squirrelmail with centos 6.0. I want to allow some users to view pop/imap globally and for rest user from my lan network only.

I have tried with dovecot allow_nets features which rocks but which did not fulfill my requirement.

If i allow 127.0.0.1 in allow_nets, restricted user can access webmail globally.
If i disable 127.0.0.1 in allow_nets, restricted user can not access webmail from my LAN too. Below is my configuration.

restricted virtual email user (/etc/dovecot/passwd file)
xyz@abc.com:{CRAM-MD5}encrypted pass::::::allow_nets=127.0.0.1,192.168.1.55/32

global virtual email user (/etc/dovecot/passwd-file)
xxx@xxx.xxx.xxx:{CRAM-MD5}encrypted pass
