Re: [Dovecot] Mail storage creation fails with virtual users

2009-12-29 Thread Timo Sirainen
Not really. mail_access_groups could give some extra security when combined with a proper version of a), but by itself it doesn't solve anything. On 30.12.2009, at 0.40, Scott H. W. Snyder wrote: > Could this have something to do with mail_extra_groups? Or privileged > group? I tried adding

Re: [Dovecot] Virtual folder, Program terminated with signal 6

2009-12-29 Thread Matthias Rieber
Hi, On Tue, 29 Dec 2009, Timo Sirainen wrote: On Sat, 2009-12-26 at 19:40 +0100, Matthias Rieber wrote: I've regularly crashes with a certain virtual folder. Which Dovecot version? What does dovecot-virtual file contain? I fixed some virtual bugs in v1.2.9. that appeared in version 1.2.9.

Re: [Dovecot] Mail storage creation fails with virtual users

2009-12-29 Thread Timo Sirainen
Maybe the specific command wasn't correct, but the "give it enough permissions" idea will work. If you upgrade to v1.2, it'll tell exactly what permission is missing and that could help figuring out what you need to change. On 30.12.2009, at 0.33, Scott H. W. Snyder wrote: > I've tried the firs

Re: [Dovecot] Mail storage creation fails with virtual users

2009-12-29 Thread Scott H. W. Snyder
Could this have something to do with mail_extra_groups? Or privileged group? I tried adding these in to no avail. On Dec 29, 2009, at 4:21 PM, Timo Sirainen wrote: Two possibilities: a) Give it enough permissions (e.g. chmod 01777 /var/mail/folders) b) Create the directories manually at

Re: [Dovecot] Mail storage creation fails with virtual users

2009-12-29 Thread Scott H. W. Snyder
I've tried the first, and it didn't work. I'd rather not have to do the second. :( On Dec 29, 2009, at 4:21 PM, Timo Sirainen wrote: Two possibilities: a) Give it enough permissions (e.g. chmod 01777 /var/mail/folders) b) Create the directories manually at the same time as creating new user

Re: [Dovecot] Pigeonhole Sieve IMAP flag question

2009-12-29 Thread Stephan Bosch
Julian Cowley wrote: Hello, Here is a small script that I've been running to test a problem I've been seeing. Shouldn't this result in the mail being delivered to the inbox as a new message (ie. without the \Seen flag)? require "imap4flags"; addflag "\\Seen"; removeflag "\\Seen

Re: [Dovecot] dovecot-1.2.8 imap crash (with backtrace)

2009-12-29 Thread Timo Sirainen
On 29.12.2009, at 19.09, David Halik wrote: > I'll definitely get back to you on this. Right now we're closed until after > New Years and I don't want to go updating the dovecot package on all of our > servers until we're all back at work. I did do some quick poking around and > the count is op

Re: [Dovecot] dovecot-1.2.8 imap crash (with backtrace)

2009-12-29 Thread David Halik
On 12/29/2009 6:18 PM, Timo Sirainen wrote: Wonder if there's a corresponding "Expunged message reappeared, giving a new UID (old uid=x)" having "Dupliate file entry .. (uid x -> " for each log line? Meaning that the duplicate file entries are caused by those reappearing messages? (And the reapp

Re: [Dovecot] problem with uidlist

