+ PKG_PATH=/nfs/packages/SmartOS/upstream/trunk/All
+ /opt/tools/sbin/pkg_add -K /var/opt/.pkgdb digest-20220214 mktools-20220614 gmake-4.3nb3 perl-5.34.1 cwrappers-20220403 checkperms-1.12 openldap-client-2.6.2 openssl-1.1.1o zlib-1.2.12nb1 imap-uw-2007fnb11 db4-4.8.30nb1 tidy-5.6.0nb1
gmake-4.3nb3: registering info file /opt/pkg/info/make.info
pkg_add: package `cwrappers-20220403' already recorded as installed
openssl-1.1.1o: copying /opt/pkg/share/examples/openssl/openssl.cnf to /etc/opt/pkg/openssl/openssl.cnf
openldap-client-2.6.2: copying /opt/pkg/share/examples/openldap/ldap.conf to /etc/opt/pkg/openldap/ldap.conf
pkg_add: package `openssl-1.1.1o' was already installed as dependency, now marked as installed manually
===========================================================================
$NetBSD: MESSAGE,v 1.4 2006/07/26 20:00:27 jlam Exp $

Add the following to /etc/services (if not already there):

 imap		143/tcp		# Internet Message Access Protocol
 imap		143/udp

Add the following to /etc/inetd.conf:

 imap   stream  tcp     nowait  root    /opt/pkg/libexec/imapd    imapd
 pop2   stream  tcp     nowait  root    /opt/pkg/libexec/ipop2d   ipop2d
 pop3   stream  tcp     nowait  root    /opt/pkg/libexec/ipop3d   ipop3d

You will need to make inetd reload its configuration for the changes to
take effect.

===========================================================================
===========================================================================
$NetBSD: MESSAGE.ssl,v 1.1 2006/07/26 20:00:27 jlam Exp $

Add the following to /etc/services (if not already there):

 imaps		993/tcp		# imap4 protocol over TLS/SSL
 imaps		993/udp		# imap4 protocol over TLS/SSL
 pop3s		995/tcp		# pop3 protocol over TLS/SSL (was spop3)
 pop3s		995/udp		# pop3 protocol over TLS/SSL (was spop3)

Add the following to /etc/inetd.conf:

 imaps  stream  tcp     nowait  root    /opt/pkg/libexec/imapd    imapd
 pop3s  stream  tcp     nowait  root    /opt/pkg/libexec/ipop3d   ipop3d

The imapd daemon looks for the following files to use SSL:

    /etc/opt/pkg/openssl/certs/imapd.pem (certificate)
    /etc/opt/pkg/openssl/private/imapd.pem (private key)

and similarly for the ipopd daemon.

===========================================================================