I use Mdaemon mail server.
It can be accessed from internal network and from internet (using mail client and web interface).
The problem is I need to limit which users can access their mails from the internet.
I thought about doing IP-based filtering via firewall, but I cannot control which IP users use to access the server.
Is there any mail server out there which can do what I want? Any other ways I can implement this requirement?