Commit graph

11 commits

Author SHA1 Message Date
fox.cpp
c0eacfa0f3
Merge maddyctl and maddy executabes
Closes #432.
2022-01-07 00:37:49 +03:00
Alexandre Iooss
34a8c6864d dist: Set ProtectClock, RestrictAddressFamilies and CapabilityBoundingSet
This increases the isolation of Maddy service. Maddy capabilities can be
bound to only CAP_NET_BIND_SERVICE. This also restricts the service to
only use Unix sockets, IPv4 and IPv6.
2021-08-27 10:50:18 +03:00
Jordan Patterson
0677355232 made default ExecStart path the same as the default build.sh 2021-08-22 14:30:51 +03:00
fox.cpp
5eec45ec0d
docs: Replace foxcpp.dev/maddy with maddy.email 2021-03-07 22:15:24 +03:00
fox.cpp
64cc2b2380
dist: Add missing [Install] section to systemd units 2020-06-02 23:58:39 +03:00
fox.cpp
1b2b101f8e
dist: Remove DynamicUser from systemd units
It is only a good thing to use for simple stateless daemons.  It is
possible to use StateDirectory to store state, but it is extremely
limited. Notably, only service processes and root can correctly access
the state directory. This makes up for a bad practice to run maddyctl as
root what in turn screws up permissions on files in messages directory
when imap-* subcommands are used.

Migration note: Users of systemd unit with DynamicUser enabled should
move /var/lib/private/maddy to /var/lib/maddy before starting maddy
after update.
2020-01-03 02:08:50 +03:00
fox.cpp
ed9e2daed7
dist: Set ExecReload to send SIGUSR1+SIGUSR2 to process
It is not recommended by systemd.service(5) to use signals in
ExecReload, but we do not have a better solution now.
2020-01-02 19:12:10 +03:00
fox.cpp
ff982cd1c3
dist: Use Restart=on-failure in systemd units
With RestartPreventExitStatus to prevent restart spam on configuration
errors.
2019-12-28 18:41:56 +03:00
fox.cpp
5f809c3157
docs: Use mkdocs to render documentation 2019-12-06 23:23:02 +03:00
fox.cpp
974dd3c7f8
Use systemd notify socket to report process status
It has all sorts of benefits due to the service manager being aware of
the starting/running/stopping state, see systemd.service(5)

On top of that, start-up errors are reported using STATUS= key, so they
will be easier to see in the 'systemctl status' output.
2019-11-21 23:58:06 +03:00
fox.cpp
8e8fee2b6b
dist: Copy fail2ban configuration from wiki 2019-09-19 19:42:56 +03:00
Renamed from dist/maddy@.service (Browse further)