Rspamd activate in exim but ...

MisterM

Verified User
Joined
Jul 31, 2022
Messages
347
Hello

I know, I'm making a movie about rspamd, but when I make this command, rspamd is not integrated to exim:

exim -bV | grep ^Support
2022-08-07 20:10:08 Exim configuration file /etc/exim.conf has the wrong owner, group, or mode
Support for: crypteq IPv6 Perl OpenSSL TLS_resume move_frozen_messages Content_Scanning DKIM DNSSEC Event OCSP PIPECONNECT PRDR Queue_Ramp SPF SRS TCP_Fast_Open

An explanation to give me, because I followed this tutorial to integrate rspamd to exim:

cd /usr/local/directadmin/custombuild
./build update
./build set eximconf yes
./build set eximconf_release 4.5
./build set blockcracking yes
./build set easy_spam_fighter yes
./build set spamd rspamd
./build set exim yes
./build exim
./build rspamd
./build exim_conf

What's the bug?

Mz
 
What's the bug?
Maybe something with permissions, seen it in another thread too. It's being looked at.

2022-08-07 20:10:08 Exim configuration file /etc/exim.conf has the wrong owner, group, or mode

Try this via SSH as root.
Code:
chown root:root /etc/exim.conf
chmod 644 /etc/exim.conf
Does that help?
 
Thanks @Richard G for your help

no after modification, is check with the command, rspamd is not active:
exim -bV | grep ^Support
2022-08-07 21:39:54 cwd=/root 2 args: exim -bV
Support for: crypteq IPv6 Perl OpenSSL TLS_resume move_frozen_messages Content_Scanning DKIM DNSSEC Event OCSP PIPECONNECT PRDR Queue_Ramp SPF SRS TCP_Fast_Open

Mz
 
no after modification, is check with the command, rspamd is not active:
But at least that error is gone. ;)

Do you have /etc/rspamd/users.d/username.conf files?
and maybe a /etc/rspamd/rspamd.conf.local file?

You can also check via your web interface if rspamd is present/working.
https://youserver.example.com:2222/CMD_RSPAMD_SOCK/
does that show anything?
 
Hello @Richard G

Do you have /etc/rspamd/users.d/username.conf files?

Yes , but the file is zero kb :

-rw-r--r-- 1 _rspamd _rspamd 0 Aug 7 20:49 /etc/rspamd/users.d/username.conf

However, the following file is not available :

ls /etc/rspamd/rspamd.conf.local
ls: cannot access '/etc/rspamd/rspamd.conf.local': No such file or directory

White page against rspamd access via WebUI

Kind regards

Mz
 
@MisterM The "like" is to let you know that I appreciate and read your last post/info, but didn't answer because I don't know further and then it's better to have your response as the last reply.
In those cases I rather leave the last reply to the TS so in the topic overview for some it's then more clear things are not solved yet. And it's little use to only reply with "sorry I don't know further", so in those cases I put a like to confirm having seen the reply.
 
No not yet. I'm still using Spamassassin. I'm waiting to be sure and see proof that or if rspamd is better.
Otherwise I could have done some tests for you.

It seems for some reason it's not working yet for you. However in another part of the forum I see more issues with exim.conf. Seems fixed with the newest custombuild, however some do still say issues.

You could try building rspamd and exim.conf again and see if it's fixed now.
Otherwise, we might have to wait for somebody else to answer or maybe send in a ticket if you're not on a personal license.
 
if I have a personal license, but it bothers me that it doesn't work.

I have this when I build rspamd:

dataskq: command: action=rewrite&value=rspamd
Spam::write_spamd_conf: user_prefs for foxadmin is not enabled. Skipping this write.
Spam::write_spamd_conf: user_prefs for foxstudio is not enabled. Skipping this write.
Spam::write_spamd_conf: user_prefs for michio is not enabled. Skipping this write.
Restarting rspamd.

Mz
 
if I have a personal license, but it bothers me that it doesn't work.
No ofcourse. But indeed then you can't send in a ticket unles it's a real bug.

What happens if you create user prefs on one of the user accounts. Does something change then or does the issue?
As far as I understand from the docs, they still need to have spamfiltering enabled and some preferences configured.
Unless preferences are present.

Let's call in some professional help too, maybe he likes to help with this.
@zEitEr do you have any clue on what could be going on here?
 
Hello,

First of all the command

Code:
exim -bV | grep ^Support

won't give you a word about SpamAssassin/rSpamd on DirectAdmin servers. An integration of antispam scanners is done through Exim config files. See: /etc/exim/rspamd/check_message.conf

Then make sure, the service is running:

Code:
ps aux | grep spam

you should see something like:

Code:
_rspamd     2155  0.0  3.1 436328 120952 ?       Ss   Aug08   0:03 rspamd: main process
_rspamd    54064  0.1  0.2 100528  7660 ?        Ssl  Aug08   2:16 /usr/local/bin/redis-server unixsocket:/var/lib/rspamd/.redis/redis.sock
_rspamd    54348  0.0  2.7 436328 106008 ?       S    Aug08   0:00 rspamd: rspamd_proxy process (/var/run/rspamd/rspamd_proxy.sock mode=0600 owner=_rspamd)
_rspamd    54349  0.0  2.7 441692 104204 ?       S    Aug08   0:08 rspamd: controller process (/var/run/rspamd/rspamd_controller.sock mode=0600 owner=_rspamd)
_rspamd    54350  0.0  2.5 437712 96972 ?        S    Aug08   0:03 rspamd: normal process (localhost:11333)
_rspamd    54351  0.0  2.6 436328 103156 ?       S    Aug08   0:00 rspamd: hs_helper process

