From ccc627932e506189a37932ab642a8f8503f35858 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 22 Oct 2018 15:03:46 +0200 Subject: [PATCH] Add Documentation /README files) for dovecot. --- .gitignore | 4 +- DOC/dovecot/README.dovecot.index | 12 ++ DOC/dovecot/README.dovecot.recalculate_quota | 12 ++ DOC/dovecot/README.dovecot.systemd | 21 ++++ DOC/dovecot/lmtp_notice.txt | 123 +++++++++++++++++++ 5 files changed, 169 insertions(+), 3 deletions(-) create mode 100644 DOC/dovecot/README.dovecot.index create mode 100644 DOC/dovecot/README.dovecot.recalculate_quota create mode 100644 DOC/dovecot/README.dovecot.systemd create mode 100644 DOC/dovecot/lmtp_notice.txt diff --git a/.gitignore b/.gitignore index cc8e7d4..35e9223 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ -!README* - # - common *.log *.swp @@ -16,7 +14,7 @@ postfixadmin-* crontab-root* # - Dovecot -dovecot* +dovecot-* log* # - roundcube diff --git a/DOC/dovecot/README.dovecot.index b/DOC/dovecot/README.dovecot.index new file mode 100644 index 0000000..9efade3 --- /dev/null +++ b/DOC/dovecot/README.dovecot.index @@ -0,0 +1,12 @@ +# ---------- +# - Doveadm-Index +# ---------- + +# - Index users INBOX: +# - +doveadm index -u INBOX + + +# - Index INBOX for ALL users +# - +doveadm index -A diff --git a/DOC/dovecot/README.dovecot.recalculate_quota b/DOC/dovecot/README.dovecot.recalculate_quota new file mode 100644 index 0000000..d13fec8 --- /dev/null +++ b/DOC/dovecot/README.dovecot.recalculate_quota @@ -0,0 +1,12 @@ +# ---------- +# - Force Dovecot to recalculate mailbox quota +# ---------- + +# - Recalculate one mailbox: +# - +doveadm quota recalc -u + + +# - Recalculate ALL mail accounts: +# - +doveadm quota recalc -A diff --git a/DOC/dovecot/README.dovecot.systemd b/DOC/dovecot/README.dovecot.systemd new file mode 100644 index 0000000..6d2aeaa --- /dev/null +++ b/DOC/dovecot/README.dovecot.systemd @@ -0,0 +1,21 @@ + + +Debian Jessie comes with systemd so you really should not use initscript anymore but +switch to systemd for starting dovecot. There is systemd service description file available +for you in case your vendor does not provide it in the package: + +https://github.com/dovecot/core/blob/master/dovecot.service.in + +-- + +> i use ./configure with +> --with-systemdsystemunitdir=/etc/systemd/system/ and that installs the +> systemd.service and socket + +That's what I missed, thank you a lot. And service seems to handle +correctly restarts + +Also use: + --with-rundir=/var/run/dovecot + +-- diff --git a/DOC/dovecot/lmtp_notice.txt b/DOC/dovecot/lmtp_notice.txt new file mode 100644 index 0000000..1990a45 --- /dev/null +++ b/DOC/dovecot/lmtp_notice.txt @@ -0,0 +1,123 @@ + + +- to drop cached lmtp adress verification, delete file + /var/lib/postfix/verify_cache.db + + + +mail RCPT TO: test-help@warenform.com +===================================== + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = substring ('%u' from '#"[^-]+#"_*@%%' for '#') || '@%d' and active = true + + 15-lda.conf: + recipient_delimiter = + + 90-sieve.conf: + recipient_delimiter = + +--> stored mail into mailbox 'INBOX' + no "Error:" in dovecot.log + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = substring ('%u' from '#"[^-]+#"_*@%%' for '#') || '@%d' and active = true + + 15-lda.conf: + recipient_delimiter = + + 90-sieve.conf: + recipient_delimiter = - + +--> stored mail into mailbox 'INBOX' + no "Error:" in dovecot.log + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = substring ('%u' from '#"[^-]+#"_*@%%' for '#') || '@%d' and active = true + + 15-lda.conf: + recipient_delimiter = - + + 90-sieve.conf: + recipient_delimiter = + +--> stored mail into mailbox 'help' + no "Error:" in dovecot.log + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = substring ('%u' from '#"[^-]+#"_*@%%' for '#') || '@%d' and active = true + + 15-lda.conf: + recipient_delimiter = - + + 90-sieve.conf: + recipient_delimiter = - + +--> stored mail into mailbox 'help' + no "Error:" in dovecot.log + + + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = '%u' and active = true + + 15-lda.conf: + recipient_delimiter = + + 90-sieve.conf: + recipient_delimiter = + +--> 550 5.1.1 User doesn't exist: ... + no "Error:" in dovecot.log + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = '%u' and active = true + + 15-lda.conf: + recipient_delimiter = + + 90-sieve.conf: + recipient_delimiter = - + +--> 550 5.1.1 User doesn't exist: ... + no "Error:" in dovecot.log + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = '%u' and active = true + + 15-lda.conf: + recipient_delimiter = - + + 90-sieve.conf: + recipient_delimiter = + +--> stored mail into mailbox 'help' + no "Error:" in dovecot.log + +configuration: + + sql-connect.conf.ext : + user_query = SELECT.. WHERE username = '%u' and active = true + + 15-lda.conf: + recipient_delimiter = - + + 90-sieve.conf: + recipient_delimiter = - + +--> stored mail into mailbox 'help' + no "Error:" in dovecot.log