Re: [Dovecot] Dovecot 1.1.2, index_mailbox_set_recent_seq crash again

2008-08-28 Thread Timo Sirainen
The bug was completely elsewhere than I thought. I was just about to
send a debug patch for some of you to test, but immediately after that I
managed to reproduce it myself. :) So this should finally get rid of the
problem:

http://hg.dovecot.org/dovecot-1.1/rev/8cc0eaec7d0f


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with squirrelmail and dovecot 1.1

2008-08-28 Thread Timo Sirainen
On Fri, 2008-08-22 at 13:01 +0200, Gerhard Wiesinger wrote:
 Configuration worked well. I think it has to do with the upgrade from dovecot 
 1.0 to 1.1 and the LIST command. Thunderbird/alpine work well.
 
 Commands from rawlog are:
 A002 LIST  ~/Mail/Drafts
 A002 OK List completed.

Is the ~/Mail/ prefix correct?

 Has something changed in the folder behaviour of dovecot from 1.0 to 1.1?

Not that I know of.

 If you need more information please let me know it.

dovecot -n is always helpful. The most important settings here would be
the namespace configuration and the value of
mail_full_filesystem_access.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with namespaces

2008-08-28 Thread Timo Sirainen
On Wed, 2008-08-20 at 11:39 +0300, Toms Trankalis (SZ) wrote:
 I can select SPAM and NOT_Spam, delete messages etc, but when I select 
 Shared, it shows:
 Mailbox doesn't exist: Shared. As a client I used OE and Thunderbird.

Already answered once, but here's again copypasted:

Shared is a namespace prefix, not a mailbox. Why do you even want to
select it?



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] migrating from specialized qpopper

2008-08-28 Thread Timo Sirainen
A bit late reply, but:

On Wed, 2008-08-13 at 16:13 -0700, Cruzio Research wrote:
 With qpopper, we run it from inetd and use hosts.allow to call each 
 instance with special information about the password file location, etc, 
 like this:
 
 popper: ALL : twist (/pathto/bin/popper -d -s -T 300 -h %H -p 
 /pathto/www.%H/passwd -x /pathto/www.%H/spool)
 
 This allows us to insert the domain (%H) based on what hostname the user 
 is connecting to and change parameters based on that.
 
 Would their be any easy way to do this with dovecot?

I'd suggest a checkpassword script. Or I guess the only problem is that
Dovecot doesn't do a reverse lookup to the local IP address. You could
already use:

passdb passwd-file {
  args = /pathto/www.%L/passwd
}

But %L expands to IP address, not the host name. Wouldn't be too
difficult to create a new variable for that though.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot IMAP INBOX Namespace iPhone

2008-08-28 Thread Timo Sirainen
On Sun, 2008-08-17 at 11:56 +0200, Andrew Goldschmidt wrote:
 006 LIST  *
 * LIST (\HasNoChildren) . Junk E-mail
 * LIST (\HasNoChildren) . Deleted Items
 * LIST (\HasNoChildren) . Drafts
 * LIST (\HasNoChildren) . Sent
 * LIST (\HasNoChildren) . INBOX.Work
 * LIST (\HasNoChildren) . INBOX.Friends
 006 OK List completed.
 
 There is NO INBOX specifically returned ...

That's clearly a bug.

 Is this something that my ISP should be able to fix?
 Is this a problem that can be fixed?

Upgrading Dovecot to a newer (newest) version should fix that.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] LDA qmail - vpopmail

2008-08-28 Thread Timo Sirainen
On Thu, 2008-08-21 at 10:24 -0400, Ron Culler wrote:
 I am trying to setup LDA with qmail/vpopmail to use the expire plugin
 and I am getting errors about auth-master
 
 (Can't connect to auth server at /usr/local/var/run/dovecot/auth-master:
 No such file or directory)

You'll need to configure Dovecot to create that file, as described in
http://wiki.dovecot.org/LDA



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with multiple Dovecot Instances

