Skip to content

bug report: Dovecot compression not working #4178

@alex9434

Description

@alex9434

📝 Preliminary Checks

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

👀 What Happened?

I have the following setting in dovecot.cf

protocol imap {
	mail_plugins = $mail_plugins zlib imap_zlib
}

# Enable these only if you want compression while saving:
plugin {
	zlib_save = gz
	zlib_save_level = 9
}

plugin {
	## NOTE! Setting was called imap_zlib_compression_level before 2.3.15
	## imap_compress_<algorithm>_level = value
	##
	imap_compress_deflate_level = 6
}

👟 Reproduction Steps

New mail that arrives in maildir is does not get compressed. These settings should save all new email compressed with gz.

🐋 DMS Version

v14.0.0

💻 Operating System and Architecture

Debian 11 x86_64

⚙️ Container configuration files

services:
  mailserver:
    image: ghcr.io/docker-mailserver/docker-mailserver:latest
    read_only: false
    container_name: mailserver
    # Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
    hostname: mail.emimx.com
    environment:
      - SSL_TYPE=manual
      - SSL_CERT_PATH=/tmp/dms/custom-certs/fullchain.cer
      - SSL_KEY_PATH=/tmp/dms/custom-certs/cert.key   
    env_file: mailserver.env
    # More information about the mail-server ports:
    # https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
    ports:
      - "25:25"    # SMTP  (explicit TLS => STARTTLS, Authentication is DISABLED => use port 465/587 instead)
      - "143:143"  # IMAP4 (explicit TLS => STARTTLS)
      - "465:465"  # ESMTP (implicit TLS)
      - "587:587"  # ESMTP (explicit TLS => STARTTLS)
      - "993:993"  # IMAP4 (implicit TLS)
    volumes:
      - ./mail/:/var/mail/
      - ./mail-state/:/var/mail-state/
      - ./mail-logs/:/var/log/mail/
      - ./config/:/tmp/docker-mailserver/
      - ./letsencrypt:/etc/letsencrypt
      - /etc/localtime:/etc/localtime:ro
      - /etc/ssl/private/cert.ecc/:/tmp/dms/custom-certs/:ro
    restart: unless-stopped
    stop_grace_period: 1m
    # Uncomment if using `ENABLE_FAIL2BAN=1`:
    # cap_add:
    #   - NET_ADMIN
    healthcheck:
      test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
      timeout: 3s
      retries: 0

📜 Relevant log output

new email stored uncompressed

Improvements to this form?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Rejected

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions