Rspamd: [Feature] Rspamd official packages & repo for Ubuntu 20.04 LTS

Created on 24 Apr 2020  路  7Comments  路  Source: rspamd/rspamd

Summary

Please consider adding rspamd official packages & repo for Ubuntu 20.04 LTS

Motivation

I would love to use official rspamd packages on Ubuntu 20.04 LTS as Ubuntu 20.04 has been released stable on Apr 23.

Describe alternatives you've considered

I considered using official Ubuntu's packages, but rspamd doc is pretty clear :-) "Rspamd is also available in some versions of Debian and Ubuntu. Please DO NOT use those packages, as they are not supported in any way."

Additional context

.

enhancement wontfix

Most helpful comment

For the impatient, this is how you can compile it on your own:

# Install build dependencies
apt-get install --no-install-recommends git devscripts build-essential cmake debhelper libcurl4-openssl-dev libglib2.0-dev libhyperscan-dev libicu-dev libjemalloc-dev libluajit-5.1-dev libmagic-dev libpcre2-dev libsodium-dev libsqlite3-dev libssl-dev libunwind-dev ragel zlib1g-dev

# Clone rspamd git repo
git clone https://github.com/vstakhov/rspamd.git

# Build deb packages
cd rspamd
debuild -i -us -uc -b

# Install rspamd (or transfer the package wherever you need)
dpkg -i ../rspamd_2.5_amd64.deb

Alternatively, you can use the released tarball instead of git master as the source. The rest of the process is the same. Note, however, that the compiled version is missing a few /etc/rspamd/*.inc files (_2tld_, _dmarc_whitelist_, _maillist_, _mid_, _mime_types_, _redirectors_, _spf_dkim_whitelist_, _surbl-whitelist_) which are otherwise distributed in the upstream packages. You can get these on https://github.com/rspamd/maps/tree/master/rspamd.

(I'm eagerly awaiting the official upstream package for _focal_ too.)

All 7 comments

For the impatient, this is how you can compile it on your own:

# Install build dependencies
apt-get install --no-install-recommends git devscripts build-essential cmake debhelper libcurl4-openssl-dev libglib2.0-dev libhyperscan-dev libicu-dev libjemalloc-dev libluajit-5.1-dev libmagic-dev libpcre2-dev libsodium-dev libsqlite3-dev libssl-dev libunwind-dev ragel zlib1g-dev

# Clone rspamd git repo
git clone https://github.com/vstakhov/rspamd.git

# Build deb packages
cd rspamd
debuild -i -us -uc -b

# Install rspamd (or transfer the package wherever you need)
dpkg -i ../rspamd_2.5_amd64.deb

Alternatively, you can use the released tarball instead of git master as the source. The rest of the process is the same. Note, however, that the compiled version is missing a few /etc/rspamd/*.inc files (_2tld_, _dmarc_whitelist_, _maillist_, _mid_, _mime_types_, _redirectors_, _spf_dkim_whitelist_, _surbl-whitelist_) which are otherwise distributed in the upstream packages. You can get these on https://github.com/rspamd/maps/tree/master/rspamd.

(I'm eagerly awaiting the official upstream package for _focal_ too.)

You can get these on https://github.com/rspamd/maps/tree/master/rspamd.

can be automated using wget like this:

cd /etc/rspamd
for INC in 2tld.inc dmarc_whitelist.inc dmarc_whitelist_new.inc maillist.inc mid.inc mime_types.inc redirectors.inc spf_dkim_whitelist.inc surbl-whitelist.inc
do wget -O $INC https://github.com/rspamd/maps/blob/master/rspamd/$INC
done

Showing my ignorance here, but if I compile my own package as per the instructions from @Disassembler0 and @wienfuchs does that have any implications on switching to the official repository & focal package when it becomes available? I'm thinking not, but confirmation would be reassuring, thanks

Looks like Focal packages have been available since July 15, 2020: https://rspamd.com/apt-stable/dists/focal/

They seem broken though:

# /etc/init.d/rspamd restart
 * Restarting rapid spam filtering system rspamd
/etc/init.d/rspamd: line 39:  5571 Segmentation fault      $RSPAMADM configtest $DAEMON_ARGS > /dev/null

They seem broken though:

# /etc/init.d/rspamd restart
 * Restarting rapid spam filtering system rspamd
/etc/init.d/rspamd: line 39:  5571 Segmentation fault      $RSPAMADM configtest $DAEMON_ARGS > /dev/null

Having the same issue with the a/m packages, self-built packages are working fine though.

I've just followed the instructions here: https://rspamd.com/downloads.html on an Ubuntu 20.04.1 fully patched box and it installed fine and started the daemon. This VM was installed from a "minimal" server 16.04 .iso many moons ago and has been upgraded from LTS to LTS.

However, running rspamadm configtest does generate a seg fault so time to dig out gdb. At first sight it looks like rspamd itself is running fine.

# gdb /usr/bin/rspamadm core
GNU gdb (Ubuntu 9.1-0ubuntu1) 9.1
...
Reading symbols from /usr/bin/rspamadm...
(No debugging symbols found in /usr/bin/rspamadm)
[New LWP 11573]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rspamadm configtest'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f4ed3e580a7 in hascaptures () from /usr/lib/rspamd/librspamd-server.so

grepping the source, that function is in contrib/lua-lpeg/lpcode.{ch}

That's as far as I can go without some directions!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashceryth picture ashceryth  路  7Comments

Natureshadow picture Natureshadow  路  8Comments

stephdl picture stephdl  路  3Comments

mpizzoli picture mpizzoli  路  3Comments

stephdl picture stephdl  路  6Comments