]> Sergey Matveev's repositories - public-inbox.git/blob - examples/unsubscribe-milter@.service
eb5dcbe489c87c7eb883ae82ab57efa2eecd6d2d
[public-inbox.git] / examples / unsubscribe-milter@.service
1 # ==> /etc/systemd/system/unsubscribe-milter@.service <==
2 # The '@' is to allow multiple simultaneous services to start
3 # and share the same socket so new code can be cycled in
4 # without downtime
5
6 [Unit]
7 Description = unsubscribe milter %i
8 Wants = unsubscribe-milter.socket
9 After = unsubscribe-milter.socket
10
11 [Service]
12 # First 8 bytes is for the key, next 8 bytes is for the IV
13 # using Blowfish.  We want as short URLs as possible to avoid
14 # copy+paste errors
15 # umask 077 && dd if=/dev/urandom bs=16 count=1 of=.unsubscribe.key
16 ExecStart = /usr/local/sbin/unsubscribe.milter /home/mlmmj/.unsubscribe.key
17
18 # UNIQUE_MAILTO makes the List-Unsubscribe mailto: header unique
19 # so unsubcribing becomes one-step (requires MDA/MTA configuration,
20 # see the bottom of examples/unsubscribe.milter
21 # Environment = UNIQUE_MAILTO=1
22
23 Sockets = unsubscribe-milter.socket
24
25 # the corresponding PSGI app needs permissions to modify the
26 # mlmmj spool, so we might as well use the same user since
27 User = mlmmj
28
29 [Install]
30 WantedBy = multi-user.target