Can't access the Rspamd dashboard

Discussion in 'General' started by Jean-François Questiaux, Dec 4, 2020.

  1. Hi,
    I followed this tuto to install rspamd https://www.howtoforge.com/replacing-amavisd-with-rspamd-in-ispconfig/ and it seems that everything went well. However I can't access to the GUI interface.
    In the tuto, you need to choose the domain for the interface but I have ISP 3.2.1 and it does not give you a choice. It's the URL of the mail server hostname: https://hostname:8081/rspamd/
    But whe I click on the link, i get a timeout error.
    I did add "hostname" as a web site in ISP config and this "hostname" has an A record in DNS.
    Last info: this is a multiserver install with "hostname" above being the mail server (but it has Apache installed) and the ISPConfig admin on another server.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Were you not able to do some part of "Make Rspamd Dashboard accessible from outside"?
    What choice? I'm sure ISPConfig 3.2.1 allows creating a website.
     
  3. Well, no: as soon as you select Rspamd, the link to the interface URL and the password are displayed. You can change the password but you can't edit the link. Maybe you can do it directly in the ISPConfig database?

    EDIT: no, only the password is in the database, so it is really set to use the mail server hostname.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Select where?
    Why edit the link? The default link works.
     
  5. Select in the mail server config, in the Mail tab (for "Content Filter").
    Well, in my case the link does not work. Maybe there is something more to do? Or does it have to do with the multiserver setting? Do I have to install Rspamd on the master server too and have the dashboard acces from this one?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You did install RSpamd on the e-mail server host?
     
  7. Yes. I see it in /etc/rspamd.
    I assume it's working (I don't know how I can be sure)
     
  8. OK. Latest developement. As an experiment, I installed RSpamd on the Master server, selected RSpamd in the master server config, created a Web site with the domain that was displayed and ... I have now the login page! But the joy was short because if I enter the password, I get a "Undefined" and "Request failed" message.
    To be sure, I tried also the password given for the mail server, but I have the same messages.
    I guess it makes sense that the dashboard should be on mail server, so the question is: what should I do to have the given URL working?
     
  9. After investigations, I think the problem is that despite the fact the mail server is also checked as Web server in ISPConfig, no site is created in /var/www when you create the site in ISPConfig. I'm not sure what I can do to correct that.
     
  10. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If we have a mailserver mail.example.com with IP address 1.2.3.4, and Apache installed, you could create a website "mail.example.com" on that server with these directives:
    Code:
    <Location /rspamd>
    Require all granted
    </Location>
    RewriteEngine On
    RewriteRule ^/rspamd$ /rspamd/ [R,L]
    RewriteRule ^/rspamd/(.*) http://127.0.0.1:11334/$1 [P]
    It would then be available on mail.example.com/rspamd

    You might have to reset the password if you can access the GUI but get a error, you can do this in ISPConfig -> System -> Server Config -> mail.example.com -> Mail
     
  11. Yes, I got that but, as I wrote in my latest post, I found that the problem comes that no site is created when I add a new one from the ISPConfig interface. It should be in the /var/www/clients forlder but there is only a /var/www/html present.
    Maybe if I add manually a "clients" subfolder? Or ... ?
     
  12. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  13. The "web server" function is not active on the mail server (although it says so in ISPConfig > System >Server), so I guess what I need to know is how to enable this on the mail server since I can't do it from the ISP console (I tried: disable Web tne re-enable it for the mail server, but there are no changes).
    I don't think I can use ispconfig_update.sh since I'm already at the latest version.
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You have to run a force upgrade with
    Code:
    ispconfig_update.sh --force
    and configure the webserver
     
  15. Well, making progresses but...
    After forcing the upgrade, ISPConfig does create the new website in the /var/www/clients folder, but no virtual host is created in Apache, therefore the connexion to the created website fails.

    Is it important to have access to the RSpamd dashboard?
     
  16. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    RSPamd works even if you do not access the dashboard. But dashboard is nice, the Throughput and History tab show you what is happening.
    I did not have any trouble getting dashboard to work. I had both single server setup and a separate e-mail server. I just followed the rspamd tutorial.
     
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Use the debugging steps I shared earlier to find the issue.
     
  18. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You might also check what ispconfig server plugins are enabled, maybe you have to catch something manually?
     

Share This Page