error message in rspamd after installation from amavis

Discussion in 'Installation/Configuration' started by Darkmagister, Feb 11, 2021.

  1. Darkmagister

    Darkmagister New Member

    hello,
    i have a vps with debian 10 installed and ispconfig 3.2.2, i just follow the guide to replace amavis with rspamd but i've noticed something strange in the web gui o rspamd:
    Code:
    11/2/2021, 10:52:38    normal    17370    task    44a6a6    cannot load dkim key /var/lib/amavis/dkim/domain.private: cannot stat key file: '/var/lib/amavis/dkim/domain.private' Permission denied
    but i don't understand why, ans the dkim key were probably in the amavis folder as were generated before, and have the amavis user and group access
    Code:
     ls -ahl /var/lib/amavis/dkim/domain.private
    -rw-r--r-- 1 amavis amavis 898 Sep 11 10:56 /var/lib/amavis/dkim/domain.private
    but the _rspamd user is in the amavis group i can read it from that user:
    Code:
    sudo -u _rspamd cat /var/lib/amavis/dkim/domain.private
    i get the content of it, so what is the issue ? and how can i fix it ?

    thanks
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What are the owners and permissions of that dkim directory?
    Code:
    ls -lhd /var/lib/amavis/dkim/
    Did you check _rspmd user really is in amavis group?
    Code:
    id _rspamd
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Seems it might be worth logging an issue to move the dkim keys out of the amavis directory and use eg. /var/lib/ispconfig/dkim/ instead. The same permissions/setup needs done, but it just seems like a more appropriate location.
     

Share This Page