Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug report: DKIM keys keys become invalidΒ #4268

@Xirado

Description

@Xirado

πŸ“ Preliminary Checks

  • I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.

πŸ‘€ What Happened?

Ever since i started using dms, i've had to redo the dkim setup (./setup.sh config dkim --force) because when testing the mailservers functionality using MailGenius every few months, i get point deductions because

  • Your DKIM record is incorrect or has a typo
  • Your DKIM signature does not match the "from" domain.

Whenever i generate new keys and set the DNS entry it works again, until it all repeats. Are these keys meant to expire? I thought maybe the keys are not saved when i restart DMS, but since i get rspamd-dkim: Not overwriting existing files (use '--force' to overwrite existing files) when not using --force that tells me that they are.

πŸ‘Ÿ Reproduction Steps

No response

πŸ‹ DMS Version

v14.0.0

πŸ’» Operating System and Architecture

Debian 11 (bullseye) x86_64

βš™οΈ Container configuration files

services:
  mailserver:
    image: ghcr.io/docker-mailserver/docker-mailserver:14.0.0
    container_name: mailserver
    hostname: mail.xxxxx.xxx
    env_file: mailserver.env
    networks:
      mailserver:
        ipv4_address: 10.10.2.2
    ports:
      - "25:25"    # SMTP  (explicit TLS => STARTTLS)
      - "143:143"  # IMAP4 (explicit TLS => STARTTLS)
      - "465:465"  # ESMTP (implicit TLS)
      - "587:587"  # ESMTP (explicit TLS => STARTTLS)
      - "993:993"  # IMAP4 (implicit TLS)
    volumes:
      - ./docker-data/dms/mail-data/:/var/mail/
      - ./docker-data/dms/mail-state/:/var/mail-state/
      - ./docker-data/dms/mail-logs/:/var/log/mail/
      - ./docker-data/dms/config/:/tmp/docker-mailserver/
      - /etc/localtime:/etc/localtime:ro
      - /etc/letsencrypt:/etc/letsencrypt
    restart: always
    stop_grace_period: 1m
    cap_add:
      - NET_ADMIN
    healthcheck:
      test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
      timeout: 3s
      retries: 0

networks:
  mailserver:
    name: mailserver
    ipam:
      config:
        - subnet: 10.10.2.0/24
          gateway: 10.10.2.1

πŸ“œ Relevant log output

No response

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