2008-08-28 Thread Timo Sirainen
On Fri, 2008-08-22 at 04:14 +0200, Manuel Maurer wrote:
 On Fri, 22 Aug 2008 04:50:40 +0300, Timo Sirainen [EMAIL PROTECTED] wrote:
  On Fri, 2008-08-22 at 03:45 +0200, Manuel Maurer wrote:
  
  The folder /var/run/dovecot_main was created at startup, just the
  login directory not, why?
  
  Because you were using external authentication.
 But why do the logfiles say this directory is missing? As far as i
 understood the Login-Process, every imap-login and pop3-login process
 is chrooted inside the login folder until the user is authentificated.
 In this case it would be necessary to have this folder. When i create
 it by hand it is missing the authentification socket. Is this the 
 socket default, normally located inside the login folder? If so,
 why is this also not created?

The directory isn't created if external authentication is used. I guess
the reason for this was that in such a case Dovecot can't really know
what the correct directory permissions would be. I guess it could still
create the directory if completely missing, but .. well, no-one uses
external auth. :)

  At the moment i got it up and running by using an own auth-process
  for every dovecot instance. But i would prefer authentification via
  one single process.
  
  I didn't notice this in your previous settings. Unfortunately it doesn't
  work like that currently, because Dovecots get confused as to who owns
  which auth connection.
 Sorry, i misspresented this. I am not using this configuration when i try
 to
 set up the single auth-process. Just recognized that it is also possible to
 run dovecot in that way. But that's not what i want. The configuration i
 posted the very first time is that what i use (now with chroot and
 login_dir
 set to default).
 If i absolutely do not get it running with single auth, i would use
 an auth-server for every dovecot instance.

Currently there's no way to share the auth server. I'm not actually sure
if it's ever going to work, but hopefully with v2.0 you don't have to
run multiple instances because it'll be so much more configurable.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problems with namespaces

2008-08-28 Thread Tomzu

Sorry, I somehow posted xx times the same message.

I don't want to select it, but it's selectable. Anyway, the last 
configuration:

namespace public {
 separator = /
 prefix = Shared/
 location = maildir:/vmail/%Ld/Shared:INDEX=/vmail/%Ld/%Ln/Shared
 hidden = no
}

Works like charm. In Thunderbird it's displayed like Shared (grey, 
italic) and when selected, doesn't display any errors. And in 
Thunderbird the folder Shared isn't subscribed (It doesn't even a show 
check box in the folders list).


In OE I have to subscribe to Shared to see the subfolders. And when 
Shared is selected, OE displays an error.


/Tom

Timo Sirainen wrote:

On Wed, 2008-08-20 at 14:31 +0300, [EMAIL PROTECTED] wrote:
  

I can select SPAM and NOT_Spam, delete messages etc, but when I select
Shared, it shows: Mailbox doesn't exist: Shared. As a client I used OE
and Thunderbird. How to get rid of that message?



Shared is a namespace prefix, not a mailbox. Why do you even want to
select it?
  


Re: [Dovecot] Any sense of when V1.1.3 might appear?

2008-08-28 Thread Timo Sirainen
On Thu, 2008-08-28 at 13:34 +0300, Timo Sirainen wrote:
 On Wed, 2008-08-27 at 18:31 +0200, Michael Lechtermann wrote:
  Hi,
  
  Timo Sirainen schrieb:
   Wait. v1.1.2 seems to be especially broken with mboxes.. I'll try to get 
   v1.1.3 out somewhat soon, although there are again something like 60 
   messages I should read/reply to in this list and several of them having 
   bugs that need to be fixed..
  
  While we are talking about bugs... any timeframe when you might be able 
  to look into the sparc64 quota(dirsize)/index bug? ;-)
 
 Looking at the thread it ended with my reply:
 
 Could you get gdb backtrace of this crash? See
 http://dovecot.org/bugreport.html

Oh, sorry, there are private mails too. :) I always forget them if I
don't do something with them immediately, and I handle them only after
I've managed to get rid of mails in Dovecot list.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with squirrelmail and dovecot 1.1

2008-08-28 Thread Gerhard Wiesinger

Hello Timo!

dovecot -n
# 1.1.2: /etc/dovecot.conf
listen: [::]
ssl_listen: [::]
ssl_cert_file: /etc/pki/dovecot/dovecot-extern.pem
ssl_key_file: /etc/pki/dovecot/private/dovecot-extern.pem
login_dir: /var/run/dovecot-login
login_executable: /usr/libexec/dovecot/imap-login
mail_location: mbox:~:INBOX=/var/mail/%u
mail_full_filesystem_access: yes
mbox_write_locks: fcntl
mbox_lazy_writes: no
mail_executable: /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
imap_client_workarounds: tb-extra-mailbox-sep
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
master:
  path: /var/run/dovecot-auth-master
  mode: 432
  group: users

