This lists common network ports used by different devices. It will focus mainly on ports that are needed to allow a device/service to function across a firewall zone for clients.
https://www.cups.org/doc/firewalls.html
21 (FTP) TCP FTP (optional) 23 (Telnet) TCP Telnet (optional) 80 (HTTP) TCP Web UI 8080 (HTTP ALT) TCP Alternative HTTP Port (optional) 137 (WINS) UDP Windows Internet Naming Service (name lookup for SMB printing). (optional) 139 (SMB) TCP Windows SMB printing. (optional) 161 (SNMP) UDP SNMP browsing (broadcast) and status monitoring (directed to printer IP address). 443 (IPPS) TCP Internet Printing Protocol requests and responses (print jobs, status monitoring, etc.) 445 (SMBDS) TCP Windows SMB Domain Server (authenticated SMB printing). (optional) 515 (LPD) TCP Line Printer Daemon (LPD/lpr) print job submission and status monitoring. 631 (IPP/IPPS) TCP Internet Printing Protocol requests and responses (print jobs, status monitoring, etc.) 5353 (mDNS) UDP Multicast DNS lookups. 9100-9102 TCP Raw print data stream (AppSocket/JetDirect). 9500 TCP Scanner port
https://wiki.zimbra.com/wiki/Firewall_Configuration
SMTP 25 tcp Public HTTP 80 tcp should probably be limited by a firewall to your local network only POP3 110 tcp should probably be limited by a firewall to your local network only IMAP 143 tcp should probably be limited by a firewall to your local network only LDAP 389 tcp should probably be limited by a firewall to your local network only HTTPS 443 tcp Public SMTPS 465 tcp Public SMTP Submission 587 tcp Public IMAPS 993 tcp Public POP3S 995 tcp Public (Admin Interface) 7071 tcp should probably be limited by a firewall to your local network only SOAP Auth 7073 tcp should probably be limited by a firewall to your local network only LMTP 7025 tcp should probably be limited by a firewall to your local network only