- # Addition to /etc/inetd.conf
- string_add "imaps stream tcp nowait.400 root /usr/bin/imapd imapd" \
- /etc/inetd.conf
+ # Addition to xinetd
+ cat > /etc/xinetd.d/imapd << "EOF"
+service imap
+{
+ disable = no
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ server = /usr/bin/imapd
+ log_type = SYSLOG local4 info
+}
+EOF