On UNIX, you can want to edit your /etc/services, (or Yellow Pages, NetInfo, etc., equivalent), to register the POP3 and IMAP services; e.g.,
/etc/services
pop3 110/tcp imap 143/tcp