Skip to content

bug report: rmdir: failed to remove '/etc/rspamd/override.d': Not a directory #3328

@ghnp5

Description

@ghnp5

Preliminary Checks

  • I checked that all ports are open and not blocked by my ISP / hosting provider.
  • I know that SSL errors are likely the result of a wrong setup on the user side and not caused by DMS itself. I'm confident my setup is correct.
  • I searched the issue tracker but was unable to find my issue.
  • I read the extended documentation in general but found nothing to resolve the issue.
  • I read the documentation on debugging, tried the proposed steps to debug the problem, but was still unable to resolve the issue.
  • I have read this project's Code of Conduct and I agree

Affected Component(s)

not linking '/tmp/docker-mailserver/rspamd/override.d/'

What happened and when does this occur?

I've just restarted DMS, and I got these warnings at startup:

[ INF ] Welcome to docker-mailserver 12.1.0
[ INF ] Checking configuration
[ WARNING ] This container was (likely) improperly restarted which can result in undefined behavior
[ WARNING ] Please destroy the container properly and then start DMS again
[ INF ] Configuring mail server
mv: cannot stat '/etc/cron.d/amavisd-new': No such file or directory
rmdir: failed to remove '/etc/rspamd/override.d': Not a directory
[ WARNING ] (Rspamd setup) Could not remove '/etc/rspamd/override.d' (not empty?) - not linking '/tmp/docker-mailserver/rspamd/override.d/'

This only happened after the first start, after enabling Rspamd.

What did you expect to happen?

Proper link to /tmp/docker-mailserver/rspamd/override.d/

Although, I tested going inside the container, and do:

$ cd /tmp/docker-mailserver/rspamd/override.d
$ echo "1" > test.txt

and the file was created in the mounted volume.

So the link seems to be correct.

How do we replicate the issue?

  1. Restart the container
  2. Look at the docker logs

DMS version

latest

What operating system is DMS running on?

Linux

Which operating system version?

CentOS 7

What instruction set architecture is DMS running on?

AMD64 / x86_64

What container orchestration tool are you using?

Docker Compose

compose.yaml

services:
  mailserver:
    image: docker.io/mailserver/docker-mailserver:latest
    hostname: ${HOSTNAME}
    domainname: ${DOMAINNAME}
    container_name: mailserver
    restart: always
    stop_grace_period: 1m
    ports:
      - "25:25"    # SMTP  (explicit TLS => STARTTLS)
      - "465:465"  # ESMTP (implicit TLS => SSL/TLS)
      - "993:993"  # IMAP4 (implicit TLS => SSL/TLS)
      - "127.0.0.1:11334:11334" # rspamd
    volumes:
      - /opt/docker/mailserver/data:/var/mail
      - /opt/docker/mailserver/state:/var/mail-state
      - /opt/docker/mailserver/logs:/var/log/mail
      - /opt/app/certificates/wildcard-domain1.com:/var/mail-ms-certs:ro
      - ./config/:/tmp/docker-mailserver/
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
      - mailserver.env
    dns:
      - 9.9.9.9
      - 8.8.8.8
      - 1.1.1.1
      - 1.0.0.1
    cap_add:
    - NET_ADMIN
    - SYS_PTRACE

Relevant log output

No response

Other relevant information

No response

What level of experience do you have with Docker and mail servers?

  • I am inexperienced with docker
  • I am rather experienced with docker
  • I am inexperienced with mail servers
  • I am rather experienced with mail servers
  • I am uncomfortable with the CLI
  • I am rather comfortable with the CLI

Improvements to this form?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions