The Zimbra NGX Admin Panel has you covered! The Access Control Policy Server allows you to set several individual/bulk email access policies with the click of a mouse.
Sample Access Policy Configuration – IMAP (Per-user)
An Allow List of IP addresses can be created easily for any user of the domain.
Sample Access Policy Configuration – POP (Bulk)