AW: how fetch zlibed mails with doveadm

rudolf at padaru.de rudolf at padaru.de
Mon Aug 31 14:19:54 EEST 2020


Yes:
# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.21 (92477967)
# OS: Linux 4.15.0-109-generic x86_64 Ubuntu 18.04.5 LTS
auth_mechanisms = plain login
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@üÜöÖäÄ
auth_worker_max_count = 60
disable_plaintext_auth = no
imap_capability = +XLIST
imap_logout_format = in=%i out=%o del=%{deleted} fetched_mails=%{fetch_hdr_count}
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lock_method = flock
login_greeting = <internal stuff> mailserver ready.
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
mail_cache_min_mail_count = 30
mail_location = auto:
mail_max_userip_connections = 30
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext editheader imapflags notify vnd.dovecot.pipe vnd.dovecot.filter vnd.dovecot.execute
mbox_read_locks = dotlock
mdbox_rotate_size = 250 M
namespace inbox {
  inbox = yes
  location =
  mailbox Archiv {
    auto = no
    special_use =
  }
  mailbox Drafts {
    auto = no
    special_use =
  }
  mailbox Junk {
    auto = no
    special_use =
  }
  mailbox Sent {
    auto = no
    special_use =
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = no
    special_use =
  }
  prefix =
}
passdb {
  args = <internal stuff>
  driver = sql
}
plugin {
  sieve = ~/sieve/.dovecot.sieve
  sieve_after = <internal stuff>
  sieve_before = <internal stuff>
  sieve_dir = ~/sieve
  sieve_execute_bin_dir = /usr/local/bin/
  sieve_execute_input_eol = lf
  sieve_extensions = +notify +imapflags +vnd.dovecot.pipe +vnd.dovecot.filter +vnd.dovecot.execute +editheader -reject
  sieve_filter_bin_dir = /usr/local/bin/
  sieve_filter_input_eol = lf
  sieve_global_dir = /etc/dovecot/sieve/
  sieve_max_redirects = 25
  sieve_pipe_bin_dir = /usr/local/bin/
  sieve_pipe_input_eol = lf
  sieve_plugins = sieve_extprograms
  sieve_redirect_envelope_from = recipient
  zlib_save = gz
  zlib_save_level = 6
}
protocols = imap pop3 sieve
service auth-worker {
  idle_kill = 1 mins
}
service auth {
  idle_kill = 1 mins
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = root
}
service imap-login {
  executable = /usr/lib/dovecot/imap-login
  process_min_avail = 4
  service_count = 0
  user = dovecot
}
service imap {
  process_limit = 1024
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  service_count = 0
  user = dovecot
}
service managesieve {
  process_limit = 1024
  user = dovecot
}
service pop3-login {
  executable = /usr/lib/dovecot/pop3-login
  process_min_avail = 4
  service_count = 0
  user = dovecot
}
service pop3 {
  executable = /usr/lib/dovecot/pop3
  process_limit = 1024
}
shutdown_clients = no
ssl_ca = <internal stuff>
ssl_cert = <internal stuff>
ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:!DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
ssl_dh_parameters_length = <internal stuff>
ssl_prefer_server_ciphers = yes
userdb {
  args = <internal stuff>
  driver = sql
}
verbose_proctitle = yes
protocol lda {
  mail_plugins = " sieve zlib"
  rejection_reason = Your message to <%t> was automatically discarded:%n%r
}
protocol imap {
  imap_client_workarounds = delay-newmail
  mail_plugins = " mail_log notify zlib"
  ssl = yes
}
protocol pop3 {
  mail_plugins = zlib
  pop3_client_workarounds = oe-ns-eoh outlook-no-nuls
  pop3_no_flag_updates = no
  pop3_uidl_format = %08Xu%08Xv
  ssl = yes
}

I can imagine, that some protocol need the mail_plugins=zlib directive too?


Yours sincerely
Pascal Rudolf

-----Ursprüngliche Nachricht-----
Von: dovecot <dovecot-bounces at dovecot.org> Im Auftrag von Aki Tuomi
Gesendet: Montag, 31. August 2020 12:02
An: rudolf at padaru.de; dovecot at dovecot.org
Betreff: Re: how fetch zlibed mails with doveadm


> On 31/08/2020 12:55 rudolf at padaru.de wrote:
> 
> 
> Hey there,
> 
> i need some help with an administrativ dovecot question.
> 
> I run a dovecot 2.2.33 ubuntu server with mdbox and „zlib_save = gz zlib_save_level = 6“. Now i want to fetch the mailheader from some mails via doveadm fetch -u <user> hdr uid <uid>. The only thing what i receive is some binary stuff. Is there a way, i can tell the dovemadm fetch command, that he should deflate the output for me?
> 
> Yours sincerely
> Pascal Rudolf

This should happen automatically. Can you provide `doveconf -n`?

Aki




More information about the dovecot mailing list