Hi,
I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin.
logfile sample:
[...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC [...] mail.err: Feb 16 14:36:24 dovecot: IMAP(hidden2@domain.com): gzread() failed: UNEXPECTED_EOF mail.err: Feb 16 14:36:24 dovecot: IMAP(hidden2@domain.com): FETCH for mailbox Sent.MARKETING.DAG ALLEMAAL UID 1 failed to read message input: Invalid argument mail.err: Feb 16 14:59:18 dovecot: IMAP(hidden2@domain.com): gzread() failed: UNEXPECTED_EOF [...] mail.info: Feb 16 14:08:35 dovecot: IMAP(hidden2@domain.com): Disconnected: BUG: Unknown internal error bytes=1099335/4103 mail.info: Feb 16 14:16:40 dovecot: IMAP(hidden@domain.com): Disconnected: BUG: Unknown internal error bytes=15193/2552616 mail.info: Feb 16 14:16:41 dovecot: IMAP(hidden@domain.com): Disconnected: BUG: Unknown internal error bytes=295/6715 mail.info: Feb 16 14:16:41 dovecot: IMAP(hidden@domain.com): Disconnected: BUG: Unknown internal error bytes=295/6715 mail.info: Feb 16 14:16:42 dovecot: IMAP(hidden@domain.com): Disconnected: BUG: Unknown internal error bytes=295/6715 mail.info: Feb 16 14:16:42 dovecot: IMAP(hidden@domain.com): Disconnected: BUG: Unknown internal error bytes=295/6715 [...]
dovecot -n :
# 1.2.10: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-6-xen-vserver-amd64 x86_64 Debian 5.0.4 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s managesieve login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login login_greeting: Dovecot ready. login_process_per_connection: no mail_max_userip_connections(default): 30 mail_max_userip_connections(imap): 30 mail_max_userip_connections(pop3): 10 mail_max_userip_connections(managesieve): 10 mail_privileged_group: mail maildir_copy_preserve_filename: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): zlib antispam quota imap_quota fts fts_squat mail_plugins(imap): zlib antispam quota imap_quota fts fts_squat mail_plugins(pop3): zlib quota mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve lda: postmaster_address: hidden@noc.com mail_plugins: autocreate quota sieve fts fts_squat zlib quota_full_tempfail: yes sieve_global_dir: /etc/dovecot/sieve/ auth default: mechanisms: plain login cram-md5 cache_size: 1024 passdb: driver: vpopmail userdb: driver: vpopmail socket: type: listen master: path: /var/run/dovecot/auth-master mode: 438 group: vchkpw plugin: quota: maildir:User quota quota_rule: Trash:ignore quota_rule2: Junk:ignore quota_rule3: &AMk-l&AOk-ments supprim&AOk-s:ignore quota_rule4: Deleted Items:ignore quota_rule5: Deleted Messages:ignore quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95 quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80 antispam_signature: X-DSPAM-Signature antispam_signature_missing: error antispam_trash: trash;Trash;Deleted Items;Deleted Messages;&AMk-l&AOk-ments supprim&AOk-s antispam_spam: Junk antispam_dspam_args: --mode=teft;;--user;%u fts: squat fts_squat: partial=4 full=10 sieve: ~/.dovecot.sieve sieve_storage: ~/sieve zlib_save_level: 9 zlib_save: gz
On Tue, 2010-02-16 at 15:30 +0100, Stéphane Cottin wrote:
Hi,
I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin.
logfile sample:
[...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC
Yeah, bzip2 code is broken in v1.2. I fixed it in v2.0 by basically rewriting the whole thing. Maybe I should just disable bzip2 support in v1.2.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 16 févr. 2010 à 16:27, Timo Sirainen a écrit :
On Tue, 2010-02-16 at 15:30 +0100, Stéphane Cottin wrote:
Hi,
I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin.
logfile sample:
[...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC
Yeah, bzip2 code is broken in v1.2. I fixed it in v2.0 by basically rewriting the whole thing. Maybe I should just disable bzip2 support in v1.2.
I've first tried bzip2 but these are errors with gzip. -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iEYEARECAAYFAkt6uswACgkQUeIu/wInUewfbgCffU7QKSaZ/cirfmuJZdCTi8Vx QMAAn0X+oKT/Kp0nwEwAdHbm3Wb+z8B3 =3/7y -----END PGP SIGNATURE-----
Em 16/02/2010 13:27, Timo Sirainen escreveu:
Yeah, bzip2 code is broken in v1.2. I fixed it in v2.0 by basically rewriting the whole thing. Maybe I should just disable bzip2 support in v1.2.
will dovecot 2.0 be able to handling mixed maildirs with gzip and
bzip2 compressed messages, or all messages should use just one or the other ?
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
Em 16/02/2010 12:30, Stéphane Cottin escreveu:
Hi,
I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin.
logfile sample:
[...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC [...]
i have already reported some similar errors when messages are
compressed with bzip. I couldnt reproduce with gzip, which you appears to be using:
zlib_save: gz
do you used some script for compressing your existing messages,
those who were delivered before you getting LDA to do that automatically ? If yes, is there any chance that you used bzip2 instead of gzip on that script ?
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 16 févr. 2010 à 16:28, Leonardo Rodrigues a écrit :
Em 16/02/2010 12:30, Stéphane Cottin escreveu:
Hi,
I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin.
logfile sample:
[...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): FETCH for mailbox Meursault UID 101 failed to read message input: Invalid argument mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC [...]
i have already reported some similar errors when messages are compressed with bzip. I couldnt reproduce with gzip, which you appears to be using:
zlib_save: gz
do you used some script for compressing your existing messages, those who were delivered before you getting LDA to do that automatically ? If yes, is there any chance that you used bzip2 instead of gzip on that script ?
I was testing bzip2, but as timo said, it's broken in 1.2.
I made a simple script to gzip uncompressed messages and convert bzip2 to gzip (I can share it if anyone cares), There is no bzip2 compressed files left.
I will activate mail_debug to get more details and be certain the bug occurs with a good gzipped file.
--
Atenciosamente / Sincerily, Leonardo Rodrigues Solutti Tecnologia http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email gertrudes@solutti.com.br My SPAMTRAP, do not email it
-----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iEYEARECAAYFAkt6vCMACgkQUeIu/wInUezHBACfV2VM2Nwcolj0LMOQjmq5NqgL GCIAniRICtoOHuIfCj2uJ++/cgxqpqQK =LQGB -----END PGP SIGNATURE-----
On 16.2.2010, at 17.39, Stéphane Cottin wrote:
mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC
I made a simple script to gzip uncompressed messages and convert bzip2 to gzip (I can share it if anyone cares), There is no bzip2 compressed files left.
The above error message string is coming from bzip2 library.
% grep DATA_ERROR_MAGIC /usr/lib/libz.so
% grep DATA_ERROR_MAGIC /usr/lib/libbz2.so
Binary file /usr/lib/libbz2.so matches
So I think you do have some bzip2 compressed files left.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 16 févr. 2010 à 16:55, Timo Sirainen a écrit :
On 16.2.2010, at 17.39, Stéphane Cottin wrote:
mail.err: Feb 16 14:22:26 dovecot: IMAP(hidden@domain.com): gzread() failed: DATA_ERROR_MAGIC
I made a simple script to gzip uncompressed messages and convert bzip2 to gzip (I can share it if anyone cares), There is no bzip2 compressed files left.
The above error message string is coming from bzip2 library.
% grep DATA_ERROR_MAGIC /usr/lib/libz.so
% grep DATA_ERROR_MAGIC /usr/lib/libbz2.so Binary file /usr/lib/libbz2.so matchesSo I think you do have some bzip2 compressed files left.
Argh, you're right !
Sorry for the noise and many thanks for your time. -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iEYEARECAAYFAkt6wmIACgkQUeIu/wInUezxIQCfZ3rhPwuro1LUCVasi0dI5ZjE dvcAnA007JVvBjXs9rav1cnLsjfL9jpi =+VaW -----END PGP SIGNATURE-----
participants (3)
-
Leonardo Rodrigues
-
Stéphane Cottin
-
Timo Sirainen