2009-12-29 Thread Timo Sirainen
On Tue, 2009-11-17 at 12:55 +0100, Cor Bosman wrote: > Nov 17 12:45:12 userimap10.xs4all.nl dovecot: IMAP(xxx): > /var/spool/mail/dovecot-control/c/c0/xxx/INBOX/.INBOX/dovecot-uidlist: > Duplicate file entry at line 2650: > 1257768394._smtp.mxdrop238.41874,S=17304:2,Sad (uid 34270 -> 371

Re: [Dovecot] dovecot-1.2.8 imap crash (with backtrace)

2009-12-29 Thread Timo Sirainen
On Thu, 2009-12-24 at 11:39 -0500, David Halik wrote: > Dec 24 10:43:07 gehenna11 dovecot: IMAP(user): > /rci/nqu/rci/u1/user/dovecot/.INBOX/dovecot-uidlist: Duplicate file > entry at line 4: > 1231949492.M325236P5922V03E80009I01B6DCA5_0.gehenna9.rutgers.edu,S=4398:2,S > (uid 514 -> 721) > Dec

Re: [Dovecot] dovecot-1.2.8 imap crash (with backtrace)

2009-12-29 Thread David Halik
Hey Timo, hope you enjoyed your vacation. :) I just wanted to point out that I'm still seeing the (maildir_uidlist_records_array_delete): assertion failed: (pos != NULL) dump even after your patch. The (match == IMAP_MATCH_YES) dump is definitely fixed, but the other dump still remains... O

Re: [Dovecot] dovecot-1.2.8 imap crash (with backtrace)

2009-12-29 Thread Timo Sirainen
On Wed, 2009-12-23 at 10:37 -0800, Brandon Davidson wrote: > We too have set dotlock_use_excl = no. I'm not seeing the "Stale NFS file > handle" message any more, but I am still seeing a crash. The crashes seem to > be leaving the indexes in a bad state: > > Dec 23 09:07:44 oh-popmap3p dovecot: im

Re: [Dovecot] Pigeonhole Sieve IMAP flag question

2009-12-29 Thread Julian Cowley
On Tue, 29 Dec 2009, Tobias Lang wrote: Am 29.12.2009 um 12:58 schrieb Julian Cowley: Hello, Here is a small script that I've been running to test a problem I've been seeing. Shouldn't this result in the mail being delivered to the inbox as a new message (ie. without the \Seen flag)? req

Re: [Dovecot] disable lazy_expunge for some mailboxes?

2009-12-29 Thread Timo Sirainen
On Mon, 2009-12-28 at 17:57 -0500, Frank Cusack wrote: > How to disable lazy_expunge for certain mailboxes? > > My problem is I have a public namespace, whose mail is on a different > filesystem than user mails. Some users are allowed to expunge on this > shared mailbox, but lazy_expunge is stopp

Re: [Dovecot] Problem with dovecot and PAM

2009-12-29 Thread Timo Sirainen
On Fri, 2009-12-25 at 12:09 +0100, Joss Red wrote: > I keep having errors when I try to authenticate to my imap acount, and I > can't get my email like this. .. > pam(em...@domain.com,1.2.3.4): pam_authenticate() failed: User not known > to the underlying authentication module .. > sql(em...@doma

Re: [Dovecot] dovecot-shared

2009-12-29 Thread Frank Cusack
On December 29, 2009 4:49:56 PM -0500 Timo Sirainen wrote: On Tue, 2009-12-29 at 03:03 -0500, Frank Cusack wrote: On December 29, 2009 1:59:53 AM -0500 Timo Sirainen wrote: > Yeah, that's been in todo for a while. I'd probably make dovecot-shared > file have options: I was just thinking today

Re: [Dovecot] dovecot-shared

2009-12-29 Thread Timo Sirainen
On Tue, 2009-12-29 at 03:03 -0500, Frank Cusack wrote: > On December 29, 2009 1:59:53 AM -0500 Timo Sirainen wrote: > > Yeah, that's been in todo for a while. I'd probably make dovecot-shared > > file have options: > > I was just thinking today it would be nice to have per-USER private or > share

Re: [Dovecot] Upgrade 1.0->1.2 dbox mysql

2009-12-29 Thread Timo Sirainen
On Fri, 2009-12-18 at 08:02 -0800, Bradley Giesbrecht wrote: > I renamed the mailboxes that were created yesterday before doing so. > Thank goodness I have less then a hundred imap users. > > I wish I understood dovecots directory vars better. > > What is mail_location used for? Points to the

Re: [Dovecot] Using Dovecot deliver with Postfix

