1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-23 02:27:05 +00:00

Disable MOTD advertisements

Disables MOTD advertisements which use a script to send server information in `wget` headers to Canonical.
This commit is contained in:
Paul 2024-11-04 03:01:27 -08:00 committed by GitHub
parent 1699ab8c02
commit 863002fcf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,6 +83,13 @@ fi
# (See https://discourse.mailinabox.email/t/journalctl-reclaim-space-on-small-mailinabox/6728/11.)
tools/editconf.py /etc/systemd/journald.conf MaxRetentionSec=10day
# ### Improve server privacy
# Disable MOTD adverts to prevent revealing server information in MOTD request headers
# See https://ma.ttias.be/what-exactly-being-sent-ubuntu-motd/
tools/editconf.py /etc/default/motd-news ENABLED=0
rm -f /var/cache/motd-news
# ### Add PPAs.
# We install some non-standard Ubuntu packages maintained by other