So ~/Mail should be ok (and it works with TB and alpine).

Ciao,
Gerhard

--
http://www.wiesinger.com/


On Thu, 28 Aug 2008, Timo Sirainen wrote:


On Fri, 2008-08-22 at 13:01 +0200, Gerhard Wiesinger wrote:

Configuration worked well. I think it has to do with the upgrade from dovecot
1.0 to 1.1 and the LIST command. Thunderbird/alpine work well.

Commands from rawlog are:
A002 LIST  ~/Mail/Drafts
A002 OK List completed.


Is the ~/Mail/ prefix correct?


Has something changed in the folder behaviour of dovecot from 1.0 to 1.1?


Not that I know of.


If you need more information please let me know it.


dovecot -n is always helpful. The most important settings here would be
the namespace configuration and the value of
mail_full_filesystem_access.




Re: [Dovecot] Problem with squirrelmail and dovecot 1.1

2008-08-28 Thread Timo Sirainen
On Thu, 2008-08-28 at 12:53 +0200, Gerhard Wiesinger wrote:
 mail_full_filesystem_access: yes
..
 So ~/Mail should be ok (and it works with TB and alpine).

Ah, right. I just fixed that:
http://hg.dovecot.org/dovecot-1.1/rev/c1e022104285



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with squirrelmail and dovecot 1.1

2008-08-28 Thread Gerhard Wiesinger

Hello Timo!

Looks to be fixed.

So the only bug for 100% satisfaction is the mbox/index problem right now.

BTW: You said that mbox is broken in 1.1.x? What's the reason and what are 
the consequences?


Ciao,
Gerhard

--
http://www.wiesinger.com/


On Thu, 28 Aug 2008, Timo Sirainen wrote:


On Thu, 2008-08-28 at 12:53 +0200, Gerhard Wiesinger wrote:

mail_full_filesystem_access: yes

..

So ~/Mail should be ok (and it works with TB and alpine).


Ah, right. I just fixed that:
http://hg.dovecot.org/dovecot-1.1/rev/c1e022104285




Re: [Dovecot] Dovecot - T-Bird - RETR command failed

2008-08-28 Thread Calvin Gordon
This morning during another RETR command error in T-Bird i got the 
following info from the use/maildir/cur directory


[EMAIL PROTECTED] cur]# ls -lh

total 3.1M

-rw--- 1 username users 35K 2008-08-27 13:57 
1219867052.V811I47642dM988688.mailserver.company.com:2,S


-rw--- 1 username users 821 2008-08-27 14:17 
1219868229.V811I476525M88463.mailserver.company.com:2,


-rw--- 1 username users 20K 2008-08-27 19:01 
1219885307.V811I476533M802748.mailserver.company.com:2,


-rw--- 1 username users 50K 2008-08-27 19:05 
1219885504.V811I47654eM965583.mailserver.company.com:2,


-rw--- 1 username users 3.0K 2008-08-27 21:42 
1219894942.V811I47655aM486415.mailserver.company.com:2,


What is the 'S behind the offending file name ?

What is the ,S behind the offending filenane ?

I also did a head on the offending file (edited to protect the confused)

[EMAIL PROTECTED] cur]# head 
1219867052.V811I47642dM988688.mailserver.company.com:2\,S


Return-Path: [EMAIL PROTECTED]

X-Original-To: [EMAIL PROTECTED]

Delivered-To: [EMAIL PROTECTED]

Received: from aprimo-relay2.autodesk.com (aprimo-relay2.autodesk.com 
[198.102.112.80])


by mailserver.company.com (Postfix) with ESMTP id 0B52C2D844B

for [EMAIL PROTECTED]; Wed, 27 Aug 2008 13:57:24 -0600 (CST)

Received: from APRPRDAPP04.ads.autodesk.com (aprprdapp04.autodesk.com 
[144.111.34.44])


by aprimo-relay2.autodesk.com (8.13.0/8.12.6) with ESMTP id m7RJvNvN006344

for [EMAIL PROTECTED]; Wed, 27 Aug 2008 12:57:24 -0700 (PDT)

