OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • rspamd log - where to look for?
« previous next »
  • Print
Pages: [1]

Author Topic: rspamd log - where to look for?  (Read 1481 times)

Taym

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
rspamd log - where to look for?
« on: February 08, 2021, 06:10:19 pm »
Hello all,

It's great to be here. I've been using opnSense for few months now, quite satisfactorily.

I've recently added Postfix+rspamd. All seems to be working OK, but I wonder how effective is rspamd. Or, at least I'd like to see what rspamd is doing. But, I can't seem to find where.

Is there a log I can check? If so, where is it?
Should I look into the Postfix log instead, and, if so, what would I be looking for in it?

Thank you!
« Last Edit: February 08, 2021, 06:59:43 pm by Taym »
Logged
Taym

Bismarck

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: rspamd log - where to look for?
« Reply #1 on: February 08, 2021, 09:21:27 pm »
Hello you, there is a handy WebGUI for Rspamd, but its hidden and you need to tinker a bit to make it visible.

1. First you need to create a file in

/usr/local/etc/rspamd/override.d/worker-controller.inc

with this:
Quote
bind_socket = "*:11334";

2. restart rspamd, now the WebGUI should be reachable via

http://192.168.100.1:11334 (IP should the LAN IP of your firewall)

https://rspamd.com/webui/

3. If you like a nice Link in the service section of the WebUI, create another file in:

/usr/local/opnsense/mvc/app/models/OPNsense/Links/Menu/Menu.xml (missing folders must be created)

with this content:
Quote
<menu>
    <Services>
        <Rspamd-Web VisibleName="Rspamd Web" cssClass="fa fa-envelope fa-fw" isExternal="Y" url="http://192.168.100.1:11334/" />
    </Services>
</menu>
(same here, IP should the LAN IP of your firewall)

now execute following command in the shell:

Quote
/usr/local/etc/rc.configure_plugins

4 . Refresh your browser, there should now be a link in services like here:



5. Or just tail the rspamd log

Quote
tail -f /var/log/rspamd/rspamd.log

Hope that was helpful. ;)
« Last Edit: February 08, 2021, 09:23:20 pm by Bismarck »
Logged

Taym

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: rspamd log - where to look for?
« Reply #2 on: February 08, 2021, 10:00:18 pm »
Thank you so much!
(I wonder why isn't the WebGUI acrive by default?)
« Last Edit: February 09, 2021, 01:25:51 am by Taym »
Logged
Taym

Taym

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: rspamd log - where to look for?
« Reply #3 on: February 09, 2021, 01:25:05 am »
Quote from: Taym on February 08, 2021, 10:00:18 pm
Thank you so much!
(I wonder why isn't the WebGUI acrive by default?)

Thanks again.

Is this the file? I'm asking because it is in a different location than you indicated.

Thanks!
Logged
Taym

Bismarck

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: rspamd log - where to look for?
« Reply #4 on: February 09, 2021, 08:06:22 am »
Quote from: Taym on February 08, 2021, 10:00:18 pm
Thank you so much!
(I wonder why isn't the WebGUI acrive by default?)
Good question, tbh I don't know.
Logged

Bismarck

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
    • View Profile
Re: rspamd log - where to look for?
« Reply #5 on: February 09, 2021, 08:07:44 am »
Quote from: Taym on February 09, 2021, 01:25:05 am
Thanks again.

Is this the file? I'm asking because it is in a different location than you indicated.

Thanks!

Just create that folder override.d

https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
Logged

Taym

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: rspamd log - where to look for?
« Reply #6 on: February 09, 2021, 09:06:20 am »
Quote from: Bismarck on February 09, 2021, 08:07:44 am
Just create that folder override.d

https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories

Thanks again. Super useful resources.
After reading that, I may try to create the additional config file in local.d, then, so that new configuration is merged with the original one that apparently already exist.

Thanks for your help!
Logged
Taym

Taym

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: rspamd log - where to look for?
« Reply #7 on: February 09, 2021, 02:35:26 pm »
So, I got it to work! :)
I also had to edit  /usr/local/etc/rspamd/worker-controller.inc to add few secure_ip s to connect to.

And, so, it looks rspamd is actually NOT scanning anything :D I must have misconfigured postfix<->rspamd integration.

So, one more step to go. I'll open another post on this.
Logged
Taym

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • rspamd log - where to look for?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2