Cannot download rspamd repo file

Hello,

DirectAdmin does not limit you on it, and you might install Rspamd by any available means. You will need only to make sure your configs are DirectAdmin compatible.

p.s. Feel free to try it and update us with results.
 
works well with Almalinux 8 but rspamd is not available for Almalinux 9
 
Confirm I have this problem too with AlmaLinux 9

Created symlink /etc/systemd/system/multi-user.target.wants/redis-rspamd.service -> /etc/systemd/system/redis-rspamd.service.
Job for redis-rspamd.service failed because the control process exited with error code.
See "systemctl status redis-rspamd.service" and "journalctl -xeu redis-rspamd.service" for details.
Failed to reload rspamd.service: Unit rspamd.service not found.
vm.overcommit_memory = 1
Cannot download rspamd repo file https://rspamd.com/rpm-stable/centos-9/rspamd.repo.
2023/06/22 01:46:12 info executing task task=action=notify&message=CustomBuild+installation+has+failed%2C+please+check+the+following+file+for+more+information%3A%0A%2Fvar%2Flog%2Fdirectadmin%2Fcustombuild.1687371325.99124.YWxsAGQA.log&subject=CustomBuild+installation+has+failed&value=admin

[root@ns110 custombuild]# curl https://rspamd.com/rpm-stable/centos-9/rspamd.repo
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
 
Make install by your self

vi /usr/local/directadmin/custombuild/build
Code:
doRspamd() {
    if [ "${SPAMD_OPT}" != "rspamd" ]; then
        do_exit 1 "Rspamd is not set in options.conf."
    fi
...
    if distro_is_rhel; then

        if [ ! -d /usr/local/lib/rspamd ]; then
            yum install -y git openssl glib2 ragel luajit-devel hyperscan-devel cmake sqlite file-devel libicu pcre zlib
            git clone --recursive https://github.com/rspamd/rspamd.git
            mkdir rspamd/rspamd.build
            cd rspamd/rspamd.build
            cmake ../ -DENABLE_HYPERSCAN=ON -DENABLE_LUAJIT=ON -DCMAKE_BUILD_TYPE=RelWithDebuginfo
            make
            make install
        fi

        # if [ ! -s /etc/yum.repos.d/rspamd.repo ]; then
        #     RSPAMD_REPO_URL="https://rspamd.com/rpm-stable/centos-$(rhel_version)/rspamd.repo"
        #     if ! curl --silent --fail ${RSPAMD_REPO_URL}; then
        #         do_exit 1 "Cannot download rspamd repo file ${RSPAMD_REPO_URL}."
        #     fi
        #     safeDownloadWithMove "/etc/yum.repos.d/rspamd.repo" "${RSPAMD_REPO_URL}"
        #     rpm --import https://rspamd.com/rpm-stable/gpg.key
        # fi
        # reinstall_rpms rspamd
        # if [ $? -ne 0 ]; then
        #     do_exit 1 "Yum failed to install rspamd."
        # fi
    fi

or
 
Back
Top