Dovecot 2.3.1

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
905
Location
🇳🇱
https://www.dovecot.org/download.html
https://www.dovecot.org/doc/NEWS-2.3

* Submission server support improvements and bug fixes
- Lots of bug fixes to submission server
* API CHANGE: array_idx_modifiable will no longer allocate space
- Particularly affects how you should check MODULE_CONTEXT result, or
use REQUIRE_MODULE_CONTEXT.

+ mail_attachment_detection_options setting controls when
$HasAttachment and $HasNoAttachment keywords are set for mails.
+ imap: Support fetching body snippets using FETCH (SNIPPET) or
(SNIPPET (LAZY=FUZZY))
+ fs-compress: Automatically detect whether input is compressed or not.
Prefix the compression algorithm with "maybe-" to enable the
detection, for example: "compress:maybe-gz:6:..."
+ Added settings to change dovecot.index* files' optimization behavior.
See https://wiki2.dovecot.org/IndexFiles#Settings
+ Auth cache can now utilize auth workers to do password hash
verification by setting auth_cache_verify_password_with_worker=yes.
+ Added charset_alias plugin. See
https://wiki2.dovecot.org/Plugins/CharsetAlias
+ imap_logout_format and pop3_logout_format settings now support all of
the generic variables (e.g. %{rip}, %{session}, etc.)
+ Added auth_policy_check_before_auth, auth_policy_check_after_auth
and auth_policy_report_after_auth settings.
+ master: Support HAProxy PP2_TYPE_SSL command and set "secured"
variable appropriately
- Invalid UCS4 escape in HTML can cause crashes
- imap: IMAP COMPRESS -enabled clietn crashes on disconnect
- lmtp: Fix crash when user is over quota
- lib-lda: Parsing Return-Path header address fails when it contains
CFWS
- auth: SASL with Exim fails for AUTH commands without an initial
response
- imap: SPECIAL-USE capability isn't automatically added
- auth: LDAP subqueries do not support standard auth variables in
var-expand
- auth: SHA256-CRYPT and SHA512-CRYPT schemes do not work
- lib-index: mail_always/never_cache_fields are not used for existing
cache files
- imap: Fetching headers leaks memory if search doesn't find any mails
- lmtp: ORCPT support in RCPT TO
- imap-login: Process sometimes ends up in infinite loop
- sdbox: Rolled back save/copy transaction doesn't delete temp files
- mail: lock_method=dotlock causes crashes
 
Tried to install it manually without waiting for custombuild update:

Code:
cd /usr/local/directadmin/custombuild
wget https://www.dovecot.org/releases/2.3/dovecot-2.3.1.tar.gz -O dovecot-2.3.1.tar.gz
perl -pi -e "s#dovecot:.*#dovecot:2.3.1:fc89b6130bcc09e99ae21003b474acc2#" versions.txt
./build dovecot

and pigeonhole fails to build with the error:

