docker-mailserver: [BUG]: RSPAMD needs a password for the web interface
đ Preliminary Checks
- I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.
đ What Happened?
The documentation says
Rspamd provides a web interface, which contains statistics and data Rspamd collects. The interface is enabled by default and reachable on port 11334.
This doesnât mention the need to setup a custom password that is needed to get into the web interface.
The documentation also mentions that DMS doesnât set a password but only provides an option to disable it altogether:
DMS does not set a default password for the controller worker. You may want to do that yourself. In setups where you already have an authentication provider in front of the Rspamd webpage, you may want to set the secure_ip option to â0.0.0.0/0â for the controller worker to disable password authentication inside Rspamd completely.
Iâll work on a PR that will ad a section to the documentation that explains how to add the password and therefore enable the WebUI by utilizing the custom config file but I think that this should be an option in DMS as the UI is enabled by default.
đ Reproduction Steps
- See the docs
- Open port
11334in the container - Connect to the web interface
- See password prompt
- See rspamd documentation to know that must set a password in order to be able to log in
đ DMS Version
v13.3.1
đ» Operating System and Architecture
Debian GNU/Linux 11 (bullseye) aarch64
âïž Container configuration files
Not relevant
đ Relevant log output
Not relevant
Improvements to this form?
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (11 by maintainers)
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it.
Para configurar uma senha para o acesso Ă interface web do Rspamd no Docker Mail Server (DMS), vocĂȘ precisarĂĄ criar ou modificar um arquivo de configuração personalizado. Aqui estĂŁo os passos que vocĂȘ pode seguir:
Criar o Arquivo de Configuração Personalizado: Primeiro, vocĂȘ precisa criar um arquivo chamado
worker-controller.incdentro do diretĂłrio de configuração do Rspamd no DMS. Este diretĂłrio geralmente Ă© mapeado paradocker-data/dms/config/rspamdno host ou/tmp/docker-mailserver/rspamd/dentro do contĂȘiner.Definir a Senha no Arquivo de Configuração: No arquivo
worker-controller.inc, vocĂȘ deve definir a senha para o trabalhador do controlador. Adicione a seguinte linha ao arquivo:Substitua
"sua_senha_secreta"pela senha que vocĂȘ deseja usar.Reiniciar o ContĂȘiner do DMS: ApĂłs modificar ou criar o arquivo de configuração, vocĂȘ precisarĂĄ reiniciar o contĂȘiner do DMS para que as alteraçÔes tenham efeito. VocĂȘ pode fazer isso com o seguinte comando Docker:
Acessar a Interface Web: ApĂłs o reinĂcio, vocĂȘ pode acessar a interface web do Rspamd no navegador usando o endereço
http://<seu_endereço_ip>:11334. VocĂȘ serĂĄ solicitado a inserir a senha que configurou.Essas instruçÔes devem ajudĂĄ-lo a configurar a senha para a interface web do Rspamd no Docker Mail Server. Se vocĂȘ encontrar algum problema, verifique os logs do contĂȘiner para possĂveis erros relacionados Ă configuração do Rspamd.
This comment was generated by Glime.
LOL the options are wrong and in Portuguese! XD
@jiriks74 , on Saturday I started using DMS again. I use (and highly recommend) Caddy as my reverse proxy. I still have a âmysteryâ to solve but I managed to configure the password to access the RSPAMD web interface by doing the following:
On my test server, in my user folder, I have a âdockerâ folder where I create subfolders for the containers/stacks I use. In the case of DMS this folder is
~/docker/mail/. The config folder is created inside this folder and within it the rspamd folder which will have thecustom-commands.conffile. Then when the container runs the configuration is adjusted.The âmysteryâ that remains to be resolved is that RSPAMD should not ask for passwords for IPs that I have defined as âsecureâ. But it keeps asking for the password.
I hadnât touched DMS in a long time. The project has improved a lot (congratulations to the developers and collaborators) and the documentation is great too.
Yes but I already have traefik that exposes 80 and 443 to the internet. I also use it for retrieving the Letâs Encrypt certificates for DMS.
I have multiple services (eg. my website, Gitea, Opengist, asciinema, OpenProject, âŠ) running on the domain so the ports are not available due to them being used by an existing proxy server.
Itâs the least I can do after Iâm making use of something thatâs provided for free and open-source.
I kinda want to avoid spinning up unnecessary containers as the host isnât that powerful. Also Iâd still have to figure out how to turn the password off which is not that clear in the docs. The change I proposed was adding some guidance on creating the password using the custom config file with some further discussion on possible integrations here.
I think that for my use case itâs better to change the password rather than spin up a new container, learn new config (in case I want to change something) and change ports on some other container because 80, and others, are already used.
Thatâs a problem I wasnât aware of and I totally understand why you wouldnât want to add another env option. I thing that after knowing this (and not writing this at 12AM - envs are easier to leak) I think that the addition to the docs is the best way to solve this.