Nope. It didn't change anything.
Tried delivering manually while tracing the process too, and the only mention of
"zlib" is this:
open("/usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so", O_RDONLY) = 9
read(9,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\22\0\0\0\0\0\0@"..., 832) =
832
fstat(9, {st_mode=S_IFREG|0644, st_size=15080, ...}) = 0
mmap(NULL, 2110464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 9, 0) =
0x7f1407f1a000
mprotect(0x7f1407f1d000, 2097152, PROT_NONE) = 0
mmap(0x7f140811d000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 9, 0x3000) = 0x7f140811d000
close(9) = 0
On Tue, Sep 20, 2011 at 06:22:53PM +0200, Helge Milde wrote:
Well, I can't see why it would hurt either.
The reason we're using that directory is that the sieve plugin is compiled into
lda/ by default, I think. I will try to move the sieve files into dovecot/ and
remove mail_plugin_dir tomorrow, but I don't think it will help since dovecot
has no problems *loading* the library.
On Tue, Sep 20, 2011 at 11:54:21AM -0400, Patrick Domack wrote:
I thinking your mail_plugin_dir is not needed, I don't have it
configured, and that path doesn't even exist on my system, maybe
hangover from 1.x config?
Quoting Helge Milde <he...@monsternett.no>:
Hi!
I've followed the guide at http://wiki2.dovecot.org/Plugins/Zlib
to try to make Dovecot gzip incomming mails, but it doesn't seem
to work.
I've made pop/imap read gzipped files, and this seems to work
perfectly, but LDA is still saving incomming mails in plain text.
There's not too much information out there regarding the zlib
module, so I'm not sure where to start debugging the problem, and
was hoping someone could point me in the right direction.
The only mention of zlib when LDA is delivering a file:
Sep 20 15:51:19 mail dovecot: deliver(helgemil): Module loaded:
/usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so The most
relevant lines from dovecot.conf:
mail_debug = yes
protocols = imap pop3 imaps pop3s
mail_location = maildir:~/Maildir
mail_privileged_group = mail
max_mail_processes = 1024
mail_process_size = 512
protocol imap {
mail_max_userip_connections = 50
mail_plugins = fts fts_squat zlib
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_max_userip_connections = 50
mail_plugins = zlib
}
protocol lda {
postmaster_address = postmas...@monsternett.no
mail_plugins = sieve zlib
mail_plugin_dir = /usr/lib/dovecot/modules/lda
sieve_global_dir = /etc/dovecot/sieve/
sieve_global_path = /etc/dovecot/sieve/default.sieve
}
plugin {
zlib_save_level = 6
zlib_save = gz
fts = squat
sieve = ~/dovecot.sieve
sieve_dir = ~/
}
--
Helge Milde, 69701808
www.monsternett.no
--
Helge Milde, 69701808
www.monsternett.no
--
Helge Milde, 69701808
www.monsternett.no