Received: from mail pickup service by APRPRDAPP04.ads.autodesk.com with 
Microsoft SMTPSVC;



Cal G

Timo Sirainen wrote:

On Tue, 2008-08-26 at 13:42 -0600, Calvin Gordon wrote:
  
I have recently installed new untangle firewalls ( untangle.com) in 
Bridge mode at two office locations. Both offices collect mail from a 
Fedora 9, postfix,dovecot server at location #1. Since the install of 
the untangles i have been plagued by Thunderbird Errors while trying to 
POP email.



That strongly implies the problem is with the new firewalls.

  
Aug 26 13:58:41 mailserver dovecot: POP3(username): Connection closed 
top=0/0, retr=1/6987, del=0/1, size=6970



Dovecot sees that the connection gets closed unexpectedly. Most likely
by the firewall that was inspecting the POP3 traffic and found something
it didn't like (or caused it to hit a bug or something).

The problem probably goes away if you enable SSL. Or maybe you could
configure the firewalls not to look inside the POP3 traffic.

  


[Dovecot] Broken extension introduction / Next message unexpectedly lost from

2008-08-28 Thread Radomir Zoltowski

Hi all,

I seem to experience a common problem with the Broken extension 
introduction / Next message unexpectedly lost from bug in 1.1.2.


Could you email here what is the status of this? I may be of help if you 
need more info on how to debug this one...


Thanks,
R.
--
_

Radomir Zoltowski [EMAIL PROTECTED]
Applications Engineer
Silicon  Software Systems Ltd., IT Department
South County Business Park, Leopardstown, Dublin 18, IRELAND
Tel.: +353 1 291 1224, Fax: +353 1 291 1001
_


The information contained in this e-mail and in any attachments is confidential 
and is designated solely for the attention of the intended recipient(s). If you 
are not an intended recipient, you must not use, disclose, copy, distribute or 
retain this e-mail or any part thereof. If you have received this e-mail in 
error, please notify the sender by return e-mail and delete all copies of this 
e-mail from your computer system(s).
Please direct any additional queries to: [EMAIL PROTECTED]
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

[Dovecot] mailbox lock

2008-08-28 Thread Thiago Monaco Papageorgiou

Hello!

I need to use my lock method into the dovecot to block a mailbox. I am 
using maildir format, is there an API that I can implement? I need it 
because there are others systems which already use my lock method.


Best regards.

--
Thiago Monaco Papageorgiou [EMAIL PROTECTED]

Terra Networks Brasil S/A 
Tel: +55 (51) 3284-4274




Re: [Dovecot] mailbox lock

2008-08-28 Thread mouss

Thiago Monaco Papageorgiou wrote:

Hello!

I need to use my lock method into the dovecot to block a mailbox. I am 
using maildir format, is there an API that I can implement? I need it 
because there are others systems which already use my lock method.


why would you lock in a maildir? maildir was designed to avoid locks. do 
you have an external app that plays with mail files? in a maildir, it 
may be as easy as:


# mkdir mydir
# mv cur/$filename mydir/
# do what you want in mydir/



Re: [Dovecot] mailbox lock

2008-08-28 Thread Thiago Monaco Papageorgiou
Ok, but we must lock the mailbox because we often move groups of mailbox 
from a file system to another. While the mailboxes are being moved, our 
LDA shouldn't delivery a new message at the old mailbox, and isn't able 
to delivery at the new one. The mailbox is unlocked after the exchange 
of the file system , if the dovecot locks the index files and then the 
mailbox exchanges of file system, what will unlock the index files of 
the dovecot?
The dovecot process that perform the lock, will unlock the old index 
files. This old index files will be erased as well as the whole old 
mailbox, the new mailbox, that was moved to an another file system, will 
remains locked.


We have almost 10M of mailboxes, if the chance that it happens is 
something like 1/1M, it will happens 10 times per day!



mouss wrote:

Thiago Monaco Papageorgiou wrote:

Hello!

I need to use my lock method into the dovecot to block a mailbox. I 
am using maildir format, is there an API that I can implement? I need 
it because there are others systems which already use my lock method.


why would you lock in a maildir? maildir was designed to avoid locks. 
do you have an external app that plays with mail files? in a 
maildir, it may be as easy as:


# mkdir mydir
# mv cur/$filename mydir/
# do what you want in mydir/


