[SOLVED] Rspamd errors

Discussion in 'General' started by pmk885, Mar 15, 2021.

  1. pmk885

    pmk885 New Member

    My server has been running fine for over a year but now I noticed these errors in rspamd history tab. Those files mentioned are not present in that location. These errors do not appear in past logs, only todays logs.

    I did run
    Code:
    ispconfig_update.sh --force
    to reconfigure services but it did not help.

    Code:
    [INFO] OS version is Debian GNU/Linux 10 (buster)
    ISPConfig version is 3.2.3
    Rspamd daemon version 2.7
    [INFO] php (cli) version is 7.3.27-9+0~20210227.82+debian10~1.gbpa4a3d6
    Code:
    cannot open file '/etc/rspamd/local.d/maps.d/spf_dkim_whitelist.inc.local': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/dmarc_whitelist.inc.local': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/dkim_whitelist.inc.local': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/spf_whitelist.inc.local': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/surbl-whitelist.inc.local': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/redirectors.inc': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/mime_types.inc.local': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/mid.inc': Permission denied
    cannot open file '/etc/rspamd/local.d/maps.d/greylist-whitelist-domains.inc': Permission denied
    Code:
    ~ ls -la /etc/rspamd/local.d/maps.d/
    total 24
    drwxr--r-- 2 root root 4096 Mar 13 11:20 .
    drwxr-xr-x 4 root root 4096 Mar 13 11:20 ..
    -rw-r--r-- 1 root root  130 Mar 15 16:21 dkim_whitelist.inc
    -rw-r--r-- 1 root root  150 Mar 15 16:21 dmarc_whitelist.inc
    -rw-r--r-- 1 root root  299 Mar 15 16:21 spf_dkim_whitelist.inc
    -rw-r--r-- 1 root root  144 Mar 15 16:21 spf_whitelist.inc
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    On my install,, those files are in /etc/rspamd/maps.d instead of /etc/rspamd/local.d/maps.d - maybe that's the problem?

    Which errors do you see in the rspamd UI?
     
  3. pmk885

    pmk885 New Member

    Yep, there they are, except those with .local extensions. Should I copy or move them to location given in error?

    Code:
    ~ ls -la /etc/rspamd/maps.d
    total 96
    drwxr-xr-x 2 root root  4096 Jan 12 11:18 .
    drwxr-xr-x 7 root root  4096 Jan 12 11:18 ..
    -rw-r--r-- 1 root root   934 Nov 20 16:42 dmarc_whitelist.inc
    -rw-r--r-- 1 root root  2040 Nov 20 16:42 maillist.inc
    -rw-r--r-- 1 root root   600 Nov 20 16:42 mid.inc
    -rw-r--r-- 1 root root 48129 Feb 17  2020 mime_types.inc
    -rw-r--r-- 1 root root  9882 Nov 20 16:42 redirectors.inc
    -rw-r--r-- 1 root root  2781 Nov 20 16:42 spf_dkim_whitelist.inc
    -rw-r--r-- 1 root root 11640 Nov 20 16:42 surbl-whitelist.inc
    I copied those errors from rspamd UI. Screenshot attached however.
     

    Attached Files:

  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    No, local.d/maps.d/ is the correct path for those files. The files under /etc/rspamd/maps.d/ are ones which the default rspamd config downloads/maintains.
    The problem is the permissions on /etc/rspamd/local.d/maps.d/, your does not allow the _rspamd user to open files within that directory, so 'chmod 755/etc/rspamd/local.d/maps.d/' then you might re-run the installer and reconfigure services.
     
    pmk885 likes this.
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    @pmk885, this issue is caused because you have a more restrictive umask in effect than normal; I'm curious about your install and if you specifically set umask, or if it just came about because of the installation method/source you used. Heck, it could even be carried from server/scripts/update_runner.sh when you ran the updater. I'll look at at minimum setting a 0022 umask in the rspamd config function, but there's a good chance a restrictive umask will affect other things as well that might need considered.
     
  6. pmk885

    pmk885 New Member

    Thanks, that worked.

    I'm a bit confused about the cause of this because I don't even know where to change umask settings (if there even is one in web UI) and I haven't changed any file/folder permissions in shell either. I dont like to fiddle with things because I could mess up something so I keep things default. I intially installed ISPConfig 3.1.5 following the perfect server tutorial and replaced amavisd with rspamd according the tutorial found on this site.
     
    ledufakademy likes this.
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

  8. ledufakademy

    ledufakademy Member

    ... work for me

    Note : also need to open port 11335 for ougoing for our mail server ... (for fuzy1.rspamd.com:11335) log error in Rspamd WebGui
     

Share This Page