2009-12-29 Thread Timo Sirainen
On Fri, 2009-12-25 at 13:30 +0100, Tobias Lang wrote: > while installing Dovecot sieve, I am not able to deliver email for root. That's because you should be redirecting root's mails to some other user. root shouldn't have mail. signature.asc Description: This is a digitally signed message pa

Re: [Dovecot] Install fails when libdir and libexecdir are the same directory

2009-12-29 Thread Timo Sirainen
On Tue, 2009-12-29 at 17:21 +, River Tarnell wrote: > I'm using Dovecot 1.2.9. I configured it like this: > > % ./configure --prefix=/opt/rt --libdir=/opt/rt/lib \ >--libexecdir=/opt/rt/lib [other args...] > > It compiled fine, but failed to install, because it tries to install a >

Re: [Dovecot] multiple attribute templates?

2009-12-29 Thread Timo Sirainen
On Thu, 2009-12-24 at 19:45 -0300, Mariano Absatz wrote: > pass_attrs = > uid=user,userPassword=password,maildropPath=userdb_mail=maildir:/home/vmail/%$,maildropPath=userdb_home=/home/vmail/%$ > > Alas... this didn't work... that is, apparently, the "home" attribute > works OK (I got my scripts on

Re: [Dovecot] Question about log entries

2009-12-29 Thread Mark Sapiro
On 11:59 AM, Timo Sirainen wrote: > > POP3's TOP command retrieves only message headers. I don't think clients > use it much (if ever). Actually, my Windows client of choice for scanning my incoming mail[1] is a POP3 client that emulates some IMAP functionality and uses TOP extensively. In fact,

Re: [Dovecot] Deliver EX_TEMPFAIL's without giving any information

2009-12-29 Thread Timo Sirainen
On Tue, 2009-12-29 at 15:04 +0600, Denis Khromov wrote: > /usr/local/libexec/dovecot/deliver must not be both world-executable > and setuid-root. This allows root exploits. See > http://wiki.dovecot.org/LDA#multipleuids .. > I think this error message should go to log files, not just to > stdo

Re: [Dovecot] Mail storage creation fails with virtual users

2009-12-29 Thread Timo Sirainen
On Mon, 2009-12-28 at 16:18 -0500, Scott H. W. Snyder wrote: > So I have recently set up dovecot with a virtual users dovecot.passdb > file, but when I attempt to telnet in, it fails because my virtual > users don't have proper permissions to create mailboxes. Two possibilities: a) Give it en

Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve

2009-12-29 Thread Timo Sirainen
On Mon, 2009-12-28 at 14:34 +0100, Steve Wagner wrote: > The only error message i have, come from procmail.log: > > 24918-Folder: /opt/dovecot/libexec/dovecot/deliver >3720 > 24919-procmail: Error while writing to > "/opt/dovecot/libexec/dovecot/deliver" > 24920:From keineantwortadre..

Re: [Dovecot] Virtual folder, Program terminated with signal 6

2009-12-29 Thread Timo Sirainen
On Sat, 2009-12-26 at 19:40 +0100, Matthias Rieber wrote: > I've regularly crashes with a certain virtual folder. Which Dovecot version? What does dovecot-virtual file contain? I fixed some virtual bugs in v1.2.9. signature.asc Description: This is a digitally signed message part

Re: [Dovecot] dovecot -n output of (default) is confusing me

2009-12-29 Thread Timo Sirainen
On Sat, 2009-12-26 at 18:33 -0500, john.b...@cox.net wrote: > Hello, > > I'm new to dovecot and I've been taking my time examining what makes dovecot > work. If I have imap and pop3 listed as protocols, dovecot -n outputs: > > mail_executable(default): /usr/local/libexec/dovecot/imap > mail_ex

Re: [Dovecot] Log rotation?

2009-12-29 Thread Timo Sirainen
On Sun, 2009-12-27 at 23:02 -0800, Beto Moreno wrote: > postrotate > /bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> > /dev/null || true > endscript > } > > Well, my question is simple, Do we need to restart the service each > time logrotation runs? If you've configured

