Closed Gurkengewuerz closed 2 years ago
I'ld guess that there is a permission error that prevents the dkim keys from being written.
Could you check, if /media/dkim is writable by the user www-data in the web container?
You can become this user by entering the container using docker exec -u www-data mail_web
.
Hey @jeboehm, thanks for your answer. Sadly this is working.
mail@myhost:~/mailserver$ docker compose ps
NAME COMMAND SERVICE STATUS PORTS
mailserver-db-1 "docker-entrypoint.s…" db running 3306/tcp
mailserver-filter-1 "/usr/local/bin/entr…" filter running (healthy) 11334/tcp
mailserver-mda-1 "/usr/local/bin/entr…" mda running (healthy) 0.0.0.0:110->110/tcp, 0.0.0.0:143->143/tcp, 0.0.0.0:587->587/tcp, 0.0.0.0:993->993/tcp, 0.0.0.0:995->995/tcp
mailserver-mta-1 "/usr/local/bin/entr…" mta running (healthy) 0.0.0.0:25->25/tcp
mailserver-redis-1 "docker-entrypoint.s…" redis running 6379/tcp
mailserver-ssl-1 "/usr/local/bin/crea…" ssl exited (0)
mailserver-virus-1 "/usr/local/bin/entr…" virus exited (0)
mailserver-web-1 "docker-php-entrypoi…" web running (healthy) 0.0.0.0:81->80/tcp
mail@myhost:~/mailserver$ docker compose exec -u www-data web /bin/ash
/var/www/html $ cd /media/dkim/
/media/dkim $ whoami
www-data
/media/dkim $ ls -lah
total 8K
drwxrwxrwx 2 www-data root 4.0K May 25 20:43 .
drwxr-xr-x 1 root root 4.0K May 23 13:29 ..
-rw-rw-rw- 1 www-data root 0 May 23 13:30 dkim_selectors.map
/media/dkim $ touch github_issue_176
/media/dkim $ ls -lah
total 8K
drwxrwxrwx 2 www-data root 4.0K May 25 20:43 .
drwxr-xr-x 1 root root 4.0K May 23 13:29 ..
-rw-rw-rw- 1 www-data root 0 May 23 13:30 dkim_selectors.map
-rw-r--r-- 1 www-data www-data 0 May 25 20:43 github_issue_176
/media/dkim $
mail@myhost:~/mailserver$
Just to be sure i have overwritten the network for each container in order to use traefik but i don't guess this is the problem.
version: '3.5'
services:
db:
networks: [backend]
filter:
networks: [backend]
virus:
networks: [backend]
redis:
networks: [backend]
mda:
networks: [backend]
mta:
networks: [backend]
web:
networks:
- traefik
- backend
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.mail-web.entrypoints=websecure"
- "traefik.http.routers.mail-web.rule=HOST(`$VIRTUAL_HOST`)"
- "traefik.http.routers.mail.service=mail-web-srv"
- "traefik.http.services.mail-web-srv.loadbalancer.server.port=80"
networks:
backend:
traefik:
external: true
Weird. I don't know what i have exactly done but it works now.
I pulled the latest image, got dns resolve errors, tried v3.2.1 and had the same issue (lookup db on 127.0.0.11:53: no such host.
). Now i am using the latest version with filter v3.2.1 (i know this isn't intended!) because rspamd crashed on startup with illegal instruction in the latest version.
Hey,
if i try to activate DKIM for my domain an error 500 is thrown. regardless of whether i use the enable in the edit context or the enable switch in the table. The domain key entries do match.
It's a complete fresh installation running
latest
with just one administrator.Do you have any plan what i can try? Cheers
Error 500
Web Log