diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index fb5446107c0f83c8a3d99f90f32bfc3aa8db6090..f3499b28d2317ed29b13ddbbbdd4fd687fac5c24 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1393,11 +1393,12 @@ (define-public dovecot
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs
-     `(("openssl" ,openssl)
-       ("zlib" ,zlib)
-       ("bzip2" ,bzip2)
+     `(("bzip2" ,bzip2)
+       ("linux-pam" ,linux-pam)
+       ("lz4" ,lz4)
+       ("openssl" ,openssl)
        ("sqlite" ,sqlite)
-       ("linux-pam" ,linux-pam)))
+       ("zlib" ,zlib)))
     (arguments
      `(#:configure-flags '("--sysconfdir=/etc"
                            "--localstatedir=/var")