Re: [Dovecot] Retrieve Physical Message Filename

2009-12-29 Thread Timo Sirainen
On Tue, 2009-12-29 at 15:50 -0500, Tony Rutherford wrote: > Hi,Using Dovecot 1.2.9 with Maildir and Layout=FS.In a plugin, i'm > overriding "update_flags":void my_mail_update_flags(struct mail > *_mail, enum modify_type modify_type, enum mail_flags flags)For this > email which is having its flags u

[Dovecot] Retrieve Physical Message Filename

2009-12-29 Thread Tony Rutherford
Hi,Using Dovecot 1.2.9 with Maildir and Layout=FS.In a plugin, i'm overriding "update_flags":void my_mail_update_flags(struct mail *_mail, enum modify_type modify_type, enum mail_flags flags)For this email which is having its flags updated, I need to retrieve the physical filename of the messag

Re: [Dovecot] Question about log entries

2009-12-29 Thread Timo Sirainen
On Tue, 2009-12-29 at 13:56 -0600, Cliff Hayes wrote: > Hello, > > What does this information mean and how is it relevant? > I cannot find documentation other than a brief description in dovecot.conf: > > %t - number of TOP commands > %p - number of bytes sent to client as a result of TOP command

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Timo Sirainen
On Tue, 2009-12-29 at 09:48 +0100, Papp Tamas wrote: > I have a user with Outlook and he uses pop3 and leaves messages on server. > > > Sometimes the messages get downloaded again, when he starts the outlook. > Not all, but 7-9 hours back. > > uidl format is like it's suggested: > > pop3_uid

[Dovecot] Question about log entries

2009-12-29 Thread Cliff Hayes
Hello, What does this information mean and how is it relevant? I cannot find documentation other than a brief description in dovecot.conf: %t - number of TOP commands %p - number of bytes sent to client as a result of TOP command %r - number of RETR commands %b - number of bytes sent to client as

Re: [Dovecot] Pigeonhole Sieve IMAP flag question

2009-12-29 Thread Tobias Lang
Am 29.12.2009 um 12:58 schrieb Julian Cowley: > Hello, > > Here is a small script that I've been running to test a problem I've been > seeing. Shouldn't this result in the mail being delivered to the inbox as a > new message (ie. without the \Seen flag)? > > require "imap4flags"; > > add

Re: [Dovecot] Design: Optimizations for high-latency storage backend

2009-12-29 Thread Charles Marcus
On 2009-12-29 2:06 PM, Timo Sirainen wrote: > Oh, and doing all the prefetching stuff is made a lot easier by > implementing the filesystem API change I had talked about previously (so > at least indexes and dbox code would do all FS access via the API). And > the FS API change will be a lot easier

Re: [Dovecot] Design: Optimizations for high-latency storage backend

2009-12-29 Thread Timo Sirainen
Oh, and doing all the prefetching stuff is made a lot easier by implementing the filesystem API change I had talked about previously (so at least indexes and dbox code would do all FS access via the API). And the FS API change will be a lot easier if doesn't need to support things like locking or o

[Dovecot] Design: Optimizations for high-latency storage backend

2009-12-29 Thread Timo Sirainen
Mainly intended for future support of key-value (etc.) databases, but this is probably useful even for regular disk I/O. By using async I/O for disk access, the OS could more intelligently do seeks on disk to read the wanted data with less latency. Problem #1: Accessing message body while searchin

[Dovecot] Design: Mailbox list indexes

2009-12-29 Thread Timo Sirainen
I drove over 2000 miles in recent days, so I had some time to think about future Dovecot things. :) Maybe for v2.1 or v3.0, whichever I happen to release next. Here's the first thought: The main idea behind mailbox list indexes was to make getting STATUS information for mailboxes from a single ind

[Dovecot] Install fails when libdir and libexecdir are the same directory

2009-12-29 Thread River Tarnell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using Dovecot 1.2.9. I configured it like this: % ./configure --prefix=/opt/rt --libdir=/opt/rt/lib \ --libexecdir=/opt/rt/lib [other args...] It compiled fine, but failed to install, because it tries to install a directory called

