docker-spamassassin
docker-spamassassin copied to clipboard
Recursive symlink in config directory
Summary
Inside the config directory, a symlink to the config directory is created.
Steps to reproduce
- Create a simplelogin container, eg:
services:
spamassassin:
image: tiredofit/spamassassin
volumes:
- spamassassin:/data
- ./config:/config
- ./etc:/etc/mail/spamassassin # Added as test
- ./logs:/logs
environment:
timezone: Europe/Berlin
- Look into the mounted directories or inside the container file system
- Find, that recursive symlinks exist inside /etc/ and /config/ :
lrwxrwxrwx 1 783 783 8 Jun 3 23:37 config -> /config/
-rw-r--r-- 1 783 783 1.7K Jun 3 23:25 init.pre
-rw-r--r-- 1 783 783 3.2K Jun 3 23:25 local.cf
drwx------ 2 783 783 4.0K Jun 3 23:25 sa-update-keys
-rw-r--r-- 1 783 783 1.5K Jun 3 23:25 user_prefs
-rw-r--r-- 1 783 783 2.3K Jun 3 23:25 v310.pre
-rw-r--r-- 1 783 783 1.2K Jun 3 23:25 v312.pre
-rw-r--r-- 1 783 783 2.4K Jun 3 23:25 v320.pre
-rw-r--r-- 1 783 783 1.3K Jun 3 23:25 v330.pre
-rw-r--r-- 1 783 783 1020 Jun 3 23:25 v340.pre
-rw-r--r-- 1 783 783 1.3K Jun 3 23:25 v341.pre
-rw-r--r-- 1 783 783 1.5K Jun 3 23:25 v342.pre
-rw-r--r-- 1 783 783 1.3K Jun 3 23:25 v343.pre
-rw-r--r-- 1 783 783 1.5K Jun 3 23:25 v400.pre
-rw-r--r-- 1 783 783 1.1K Jun 3 23:25 v401.pre
# Generated from host system inside mounted dir, but looks the same inside of the container
What is the expected correct behavior?
No recursive symlinks should exist
Environment
- Image version / tag: 378165d128fa
- Host OS: Ubuntu 22.04.5 LTS
Any logs | docker-compose.yml
spamassassin-1 | ,---.
spamassassin-1 | ,--------.,--. ,--. ,---. ,--. ,--------.| |
spamassassin-1 | '--. .--'`--',--.--. ,---. ,-| | ,---. / .-' | | '--. .--'| .'
spamassassin-1 | | | ,--.| .--'| .-. :' .-. | | .-. || `-, | | | | | |
spamassassin-1 | | | | || | \ --.\ `-' | ' '-' '| .-' | |.--.| | `--'
spamassassin-1 | `--' `--'`--' `----' `---' `---' `--' `--''--'`--' .--.
spamassassin-1 | '--'
spamassassin-1 | Image: tiredofit/alpine | Version 7.10.24 Type 'image_changelog' for details
spamassassin-1 | Repository/Documentation: https://github.com/tiredofit/docker-alpine/
spamassassin-1 | License: MIT | © 2024 Dave Conroy
spamassassin-1 |
spamassassin-1 | If this image provides you value - Consider sponsoring my work for continued
spamassassin-1 | development, timely updates, and feature requests. Commercial support available.
spamassassin-1 |
spamassassin-1 | More Info: https://www.tiredofit.ca
spamassassin-1 |
spamassassin-1 | 2025-06-04.00:06:51 [NOTICE] ** [timezone] Timezone: Setting to 'Europe/Berlin' from 'Etc/GMT'
spamassassin-1 | 2025-06-04.02:06:52 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
spamassassin-1 | 2025-06-04.02:06:52 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
spamassassin-1 | chown: /var/lib/spamassassin/.spamassassin: No such file or directory
spamassassin-1 | sed: /etc/logrotate.d/spamassassin: No such file or directory
spamassassin-1 | 2025-06-04.02:06:53 [NOTICE] ** [spamassassin] Enabling Automatic Ruleset Updates
spamassassin-1 | 2025-06-04.02:06:53 [NOTICE] ** [spamassassin] Updating Rulesets
spamassassin-1 | 2025-06-04.02:06:54 [STARTING] ** [spamassassin] [1] Starting spamassassin
spamassassin-1 | 2025-06-04.02:06:54 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 7.0.5
spamassassin-1 | 2025-06-04.02:06:54 [STARTING] ** [scheduling] [1] Starting cron
spamassassin-1 | Jun 4 02:06:57.181 [941] info: spamd: server started on IO::Socket::IP [0.0.0.0]:783 (running version 4.0.1)
spamassassin-1 | Jun 4 02:06:57.182 [941] info: spamd: server pid: 941
spamassassin-1 | Jun 4 02:06:57.186 [941] info: spamd: server successfully spawned child process, pid 1268
spamassassin-1 | Jun 4 02:06:57.190 [941] info: spamd: server successfully spawned child process, pid 1269
spamassassin-1 | Jun 4 02:06:57.194 [941] info: prefork: child states: IS
spamassassin-1 | Jun 4 02:06:57.194 [941] info: prefork: child states: II