Esta mensagem foi verificada pelo E-mail Protegido Terra.
Atualizado em 31/12/1969





--
Thiago Monaco Papageorgiou [EMAIL PROTECTED]

Terra Networks Brasil S/A 
Tel: +55 (51) 3284-4274




Re: [Dovecot] mailbox lock

2008-08-28 Thread Giorgenes Gelatti
Maybe what you have to is remove the dovecot's lock file after the
migration is complete, as after the exchange is complete.

[]'s
gpg


2008/8/28 Thiago Monaco Papageorgiou [EMAIL PROTECTED]:
 Ok, but we must lock the mailbox because we often move groups of mailbox
 from a file system to another. While the mailboxes are being moved, our LDA
 shouldn't delivery a new message at the old mailbox, and isn't able to
 delivery at the new one. The mailbox is unlocked after the exchange of the
 file system , if the dovecot locks the index files and then the mailbox
 exchanges of file system, what will unlock the index files of the dovecot?
 The dovecot process that perform the lock, will unlock the old index files.
 This old index files will be erased as well as the whole old mailbox, the
 new mailbox, that was moved to an another file system, will remains locked.

 We have almost 10M of mailboxes, if the chance that it happens is something
 like 1/1M, it will happens 10 times per day!


 mouss wrote:

 Thiago Monaco Papageorgiou wrote:

 Hello!

 I need to use my lock method into the dovecot to block a mailbox. I am
 using maildir format, is there an API that I can implement? I need it
 because there are others systems which already use my lock method.

 why would you lock in a maildir? maildir was designed to avoid locks. do
 you have an external app that plays with mail files? in a maildir, it may
 be as easy as:

 # mkdir mydir
 # mv cur/$filename mydir/
 # do what you want in mydir/


 Esta mensagem foi verificada pelo E-mail Protegido Terra.
 Atualizado em 31/12/1969




 --
 Thiago Monaco Papageorgiou [EMAIL PROTECTED]
 
 Terra Networks Brasil S/A Tel: +55 (51) 3284-4274




Re: [Dovecot] 1.0.RC2 to 1.1.2

2008-08-28 Thread Timo Sirainen
On Thu, 2008-08-28 at 13:42 +0100, Radomir Zoltowski wrote:
 Hi all,
 
 I've switched versions from the 1.0.RC2 to 1.1.2. Now I see a number of 
 errors, e.g.:
 
 dovecot: Aug 28 12:58:06 Error: IMAP(user): Log synchronization error at 
 seq=1,offset=24
 for /home/user/mailarchive/Tools/Cadence/.imap/Cadence/dovecot.index: 
 Broken extension introduction: Record
 field points outside record size (0+16  8)

Do these happen often? Or maybe it's just a buggy log file that 1.0.rc2
wrote and 1.1.2 complained about?

 dovecot: Aug 28 12:58:10 Error: IMAP(user): Next message unexpectedly 
 lost from 257852
 dovecot: Aug 28 12:58:10 Error: IMAP(user): Unexpectedly lost From-line 
 at 257852
 dovecot: Aug 28 12:58:10 Error: IMAP(user): Next message unexpectedly 
 lost from 262539

These are a bit more strange. You could see if running with this patch
for a while helps: http://hg.dovecot.org/dovecot-1.1/rev/7f5cc9e805ec

But in any case it would be helpful if you could figure out a way to
reproduce it.


signature.asc
Description: This is a digitally signed message part


[Dovecot] Sieve fileinto a subfolder fails -- more info, possible workaround

2008-08-28 Thread Rich McAllister
After looking at the way Maildir represents subfolders, I changed
the sieve line from

fileinto Lists/NCCC;

to

fileinto Lists.NCCC;

and now it files into the NCCC subfolder of Lists as I wanted.  I'm
not sure whether this is the expected behavior or just an accident
that plugging that string into the file name happens to result in the right
name.

I haven't tried, but if it's just passing the fileinto argument along
with minimal inspection, I'm afraid the answer might be use
Lists/NCCC if mail is in mbox format but Lists.NCCC if mail is in
Maildirs, and it certainly seems that users editing their sieve
scripts shouldn't have to know that.

 
Rich


dovecot -n shows:

# 1.0.10: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S 
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
mail_location: maildir:/arda/export/mail/%u/Maildir
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd