Re: [Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Joe Auty


Robert Schetterer 
September 23, 2012 1:44 AM

show your dovecot conf


Thanks!

http://pastebin.com/gVRrCjyK

I took what you said literally, please let me know if you'd like to see 
any of the other Debian config files.






Joe Auty 
September 22, 2012 3:57 PM
Hello,

I'm seeing a lot of these in my /var/log/messages in Debian Squeeze, I 
suspect this might be causing performance issues. Any suggestions what 
I can try to fix this?



I'm using the 2.1.10 packages obtained with the following in my 
sources.list:


deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.1 main


I need to use Dovecot 2.1.x because I need to support handling 
multiple SSL certs.





--
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful, 
professional, custom designed, career-essential websites that are easy 
to maintain and to integrate with popular social networks.

www.netmusician.org 
j...@netmusician.org 



Re: [Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Robert Schetterer
Am 22.09.2012 21:57, schrieb Joe Auty:
> Hello,
> 
> I'm seeing a lot of these in my /var/log/messages in Debian Squeeze, I
> suspect this might be causing performance issues. Any suggestions what I
> can try to fix this?
> 
>> [7236671.301179] imap-login[9306]: segfault at 28 ip 7f9ff83c7e14
>> sp 7fff49d385c0 error 4 in libdovecot.so.0.0.0[7f9ff837c000+8b000]
> 
> I'm using the 2.1.10 packages obtained with the following in my
> sources.list:
> 
> deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.1 main
> 
> 
> I need to use Dovecot 2.1.x because I need to support handling multiple
> SSL certs.

show your dovecot conf

-- 
Best Regards
MfG Robert Schetterer


Re: [Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Joe Auty


Gary V 
September 22, 2012 9:00 PM

May not be related at all, but when I see segfaults on Debian, the
first thing I try is to switch to bash as the default system shell:

dpkg-reconfigure dash

Answer: Use dash as the default system shell (/bin/sh)? 


Unfortunately this hasn't completely resolved the issue (I don't know if 
it has reduced the number of times this has happened either). FWIW I'm 
getting the same sort of segfault 28 with both imap-login and pop-login. 
I'm using dovecot-ldap, if that makes a difference. I'm not really sure 
what the best way would be to trace this problem so that I can provide 
you guys with more useful info.


P.S. sorry for the duplicate message, it seems to have something to do 
with attaching images to messages.



Joe Auty 
September 22, 2012 3:57 PM
Hello,

I'm seeing a lot of these in my /var/log/messages in Debian Squeeze, I 
suspect this might be causing performance issues. Any suggestions what 
I can try to fix this?



I'm using the 2.1.10 packages obtained with the following in my 
sources.list:


deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.1 main


I need to use Dovecot 2.1.x because I need to support handling 
multiple SSL certs.





Re: [Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Joe Auty
<><><>

Re: [Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Gary V
On Sat, Sep 22, 2012 at 1:57 PM, Joe Auty  wrote:
> Hello,
>
> I'm seeing a lot of these in my /var/log/messages in Debian Squeeze, I
> suspect this might be causing performance issues. Any suggestions what I can
> try to fix this?
>
>> [7236671.301179] imap-login[9306]: segfault at 28 ip 7f9ff83c7e14 sp
>> 7fff49d385c0 error 4 in libdovecot.so.0.0.0[7f9ff837c000+8b000]
>
>
> I'm using the 2.1.10 packages obtained with the following in my
> sources.list:
>
> deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.1 main
>
>
> I need to use Dovecot 2.1.x because I need to support handling multiple SSL
> certs.

May not be related at all, but when I see segfaults on Debian, the
first thing I try is to switch to bash as the default system shell:

dpkg-reconfigure dash

Answer: Use dash as the default system shell (/bin/sh)? 

-- 
Gary V


[Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Joe Auty

Hello,

I'm seeing a lot of these in my /var/log/messages in Debian Squeeze, I 
suspect this might be causing performance issues. Any suggestions what I 
can try to fix this?


[7236671.301179] imap-login[9306]: segfault at 28 ip 7f9ff83c7e14 
sp 7fff49d385c0 error 4 in libdovecot.so.0.0.0[7f9ff837c000+8b000]


I'm using the 2.1.10 packages obtained with the following in my 
sources.list:


deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.1 main


I need to use Dovecot 2.1.x because I need to support handling multiple 
SSL certs.


[Dovecot] segfault in Debian Squeeze + Dovecot 2.1.10

2012-09-22 Thread Joe Auty
<>

[Dovecot] Update: Hanging IMAP sessions on Mac OS X with dovecot 2.1.10 - worked fine with 2.0.15 (and 2.0.21)

2012-09-22 Thread Clemens Schrimpe
Update: I tried with 2.0.21 and this also works just fine. So it must be 
something which came in with 2.1.x

PS: Where is the documentaion for 2.1.x - i.e. for all the nice additions Timo 
made? The Website "only" has 2.0.x, as far as I can tell?
(might be wrong here - hadn't touched the whole thing for a while, as my "civil 
life" had occupied me :-)

Greetings,

Clemens




Re: [Dovecot] Released Pigeonhole v0.3.2 for Dovecot v2.1.9

2012-09-22 Thread Juan C. Blanco

Sorry I've sent a config.log but get retained for approval.

This is the beginning of the file:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Pigeonhole configure 0.3.3, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --build=x86_64-redhat-linux-gnu 
--host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu 
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin 
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share 
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec 
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man 
--infodir=/usr/share/info 
--with-dovecot=/home/jc/rpmbuild/BUILD/dovecot-2.1.10 
--with-managesieve=yes --enable-header-install=yes INSTALL_DATA=install 
-c -p -m644


## - ##
## Platform. ##
## - ##

hostname = testv.fi.upm.es
uname -m = x86_64
uname -r = 2.6.18-308.13.1.el5debug
uname -s = Linux
uname -v = #1 SMP Tue Aug 21 18:34:48 EDT 2012

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = x86_64
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

Regards
Juan C. Blanco

On 19/09/2012 20:07, Stephan Bosch wrote:

On 9/19/2012 6:22 PM, Juan C. Blanco wrote:

On 18/09/2012 20:49, Stephan Bosch wrote:

On 9/18/2012 8:18 PM, Juan C. Blanco wrote:

It seems that the error is related to the ld.gold fix, If I revert the
c52a0c561311 patch the error is not produced


Oh d'oh. Yes, it related to that. I fixed it for Dovecot v2.2 before,
but I forgot the Dovecot v2.1 tree. Fixed now:

http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/66adbdd89d5c


D'oh, this is the v2.2 change. The URL I meant is this one:

http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/8144fb698cb3


This only happens when you compile against installed Dovecot headers,
people using --with-dovecot= (like me) would not have seen this.

I'll push out a new release once 2.1.10 comes out. I'm being told that
is imminent.


Sorry, but using the new 0.3.3 version I'm getting the same error and
I'm also using --with-dovecot=... with the dovecot 2.1.10 tree in
configure, not the installed headers. If needed I can send you the
configure invocation command.


Yes, that could be helpful.

Regards,

Stephan.



Re: [Dovecot] doveadm with multiple commands

2012-09-22 Thread Timo Sirainen
On 21.9.2012, at 16.53, Steinar Bang wrote:

>> Timo Sirainen :
> 
>> Thoughts?
> 
> How about:
> a) Dropping into a command prompt where it's possible to give commands?
> b) Making it possible to feed commands through a pipe (ie reading lines
>from stdin)?

Both of these would require adding some kind of new command parameter parsing. 
Currently shell does all the "multi word string" parsing and escaping and such. 
My original thought was also to be able to read commands from stdin, but I'd 
rather not add such special command parser, at least not yet..



Re: [Dovecot] doveadm with multiple commands

2012-09-22 Thread Timo Sirainen
On 21.9.2012, at 11.23, A.L.E.C wrote:

> On 09/20/2012 06:01 PM, Timo Sirainen wrote:
>> Thoughts? Any better name for the command than "multi"?
> 
> How about 'execute' or 'exec'.

v2.1.10 already has "dovecot exec" that does a different thing. So can't be 
anything related to "exec"..



[Dovecot] Hanging IMAP sessions on Mac OS X with dovecot 2.1.10 - worked fine with 2.0.15

2012-09-22 Thread Clemens Schrimpe
Ok, here's a toughie:

Out of a whim (and because of the bad weather) I today decided to upgrade my 
completely functioning 2.0.15 installation on my Mac OS X 10.6.7 system. NB: 
It's not a Mac OS X "Server", as sold by Apple - I have compiled my dovecots 
myself for quite a while.

Anyhow: At first everything appeared to work fine after the upgrade. Up until I 
created a new user and -while testing- SELECTed his INBOX.
The SELECT was "stuck". Though the process seemed to be alive I could only get 
rid of it with a "kill -9 ".

The same happened when selecting a newly created mailbox on any of the other 
(otherwise functioning) accounts, so the problem had nothing to do with the new 
account, but rather with the fact, that it's INBOX was empty. 

Using dtruss and gdb I found out, that the dovecot process was trying to obtain 
a GUID and in the course of doing so invoked gethostbyname(), which intern 
caused a lot of "mach message" handling and somewhere, deep down there, the 
process was stuck.

Well, that led my to believe, that there was something wrong with the -so 
called- "mach bootstrap context". I usually start dovecot from with a 
(home-brewn) startup-script, which invokes it (practically) like so:

sudo /usr/libexec/StartupItemContext dovecot

(again: all this was working fine under 2.0.15)

Now with 2.1.10, when I manually invoke dovecot with just

sudo dovecot

Everything appears to work fine - at least the sessions don't get stuck any 
more. But as soon as I logout (with dovecot still running in the background) it 
loses it's "mach bootstrap context" and finds itself unable to perform even the 
simplest tasks, like mapping a username to a uid, etc. pp. -- so starting it 
without the "/usr/libexec/StartupItemContext" in the background is out of the 
question.


Now -with all that said- here's my question: 

What has changed with regards to "processual context" between 2.0.15 and 2.1.10 
when the "imap" process is spawned/exec'd? Any environmental cleanups, closing 
of unknown fds, deletion/modification of environment variables, 
process-group-handlers, etc.?

It appears, that the imap process no longer "inherits" the StartupItemContext 
from the main process, so some change between 2.0.15 and 2.1.10 must have 
broken it ... 


Any help is highly appreciated -

Clemens


PS: I google'd around a lot and searched the mailing-lists, of course. I only 
found a post of someone who ran into the same/similar problem dating back to 
Feb 21st 2012 under the subject "dovecot freezes when trying to get mail from 
maildir with mail", but it was quickly dismissed without ever getting resolved 
and that was that.

PS2: I intentionally didn't include any configs with this mail as they seem to 
be irrelevant, but of course I can generate the necessary output if needed.

Re: [Dovecot] Dovecot 1.2.11 panic in mail-transaction-log-view?

2012-09-22 Thread Robert Schetterer
Am 22.09.2012 15:57, schrieb Benny Pedersen:
> Robert Schetterer skrev den 2012-09-22 07:46:
> 
>> you should upgrade to recent stable version 2.1.x
> 
> and this is a simple change from 1.x to 2.x :(

depends on how complex your setup is
youre should really try upgrade

http://wiki.dovecot.org/Upgrading/1.2
http://wiki2.dovecot.org/Upgrading/2.0

> 
> i have never a panic in 1.x here
> 

yeah, but i guess active bug supported are only recent
versions, however wait till Timos answers


> 
> 
> 


-- 
Best Regards
MfG Robert Schetterer


Re: [Dovecot] Dovecot 1.2.11 panic in mail-transaction-log-view?

2012-09-22 Thread Benny Pedersen

Robert Schetterer skrev den 2012-09-22 07:46:


you should upgrade to recent stable version 2.1.x


and this is a simple change from 1.x to 2.x :(

i have never a panic in 1.x here






[Dovecot] thunderbird does not copy a tree-structure to dovecot imap

2012-09-22 Thread Anton
Hi,

running in problems with KMail I decided to switch to 
dovecot-imap & thunderbird on my kubuntu 12.04 64 bit
(so I can read my imap-folder-mails with KMail again if it gets more stable)

What I did:
 - I wrote a python script to convert my KMail mails folder to a 
   thunderbird mailfolder (directory tree containing mbox files 
   and *.sbd folders)

 - I created a fake pop mail account in thunderbird and imported the
   whole mail-structure (i just copied it)

 - I create a local imap account ( so I have a ~/Maildir dovecot 
   folder in my user dir)

 - In /etc/dovecot:

   1. /etc/dovecot/10-mail.conf (line 10) I set:
  mail_location = maildir:~/Maildir:LAYOUT=fs

   2. /etc/dovecot/20-imap.conf (line 57) I set:
  imap_client_workarounds = tb-extra-mailbox-sep

Now I want to copy the whole mailstructure from my imported
fake pop mailfolder to the dovecot imap folder.

What happens:

Lets say my source structure is

 mailfolder1
   + mail1
   + mail2
   + subMailFolder2
   + mail1-in-subMailFolder2
   + mail2-in-subMailFolder2
   + subSubMailFolder3
   + mail1-in-subMailFolder3
   + mail2-in-subMailFolder3

I thunderbird (version 15) I drag and drop my mailFolder1 
to the imap folder and I get:

 mailfolder1
   + mail1
   + mail2
   + subMailFolder2
   + subSubMailFolder3

as you See only the mails of the *TOP* folder are copied.
All subfolders are created but they contain NO MAILS.

Did somebody experience the same problem???

Otherwise I will write a python script to do that
(I dont hope to need to write a mailclient in python ;-) )

Any hint is greatly welcome.

  Anton



[Dovecot] Spurious " Renaming not supported across conflicting directory permissions"

2012-09-22 Thread tlhackque

Dovecot 2.1.10
Client = Thunderbird.  Local disks.  mbox format.

Attempted to rename a folder, failed with:

  CANNOT Renaming not supported across conflicting directory permissions

I don't understand why this should happen.
  o I was renaming within a directory - the attempt was to rename 
"Domain Names &- SSL Certificates" to "Domain Names".  No directory was 
specified
  o The reason the directory has g=s is for dovecot - so that the 
'mail' group (12) will stick to any files created.  I was getting more 
understandable permission failures before I added it.  Since 's' doesn't 
apply to files, I don't see why this should be viewed as a conflict.
  o If I chmod g-s the directory, the command succeeds.  But then I'm 
back to file ownership problems...


drwxrws--- 4 4503 12 4096 Sep 22 06:17 F/N/
-rw-rw 1 4503 12 81530 Sep 22 06:17 F/N/Domain Names &- SSL Certificates

Sequence from TB's trace (crlfs for clarity):

1140[11ebcf00]: 121e8c00:imap.example.com:A:SendData:
   66 rename "F/N/Domain Names &- SSL Certificates" "F/N/Domain Names"
1140[11ebcf00]: ReadNextLine [stream=12135a28 nb=80 needmore=0]
1140[11ebcf00]: 121e8c00:imap.example.com:A:CreateNewLineFromSocket:
  66 NO [CANNOT] Renaming not supported across conflicting directory 
permissions 9592[c7d6840]: ReadNextLine [stream=ab687e8 nb=22 needmore=0]


Config:

# 2.1.10: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.22.14-72.fc6 i686 Fedora Core release 6 (Zod)
first_valid_gid = 4000
first_valid_uid = 4000
hostname = smtp.example.com
login_greeting = Dovecot ready.  Unauthorized access is prohibited.
mail_location = mbox:~/mail:INBOX=/var/mail/%n
mail_privileged_group = mail
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
  separator = /
}
passdb {
  driver = pam
}
service imap-login {
  inet_listener imap {
address = imap.v4.example.com imap.v6.example.com
port = 143
  }
  inet_listener imaps {
address = imap.v4.example.com imap.v6.example.com
port = 993
ssl = yes
  }
}
service pop3-login {
  inet_listener pop3 {
address = pop.v4.example.com pop.v6.example.com
port = 110
  }
  inet_listener pop3s {
address = pop.v4.example.com pop.v6.example.com
port = 995
ssl = yes
  }
}
ssl_ca =