Code:
'main.c' || echo './'`main.c
main.c: In function 'main':
main.c:277: error: 'MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT' undeclared (first use in this function)
main.c:277: error: (Each undeclared identifier is reported only once
main.c:277: error: for each function it appears in.)
make[3]: *** [managesieve-main.o] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.0.1/src/managesieve'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.0.1'
make: *** [all] Error 2


*** The make has failed, would you like to try to make again? (y,n):

so it needs to be checked.
 
Yes, with Pigeonhole v5.1.0 it's fine.

Code:
# dovecot --version
2.3.1 (8e2f634)

Code:
make[3]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/share/doc/dovecot/sieve/plugins'
 /usr/bin/install -c -m 644 imapsieve.txt sieve_extprograms.txt '/usr/share/doc/dovecot/sieve/plugins'
make[3]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc/plugins'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc/plugins'
make[2]: Entering directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc'
make[3]: Entering directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/dovecot-2.3-pigeonhole-0.5.1/doc'
Restarting dovecot.
Shutting down dovecot:                                     [FAILED]
Starting dovecot:                                          [  OK  ]
Restarting exim.



Custombuild script downloads
dovecot-2.3-pigeonhole-0.5.1.tar.gz with every build, so you should wait custombuild to be updated with it.
 
Custombuild is messed with Dovecot + Sieve today. It offers Dovecot 2.3.0.1 and dovecot-2.3-pigeonhole-0.5.1 which fails.

Dovecot can be installed with instructions from #2
 
I see.. Only the dovecot-2.3-pigeonhole-0.5.1.tar.gz file is present on files*.. Great testing:rolleyes:
 
By the way still having we are the issue with duplicates of emails even with Dovecot 2.3.1.
 
Actually never faced the issue on my own server and never got a report from clients. Probably because we do use a default limit of an email size. Did you change by the way the limit in Exim configs?
 
I have not changed the limit. I still have the default "message_size_limit=50M" in exim.variables.conf

If you try to send a email with attachment of for example 44 MB size, it would not work in Dovecot 2.3.0, it would just stay in mail queue.
 
An attachment off 44MB size due to the how emails are encoded might result in email body of 88Mb. So try and change the limit to 100Mb.
 
Sorry I was not more spesific. However it was the email body of 44 MB I was having when testing Dovecot 2.3.0. I have trouble finding my old notes about the testing, so I don't have the log error to you. But the error was not because of the 50MB limit.
 
OK, tested. Delivery of an email S=47234188 failed with the error:

Code:
2018-03-31 14:51:42 1f2BI4-0004wT-Jx == [email protected] R=virtual_user T=dovecot_lmtp_udp defer (104): Connection reset by peer: NULL: Connection reset by peer

in /var/log/exim/mainlog and

Code:
Mar 31 14:51:42 lmtp(17604): Error: lmtp-server: conn unix:pid=19264,uid=8 [1]: Connection lost during data transfer: read(unix:pid=19264,uid=8 [1]) failed: <no error>

in /var/log/dovecot-lmtp-errors.log
 
I see another issue on Debian 9.

libtool: link: gcc -shared -fPIC -DPIC .libs/dovecot-openssl-common.o .libs/iostream-openssl.o .libs/iostream-openssl-common.o .libs/iostream-openssl-context.o .libs/istream-openssl.o .libs/ostream-openssl.o -L/usr/local/lib -lssl -lcrypto -O2 -Wl,-soname -Wl,libssl_iostream_openssl.so -o .libs/libssl_iostream_openssl.so
libtool: link: ar cru .libs/libssl_iostream.a .libs/iostream-ssl.o .libs/iostream-ssl-context-cache.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libssl_iostream.a
libtool: link: ( cd ".libs" && rm -f "libssl_iostream.la" && ln -s "../libssl_iostream.la" "libssl_iostream.la" )
/usr/bin/ld: /usr/local/lib/libcrypto.a(gost89.o): relocation R_X86_64_PC32 against symbol `gostcrypt' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:585: recipe for target 'libssl_iostream_openssl.la' failed
make[3]: *** [libssl_iostream_openssl.la] Error 1
make[3]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.1/src/lib-ssl-iostream'
Makefile:550: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.1/src'
Makefile:668: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/dovecot-2.3.1'
Makefile:511: recipe for target 'all' failed
make: *** [all] Error 2

OpenSSL version
OpenSSL 1.1.0f 25 May 2017

# dpkg --list | grep ssl

ii libgnutls-openssl27:amd64 3.5.8-5+deb9u3 amd64 GNU TLS library - OpenSSL wrapper
ii libssl1.0-dev:amd64 1.0.2l-2+deb9u3 amd64 Secure Sockets Layer toolkit - development files
ii libssl1.0.2:amd64 1.0.2l-2+deb9u3 amd64 Secure Sockets Layer toolkit - shared libraries
ii libssl1.1:amd64 1.1.0f-3+deb9u2 amd64 Secure Sockets Layer toolkit - shared libraries
ii openssl 1.1.0f-3+deb9u2 amd64 Secure Sockets Layer toolkit - cryptographic utility
 
Back
Top