Rspamd does not start!

Discussion in 'Installation/Configuration' started by concept21, Aug 7, 2023.

Tags:
  1. concept21

    concept21 Active Member

    I just checked my ISPConfig system, it showed that
    Code:
    sudo systemctl start rspamd.service
    sudo systemctl status rspamd.service
    rspamd.service - rapid spam filtering system
         Loaded: loaded (/lib/systemd/system/rspamd.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Mon 2023-08-07 03:16:57 HKT; 3s ago
           Docs: https://rspamd.com/doc/
        Process: 21178 ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f (code=exited, status=1/FAILURE)
       Main PID: 21178 (code=exited, status=1/FAILURE)
    
    Aug 07 03:16:57  systemd[1]: rspamd.service: Scheduled restart job, restart counter is at 5.
    Aug 07 03:16:57 systemd[1]: Stopped rapid spam filtering system.
    Aug 07 03:16:57  systemd[1]: rspamd.service: Start request repeated too quickly.
    Aug 07 03:16:57  systemd[1]: rspamd.service: Failed with result 'exit-code'.
    Aug 07 03:16:57 systemd[1]: Failed to start rapid spam filtering system.
    
    Rspamd actually cannot start by itself.
    Is it the cause of ISPConfig to not attach my DKIM key to email being sent?
    How do I correct this? :(
    My system is ISPConfig 3.2.10p2, Ubuntu 20.04.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    DKIm signing happens either by Amavis or Rspamd, if your system is based on Rspamd, then you will not get DIM signatures when Rspamd is down. Try this to get a more meaningful error report:

    systemctl reset-failed rspamd
    systemctl start rspamd
     
  3. concept21

    concept21 Active Member

    It seems that your commands cannot help:
    Code:
    sudo systemctl reset-failed rspamd
    sudo systemctl start rspamd.service
    sudo systemctl status rspamd.service
    rspamd.service - rapid spam filtering system
         Loaded: loaded (/lib/systemd/system/rspamd.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Mon 2023-08-07 14:56:38 HKT; 6s ago
           Docs: https://rspamd.com/doc/
        Process: 366985 ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f (code=exited, status=1/FAILURE)
       Main PID: 366985 (code=exited, status=1/FAILURE)
    
    Aug 07 14:56:38 systemd[1]: rspamd.service: Scheduled restart job, restart counter is at 5.
    Aug 07 14:56:38 systemd[1]: Stopped rapid spam filtering system.
    Aug 07 14:56:38 systemd[1]: rspamd.service: Start request repeated too quickly.
    Aug 07 14:56:38 systemd[1]: rspamd.service: Failed with result 'exit-code'.
    Aug 07 14:56:38 systemd[1]: Failed to start rapid spam filtering system.
    
    At least, I know why there is no DKIM key attached to email sent by my host. :(
     
  4. concept21

    concept21 Active Member

    I suspect that last time when I upgraded ISPConfig from Amavis to rspamd, there was something mis-configured. :(
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to run an ispconfig update with reconfigure services = yes. Then login to ispconfig, go to Tools > resync and resync the mail accounts.
     
  6. concept21

    concept21 Active Member

    Hi Till,
    Your technique does not repair rspamd service.
    It refuses to start.
    It seems that Ubuntu 20.04 package of rspamd has some issue.
    I am going to install the rspamd official v2.5 and see what happens.
     
  7. concept21

    concept21 Active Member

    WTF!!! How and why did it happen?!?! :mad:

    The rspamd log files were hijacked by root during last rotation! So rspamd could not access its own log file!
    I have corrected its log files owner and rspamd runs again! :D
     
    till likes this.
  8. concept21

    concept21 Active Member

    WOW!!! Beautifully signed!!!
    Thank you very much!!! :D:p
     

Share This Page