summaryrefslogtreecommitdiff
path: root/mail/imap-uw/MESSAGE
blob: 84036930dc9dcd0fea62e318b04eab3b49b5c981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
===========================================================================
$NetBSD: MESSAGE,v 1.2 2003/09/16 19:16:44 jmmv Exp $

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

 imap		143/tcp		# Internet Message Access Protocol
 imap		143/udp
 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:

 imap   stream  tcp     nowait  root    ${PREFIX}/libexec/imapd    imapd
 imaps  stream  tcp     nowait  root    ${PREFIX}/libexec/imapd    imapd
 pop2   stream  tcp     nowait  root    ${PREFIX}/libexec/ipop2d   ipop2d
 pop3   stream  tcp     nowait  root    ${PREFIX}/libexec/ipop3d   ipop3d
 pop3s  stream  tcp     nowait  root    ${PREFIX}/libexec/ipop3d   ipop3d

In order to use SSL, you will need to configure a certificate and store it
in the ${SSLCERTS} directory, using the imapd.pem name.
If you want to use an existing certificate, say from Apache, just copy it
there (you may need to concatenate .key and .crt files together).

To put the changes into effect, make inetd reload its configuration:
On NetBSD 1.5 or later:
	/etc/rc.d/inetd reload
on earlier NetBSD releases:
	kill -HUP `cat /var/run/inetd.pid`

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