Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Forked from Razuuu/install-rspamd-stable.sh
Last active December 17, 2024 19:41
Show Gist options
  • Save jniltinho/9e13a53eade19940414c44549c63c89a to your computer and use it in GitHub Desktop.
Save jniltinho/9e13a53eade19940414c44549c63c89a to your computer and use it in GitHub Desktop.
Install rspamd stable - Ubuntu/Debian
#!/bin/bash
# See https://rspamd.com/downloads.html
apt update
apt install -y sudo lsb-release wget gpg
CODENAME=$(lsb_release -c -s)
if [ $CODENAME = "trixie" ]; then
CODENAME="bookworm"
fi
wget -O- https://rspamd.com/apt-stable/gpg.key | gpg --dearmor >/etc/apt/trusted.gpg.d/rspamd.gpg
cat <<EOF > /etc/apt/sources.list.d/rspamd.list
deb [arch=amd64] http://rspamd.com/apt-stable/ $CODENAME main
deb-src [arch=amd64] http://rspamd.com/apt-stable/ $CODENAME main
EOF
sudo apt-get update
sudo apt-get --no-install-recommends install rspamd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment