rspamd on centos8 has no repo.

Marwen

Verified User
Joined
Nov 7, 2003
Messages
158
Location
germany
Hi..

There are no rspamd rpm or repo for centos 8 at the moment.
If i try the centos 7 repo i get the message


Problem: conflicting requests
- nothing provides libcrypto.so.10()(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libssl.so.10()(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libssl.so.10(libssl.so.10)(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libopenblas.so.0()(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libicudata.so.50()(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libicuuc.so.50()(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libicui18n.so.50()(64bit) needed by rspamd-1.9.4-3.x86_64
- nothing provides libevent-2.0.so.5()(64bit) needed by rspamd-1.9.4-3.x86_64

so i revert back to spamassassin for the moment.
 
Here is a reply from the author of rspamd:

Many packages that are essential for Rspamd build are missing, e.g. Ragel. So I think that CentOS 8 will not be supported unless it comes to some mature state.

So let's see how it goes then.

And please if you read this thread take a minute to add your vote here https://github.com/rspamd/rspamd/issues/3060 The more of us shows an interest, the more chances to get a quicker release of rspamd for CentOS 8 we have.
 
Good job, thanks. I've already installed rspamd 2.0 on CentOS 8:

Code:
wget https://rspamd.com/rpm/centos-8/rspamd-experimental.repo -O /etc/yum.repos.d/rspamd.repo
cd /usr/local/directadmin/custombuild/
./build update
./build set spamd rspamd
./build rspamd

that's it.


Changing statistics to work with sqlite (optional):

Code:
touch /etc/rspamd/local.d/statistic.conf

open the file in an editor and populate with the following content:

Code:
# Rspamd statistic setup# Pre-built files could be loaded from:
# http://rspamd.com/rspamd_statistics/bayes.spam.sqlite
#  - and -
# http://rspamd.com/rspamd_statistics/bayes.ham.sqlite


classifier "bayes" {
  tokenizer {
    name = "osb";
  }
  cache {
    path = "${DBDIR}/learn_cache.sqlite";
  }
  min_tokens = 11;
  backend = "sqlite3";
  languages_enabled = true;
  min_learns = 200;


  statfile {
    symbol = "BAYES_HAM";
    path = "${DBDIR}/bayes.ham.sqlite";
    spam = false;
  }
  statfile {
    symbol = "BAYES_SPAM";
    path = "${DBDIR}/bayes.spam.sqlite";
    spam = true;
  }
  learn_condition =<<EOD
return function(task, is_spam, is_unlearn)
  local learn_type = task:get_request_header('Learn-Type')


  if not (learn_type and tostring(learn_type) == 'bulk') then
    local prob = task:get_mempool():get_variable('bayes_prob', 'double')


    if prob then
      local in_class = false
      local cl
      if is_spam then
        cl = 'spam'
        in_class = prob >= 0.95
      else
        cl = 'ham'
        in_class = prob <= 0.05
      end


      if in_class then
        return false,string.format('already in class %s; probability %.2f%%',
          cl, math.abs((prob - 0.5) * 200.0))
      end
    end
  end


  return true
end
EOD


}

restart rspamd.

Install rspamd plugin (optional) => https://forum.directadmin.com/showthread.php?t=57856
 
A repository of Rspamd experimental is now added into CustomBuild, I see it in 2.0.0 (rev: 2227):

Code:
                if [ ! -s /etc/yum.repos.d/rspamd.repo ]; then
                        RSPAMD_REPO_URL=https://rspamd.com/rpm-stable/centos-${OS_CENTOS_VER}/rspamd.repo
                        if [ "${OS_CENTOS_VER}" = "8" ]; then
                                RSPAMD_REPO_URL=https://rspamd.com/rpm/centos-8/rspamd-experimental.repo
                        fi
                        if ! curl --silent --fail ${RSPAMD_REPO_URL}; then
                                do_exit 1 "Cannot download rspamd repo file ${RSPAMD_REPO_URL}."
                        fi
                        curl --fail ${RSPAMD_REPO_URL} > /etc/yum.repos.d/rspamd.repo
                        rpm --import https://rspamd.com/rpm-stable/gpg.key
                fi


With this modification there is no more need to install experimental repository manually.
 
Last edited:
Hi All.

After update Rspamd web interface from 0.1.1 to 0.1.2 the Plugin is not more showing in "Extra Features" section.
OS: Centos 8 and also centos 7
 
Back
Top