if your output is much different, then you might need to investigate it. One of a possible reason of Rspamd failure to start is missing Redis.

Another point to check, by default SpamAssassin as well as Rspamd are disabled for existing and new users. You will need to make sure they are enabled on a per user level. In directadmin SpamAssasin and Rspamd settings are managed on the same page, which might be found under "Spamassassin Setup" link at an user level. Yes, the link name might be confusing.
 
Hello @zEitEr

Thanks for the support, I'll look into it as soon as possible.

In relation to this is the configuration that must be made, there is a default tutorial "Spamassassin Setup"?

Another point to check, by default SpamAssassin as well as Rspamd are disabled for existing and new users. You will need to make sure they are enabled on a per user level. In directadmin SpamAssasin and Rspamd settings are managed on the same page, which might be found under "Spamassassin Setup" link at an user level. Yes, the link name might be confusing.

Mz
 
Hello,

First of all the command

Code:
exim -bV | grep ^Support

won't give you a word about SpamAssassin/rSpamd on DirectAdmin servers. An integration of antispam scanners is done through Exim config files. See: /etc/exim/rspamd/check_message.conf

Then make sure, the service is running:

Code:
ps aux | grep spam

you should see something like:

Code:
_rspamd     2155  0.0  3.1 436328 120952 ?       Ss   Aug08   0:03 rspamd: main process
_rspamd    54064  0.1  0.2 100528  7660 ?        Ssl  Aug08   2:16 /usr/local/bin/redis-server unixsocket:/var/lib/rspamd/.redis/redis.sock
_rspamd    54348  0.0  2.7 436328 106008 ?       S    Aug08   0:00 rspamd: rspamd_proxy process (/var/run/rspamd/rspamd_proxy.sock mode=0600 owner=_rspamd)
_rspamd    54349  0.0  2.7 441692 104204 ?       S    Aug08   0:08 rspamd: controller process (/var/run/rspamd/rspamd_controller.sock mode=0600 owner=_rspamd)
_rspamd    54350  0.0  2.5 437712 96972 ?        S    Aug08   0:03 rspamd: normal process (localhost:11333)
_rspamd    54351  0.0  2.6 436328 103156 ?       S    Aug08   0:00 rspamd: hs_helper process

if your output is much different, then you might need to investigate it. One of a possible reason of Rspamd failure to start is missing Redis.

Another point to check, by default SpamAssassin as well as Rspamd are disabled for existing and new users. You will need to make sure they are enabled on a per user level. In directadmin SpamAssasin and Rspamd settings are managed on the same page, which might be found under "Spamassassin Setup" link at an user level. Yes, the link name might be confusing.
Hi @zEitEr

Result of the orders you asked me:

exim -bV | grep ^Support
2022-08-09 18:57:44 cwd=/root 2 args: exim -bV
Support for: crypteq IPv6 Perl OpenSSL TLS_resume move_frozen_messages Content_Scanning DKIM DNSSEC Event OCSP PIPECONNECT PRDR Queue_Ramp SPF SRS TCP_Fast_Open

ps aux | grep spam
_rspamd 552164 0.2 0.0 64912 11960 ? Ssl Aug04 15:08 /usr/local/bin/redis-server unixsocket:/var/lib/rspamd/.redis/redis.sock
_rspamd 2421065 0.0 0.2 304512 154356 ? Ss Aug08 0:07 rspamd: main process
_rspamd 2421794 0.0 0.2 304512 140248 ? S Aug08 0:01 rspamd: rspamd_proxy process (/var/run/rspamd/rspamd_proxy.sock mode=0600 owner=_rspamd)
_rspamd 2421795 0.2 0.2 329356 156696 ? S Aug08 3:16 rspamd: controller process (localhost:11334)
_rspamd 2421796 0.0 0.2 310400 142812 ? S Aug08 0:27 rspamd: normal process (localhost:11333)
_rspamd 2421797 0.0 0.2 310080 143360 ? S Aug08 0:27 rspamd: normal process (localhost:11333)
_rspamd 2421798 0.0 0.2 310080 142580 ? S Aug08 0:28 rspamd: normal process (localhost:11333)
_rspamd 2421799 0.0 0.2 310400 143124 ? S Aug08 0:28 rspamd: normal process (localhost:11333)
_rspamd 2421800 0.0 0.2 304512 137084 ? S Aug08 0:01 rspamd: hs_helper process
root 2574573 0.0 0.0 6180 656 pts/0 S+ 20:11 0:00 grep spam

Here is

Mz
 
Thanks for your help @zEitEr

No, when I adapt the spamassassin configurations on each account, it works, but when I see in the source code of the message the rspamd code that is noted.

Second question, I have a blank page when I want to access the rspamd webui area while being identified.

Mz
 
Back
Top