Re: [Dovecot] managesieve error

2009-12-29 Thread Stephan Bosch
Lampa wrote: Hello, when using sieve-php and using LOGIN auth, getting: 2009-11-21T15:13:48+0100 managesieve-login: Panic: file client.c: line 449 (client_set_auth_waiting): assertion failed: (client->to_auth_waiting == NULL) 2009-11-21T15:13:48+0100 dovecot: Error: child 8474 (login) killed wi

[Dovecot] Mail storage creation fails with virtual users

2009-12-29 Thread Scott H. W. Snyder
So I have recently set up dovecot with a virtual users dovecot.passdb file, but when I attempt to telnet in, it fails because my virtual users don't have proper permissions to create mailboxes. I don't want to have to create actual users for each email account. Any idea as to what to do?

Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve

2009-12-29 Thread Tobias Lang
Am 28.12.2009 um 11:55 schrieb Steve Wagner: > if header :contains "Organization" "web.de" { discard; stop; } > > This often works, but sometimes it fails. Procmail reports then that > deliver reported an error (but not which) and delivers them to my inbox. > There are also no message in dovecots

[Dovecot] Using Dovecot deliver with Postfix

2009-12-29 Thread Tobias Lang
Hello, while installing Dovecot sieve, I am not able to deliver email for root. The strange thing is, that mails to ordinary users get delivered. And no, I do not use virtual mail, just ordinary unix accounts with an entry to passwd / shadow. Also before switching from Postfix deliver to Dovecot

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Charles Marcus
On 2009-12-29, Justin Krejci (jkre...@usinternet.com) wrote: > Not to pick nits but pop3+leave on server does not mean you have all > message from the dawn of time stored on the server. Outlook and > presumably other MUAs have "remove from server after X time" and > "remove from server when messag

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Justin Krejci
Not to pick nits but pop3+leave on server does not mean you have all message from the dawn of time stored on the server. Outlook and presumably other MUAs have "remove from server after X time" and "remove from server when message is deleted" options when leaving pop3 messages on the server is enab

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Charles Marcus
On 2009-12-29, Florian Effenberger (flo...@gmail.com) wrote: > ok, thanks for the insight! I guess it's really the best choice to > just update to a recent system and see if things work. ;-) Just be sure to read the update notes on the wiki carefully: http://wiki.dovecot.org/Upgrading > Thanks

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Florian Effenberger
Hi Charles, >> I guess that requires recompilation of the package? > > I don't think so, but maybe the old 1.0rc15 only supported dnotify? > > Anyway, inotify/dnotify is not part of dovecot, it is part of the linux > kernel (2.6.13+) - dovecot only makes USE of it, so it will work with > either. >

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Charles Marcus
On 2009-12-29 7:23 AM, Florian Effenberger wrote: >>> Seems I am lucky then: >>> Build options: ioloop=poll notify=dnotify >> dnotify is deprecated (and buggy)... use inotify on the server instead. > I guess that requires recompilation of the package? I don't think so, but maybe the old 1.0rc15 o

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Florian Effenberger
>> Seems I am lucky then: >> Build options: ioloop=poll notify=dnotify > > dnotify is deprecated (and buggy)... use inotify on the server instead. I guess that requires recompilation of the package?

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Charles Marcus
On 2009-12-29, Florian Effenberger (flo...@gmail.com) wrote: > Seems I am lucky then: > Build options: ioloop=poll notify=dnotify dnotify is deprecated (and buggy)... use inotify on the server instead. -- Best regards, Charles

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Charles Marcus
On 2009-12-29, Papp Tamas (tom...@martos.bme.hu) wrote: > The protocoll imap is not the same as using pop3+leave messages on > server. That is correct. The POP protocol is designed to delete the messages from the server once they have been POPPED. The IMAP protocol is designed to leave the message

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Charles Marcus
On 2009-12-29 3:48 AM, Papp Tamas wrote: > I have a user with Outlook and he uses pop3 and leaves messages on server > > Sometimes the messages get downloaded again, when he starts the outlook. > Not all, but 7-9 hours back. > > uidl format is like it's suggested: > > pop3_uidl_format = %08Xu%0

