diff options
Diffstat (limited to 'examples/public-inbox-imapd.socket')
-rw-r--r-- | examples/public-inbox-imapd.socket | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/public-inbox-imapd.socket b/examples/public-inbox-imapd.socket new file mode 100644 index 00000000..22ce16fb --- /dev/null +++ b/examples/public-inbox-imapd.socket @@ -0,0 +1,27 @@ +# ==> /etc/systemd/system/public-inbox-imapd.socket <== +# Consider looking at public-inbox-netd.socket instead of this file +# to simplify management when serving multiple protocols. +# +# This contains 5 sockets for an public-inbox-imapd instance. +# The TCP ports are well-known ports registered in /etc/services. +# The /run/imapd.onion.sock entry is meant for the Tor hidden service +# enabled by the following line in the torrc(5) file: +# HiddenServicePort 143 unix:/run/imapd.onion.sock +[Unit] +Description = public-inbox-imapd sockets + +[Socket] +ListenStream = 0.0.0.0:143 +ListenStream = 0.0.0.0:993 +ListenStream = /run/imapd.onion.sock + +# Separating IPv4 from IPv6 listeners makes for nicer output +# of IPv4 addresses in various reporting/monitoring tools +BindIPv6Only = ipv6-only +ListenStream = [::]:143 +ListenStream = [::]:993 + +Service = public-inbox-imapd@1.service + +[Install] +WantedBy = sockets.target |