Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-22 Thread Helge Milde

My bad, you are correct.
"v2.0+" slipped by my eyes when reading your v1.x documentation at 
http://wiki.dovecot.org/Plugins/Zlib.

On Thu, Sep 22, 2011 at 04:45:02PM +0300, Timo Sirainen wrote:

On 20.9.2011, at 16.58, Helge Milde wrote:


plugin {
   zlib_save_level = 6
   zlib_save = gz


These are enough. You don't mention your Dovecot version. My guess is that your 
Dovecot version is too old and doesn't support saving mails with zlib.



--
Helge Milde, 69701808
www.monsternett.no


Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-22 Thread Timo Sirainen
On 20.9.2011, at 16.58, Helge Milde wrote:

> plugin {
>zlib_save_level = 6
>zlib_save = gz

These are enough. You don't mention your Dovecot version. My guess is that your 
Dovecot version is too old and doesn't support saving mails with zlib.



Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Helge Milde

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 :


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


Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Helge Milde

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 :


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


Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Patrick Domack
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 :


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






[Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Helge Milde

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