[Dovecot] Pigeonhole Sieve IMAP flag question

2009-12-29 Thread Julian Cowley
Hello, Here is a small script that I've been running to test a problem I've been seeing. Shouldn't this result in the mail being delivered to the inbox as a new message (ie. without the \Seen flag)? require "imap4flags"; addflag "\\Seen"; removeflag "\\Seen"; Every message gets

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Florian Effenberger
Hi Timo, > Which v1.0? (Which one's Debian 4.0? :) I wish Debian used Ubuntu-style > year+month numbers as versions. The only Debian versions I remember are > stable, testing and unstable..) :-) It's pretty old, dovecot --version returns 1.0.rc15 > Anyway, I don't think there have been any act

Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)

2009-12-29 Thread Florian Effenberger
Hi Tobi, > I tested it with Dovecot 1.1.6 and Thunderbird 3. The STATUS command > seems to be returned correctly. thanks a lot! Guess I'll give it a try on a new machine or with a backport. Currently in a "never touch a running system" mood, especially between the years when I have vacation :-)

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Papp Tamas
Papp Tamas wrote: Tobias wrote: yes I would try with another MUA just to verify whether it's a MUA- or server problem. Well as I wrote, it will be hard, but I'll do it. Until I cannot, do you have any other idea? BTW, I think we can be pretty sure, it's not a MUA problem, because it w

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Papp Tamas
Tobias wrote: yes I would try with another MUA just to verify whether it's a MUA- or server problem. Well as I wrote, it will be hard, but I'll do it. Until I cannot, do you have any other idea? Btw: No chance to persuade the user to use IMAP instead of POP3? No there is no chance

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Tobias
On Tue, 29 Dec 2009 11:27:49 +0100, Papp Tamas wrote: > Tobias wrote: >> >> Is that a problem with other MUAs too? Or is Outlook the only affected >> one? >> You tried Thunderbird or Windows Live Mail to verify? >> > > No, the users are using only Outlook. Should I try it with TB? It would >

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Papp Tamas
Tobias wrote: Is that a problem with other MUAs too? Or is Outlook the only affected one? You tried Thunderbird or Windows Live Mail to verify? No, the users are using only Outlook. Should I try it with TB? It would be a bit hard, because the failure does not depend on anything, I don't

Re: [Dovecot] pop3+leave messages on server

2009-12-29 Thread Tobias
On Tue, 29 Dec 2009 09:48:46 +0100, Papp Tamas wrote: > hi All, > > I have a srange problem. > > Before dovecot there was a courier imap and it worked just fine. The > client(s) are the same then before, so I think, this is an server side > problem. > > I have a user with Outlook and he uses

[Dovecot] Deliver EX_TEMPFAIL's without giving any information

2009-12-29 Thread Denis Khromov
Hi all. I've had a hard time trying to find out why deliver isn't working after I've updated dovecot from v1.11 to v1.2.8. It just gave me EX_TEMPFAIL without any info in the logs. My deliver was setuid-root. Once I've made a simple shell wrapper script for the deliver executable

[Dovecot] pop3+leave messages on server

2009-12-29 Thread Papp Tamas
hi All, I have a srange problem. Before dovecot there was a courier imap and it worked just fine. The client(s) are the same then before, so I think, this is an server side problem. I have a user with Outlook and he uses pop3 and leaves messages on server. Sometimes the messages get downl

Re: [Dovecot] dovecot-shared

2009-12-29 Thread Frank Cusack
On December 29, 2009 1:59:53 AM -0500 Timo Sirainen wrote: Yeah, that's been in todo for a while. I'd probably make dovecot-shared file have options: I was just thinking today it would be nice to have per-USER private or shared. So e.g. all users by default might share \Seen \Answered but som