Preliminary Checks
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?
- Restart the container
- 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?
Improvements to this form?
No response
Preliminary Checks
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:
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?
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
Relevant log output
No response
Other relevant information
No response
What level of experience do you have with Docker and mail servers?
Improvements to this form?
No response