Re: [Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Thomas Leuxner
Am 21.03.2010 um 00:25 schrieb Timo Sirainen:

> I'm not really sure what you're talking about, but the change I did was 
> supposed to be used like:
> 
> mail_plugins = quota acl virtual autocreate etc.
> protoco imap {
>  mail_plugins = $mail_plugins imap_quota imap_acl
> }
> protocol lda {
>  mail_plugins = $mail_plugins sieve
> }
> etc.

Thanks for clarifying :)



[Dovecot] 2.0.beta3 imapd running hot

2010-03-20 Thread Bernhard Schmidt
Hi,

since a couple of weeks I occasionally have an imapd going crazy on me,
using up 100% CPU. Current revision is 10962

29865 vmail 20   0 47820 3296 1708 R 99.7  0.9 131:07.85 imap

vmail29865 86.1  0.8  47820  3296 ?RMar20 131:20
dovecot/imap [berni 2001:a60:f001:1:219:66ff:fe8b:a6e IDLE

strace -p  shows a repeating pattern of

epoll_wait(8, {{EPOLLOUT, {u32=36560672, u64=36560672}}}, 5, 4872) = 1
gettimeofday({1269133967, 495298}, NULL) = 0
gettimeofday({1269133967, 495333}, NULL) = 0
gettimeofday({1269133967, 495370}, NULL) = 0

with the last argument of epoll_wait (4872) slowly decrementing and then
wrapping around to ~30k.

Attaching gdb shows the following backtrace:

(gdb) bt full
#0  array_idx_i (ioloop=0x22bd5f0) at array.h:189
No locals.
#1  io_loop_handler_run (ioloop=0x22bd5f0) at ioloop-epoll.c:188
ctx = 0x22bd800
event = 
list = 
io = 
tv = {tv_sec = 26, tv_usec = 307176}
t_id = 2
msecs = 26308
ret = 1
i = 
call = 
#2  0x7f8f682bc8e8 in io_loop_run (ioloop=0x22bd5f0) at ioloop.c:350
No locals.
#3  0x7f8f682acd63 in master_service_run (service=0x22bd4c0,
callback=0x6590) at master-service.c:486
No locals.
#4  0x00418551 in main (argc=1, argv=0x22bd3a0) at main.c:313
set_roots = {0x41b840, 0x0}
service_flags = 
storage_service_flags = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT
postlogin_socket_path = 0x0
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x7fffed1ff9ad in gettimeofday ()
(gdb) bt full
#0  0x7fffed1ff9ad in gettimeofday ()
No symbol table info available.
#1  0x7f8f6795f02a in gettimeofday () from /lib/libc.so.6
No symbol table info available.
#2  0x7f8f682bcb39 in io_loop_handle_timeouts_real
(ioloop=0x22bd5f0) at ioloop.c:291
item = 
tv = {tv_sec = 0, tv_usec = 36427248}
tv_call = {tv_sec = 0, tv_usec = 140737170938560}
t_id = 
#3  io_loop_handle_timeouts (ioloop=0x22bd5f0) at ioloop.c:339
_data_stack_cur_id = 0
#4  0x7f8f682bd70e in io_loop_handler_run (ioloop=0x22bd5f0) at
ioloop-epoll.c:180
ctx = 0x22bd800
event = 
list = 
io = 
tv = {tv_sec = 28, tv_usec = 267997}
t_id = 2
msecs = 28268
ret = 1
i = 
call = 
#5  0x7f8f682bc8e8 in io_loop_run (ioloop=0x22bd5f0) at ioloop.c:350
No locals.
#6  0x7f8f682acd63 in master_service_run (service=0x22bd4c0,
callback=0) at master-service.c:486
No locals.
#7  0x00418551 in main (argc=1, argv=0x22bd3a0) at main.c:313
set_roots = {0x41b840, 0x0}
service_flags = 
storage_service_flags = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT
postlogin_socket_path = 0x0

doveconf -n:

mail.svr02.mucip.net:~# doveconf -n
# 2.0.beta3: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.33 x86_64 Debian squeeze/sid 
auth_mechanisms = plain login
disable_plaintext_auth = no
listen = 83.170.6.69, 2001:1b10:1000::110:1:1
mail_gid = 5000
mail_location = maildir:%h/:INDEX=/var/cache/dovecot/%1n/%n
mail_uid = 5000
maildir_stat_dirs = yes
maildir_very_dirty_syncs = yes
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  quota = dict:user::file:%h/dovecot-quota
  quota_rule = *:storage=500M
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = postmas...@birkenwald.de
protocols = imap pop3 lmtp managesieve
quota_full_tempfail = yes
service auth {
  unix_listener /var/spool/postfix-mailout/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0660
  }
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service lmtp {
  inet_listener {
port = 24
  }
}
service managesieve-login {
  inet_listener sieve_deprecated {
port = 2000
  }
  process_min_avail = 1
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
ssl_cert = 

Re: [Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Timo Sirainen
On 20.3.2010, at 19.38, Thomas Leuxner wrote:

> Am 20.03.2010 um 18:33 schrieb Bernhard Schmidt:
> 
>> I'm a bit confused as well.  I accidentally dropped "mail_plugins =
>> sieve quota" from lmtp.conf on upgrade. Since I don't have a global
>> mail_plugins setting yet it would have disabled Sieve completely.
>> However, the first few deliveries showed this "does not exist" error,
>> but then all of the sudden everything was delivered into INBOX without
>> any hint of sieve at all. Maybe an old leftover process from before the
>> upgrade.
> 
> I may add that the intention of adding a global variable for this is not 
> clear to me as well since you still would need to add service-specific 
> sections, wouldn't you? Maybe Timo can shed some light on it.

I'm not really sure what you're talking about, but the change I did was 
supposed to be used like:

mail_plugins = quota acl virtual autocreate etc.
protoco imap {
  mail_plugins = $mail_plugins imap_quota imap_acl
}
protocol lda {
  mail_plugins = $mail_plugins sieve
}
etc.



Re: [Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Thomas Leuxner
Am 20.03.2010 um 18:33 schrieb Bernhard Schmidt:

> I'm a bit confused as well.  I accidentally dropped "mail_plugins =
> sieve quota" from lmtp.conf on upgrade. Since I don't have a global
> mail_plugins setting yet it would have disabled Sieve completely.
> However, the first few deliveries showed this "does not exist" error,
> but then all of the sudden everything was delivered into INBOX without
> any hint of sieve at all. Maybe an old leftover process from before the
> upgrade.

I may add that the intention of adding a global variable for this is not clear 
to me as well since you still would need to add service-specific sections, 
wouldn't you? Maybe Timo can shed some light on it.

Thomas

Re: [Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Bernhard Schmidt
Thomas Leuxner  wrote:

>> somewhere between Hg revisions 10945 and 10962 filing into a subfolder
>> using sieve Scripts (like fileinto "fwd.sixxs" here) broke
> Hmmm. Works for me with 10962 but there's quite a bunch of changes =
> inbetween...

I'm a bit confused as well.  I accidentally dropped "mail_plugins =
sieve quota" from lmtp.conf on upgrade. Since I don't have a global
mail_plugins setting yet it would have disabled Sieve completely.
However, the first few deliveries showed this "does not exist" error,
but then all of the sudden everything was delivered into INBOX without
any hint of sieve at all. Maybe an old leftover process from before the
upgrade.

After reenabling mail_plugins it works fine again.

Bernhard



Re: [Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Bernhard Schmidt
Bernhard Schmidt  wrote:

> somewhere between Hg revisions 10945 and 10962 filing into a subfolder
> using sieve Scripts (like fileinto "fwd.sixxs" here) broke

Disregard, stupid me broke his lmtp.conf on upgrade.

Bernhard



Re: [Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Thomas Leuxner
Am 20.03.2010 um 18:16 schrieb Bernhard Schmidt:

> Hoi,
> 
> somewhere between Hg revisions 10945 and 10962 filing into a subfolder
> using sieve Scripts (like fileinto "fwd.sixxs" here) broke

Hmmm. Works for me with 10962 but there's quite a bunch of changes inbetween...

==> /var/log/dovecot.log <==
Mar 20 18:17:13 spectre dovecot: lmtp(17823): Connect from local
Mar 20 18:17:13 spectre dovecot: lmtp(17823, t...@leuxner.net): 
v/qDJUEApUufRQAAqZii3w: sieve: msgid=: stored 
mail into mailbox 'Public/Mailing-Lists/Dovecot'
Mar 20 18:17:13 spectre dovecot: lmtp(17823): Disconnect from local: Client quit

Regards
Thomas

[Dovecot] 2.0 beta: LMTP + Sieve fileinto broken

2010-03-20 Thread Bernhard Schmidt
Hoi,

somewhere between Hg revisions 10945 and 10962 filing into a subfolder
using sieve Scripts (like fileinto "fwd.sixxs" here) broke

Mar 20 18:14:24 mail dovecot: lmtp(27326, be...@vmail.mail.mucip.net):
ojJwL3ACpUu+agAA/GZUZg:
msgid=: save failed to
fwd.sixxs: Mailbox doesn't exist: fwd.sixxs

Used to work fine before.

Bernhard



Re: [Dovecot] Sendmail + deliver; silent errors.

2010-03-20 Thread Sabahattin Gucukoglu
On 20 Mar 2010, at 01:48, Daryl Tester wrote:
Timo Sirainen wrote:
> [Sendmail mailer arguments]
> Change the last line ("Argv") to
>>> 
>>> A=/opt/dovecot-1.2.9/libexec/dovecot/deliver -d $u
> 
> ...
> 
>> Well, at least I updated the wiki now so that future people won't have
>> this problem. :)
> 
> To be fair, this was only a problem because I setuid'd the binary as root,
> which causes the extra permissions checking.  The wiki page uses a non-
> root ID, which I couldn't get to work (the previously mentioned setgid()
> failure), but at least wouldn't have fallen over in this fashion.

I skipped this thread too soon.  The mailer flags "a=..." does include argv[0]. 
 That tripped me up when I was first doing Sendmail, too.

Cheers,
Sabahattin



smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] Dovecot v2.0.beta3 quota using userdb

2010-03-20 Thread e-frog
On 09.03.2010 16:00, wrote Timo Sirainen:
> On Mon, 2010-02-22 at 21:39 +0100, e-frog wrote:
> 
>> Hmm. This patch doesn't seem to fix it for me. There is still no "Quota
>> rule" in the logs as before...
> 
> This should finally fix it:
> http://hg.dovecot.org/dovecot-2.0/rev/ce166f70ea71
> 

Sorry, for the late reply ...

Yes, this fixes it. Thanks Timo!