Re: [Dovecot] How can I configure dovecot as gmail imap proxy

2010-01-19 Thread Supratik Goswami
Here the proxy server should authenticate the user. If the user is in the list of authenticated users then dovecot will allow to connect to imap.gmail.com. Consider a scenario where a client tries to read his mailbox from imap.gmail.com:993. Client executes the command "mutt -f imaps://imap.gmail.

Re: [Dovecot] LDA and POP3/IMAP user_query

2010-01-19 Thread Kirill Miazine
* Michael [2010-01-20 10:02]: [...] > As long as the query can be different for LDA vs. POP3/Imap is good for > me thanks. > > Having said that if there is no reason not to make it a configurable > option for LDA vs. POP3 vs. Imap may as well go the full way? Just of curiosity, have you tried r

Re: [Dovecot] shared namespaces with common prefix prefix

2010-01-19 Thread Frank Cusack
On January 19, 2010 2:54:35 PM +0200 Timo Sirainen wrote: Right. Another thing that seems a bit scary is that you sometimes use %n and sometimes %u. If %n is enough to identify the user, maybe it should be consistently used everywhere? That was intentional.

Re: [Dovecot] LDA and POP3/IMAP user_query

2010-01-19 Thread Michael
On Wed, 20 Jan 2010 01:49:26 you wrote: > On Fri, 2010-01-15 at 12:12 +1300, Michael wrote: > > How do I get IMAP+POP3 vs. LDA to use different user_query statements? > > Like Kirill said, you can use %s for it. But sure, it'll make the query > bigger and uglier. Hopefully I'll manage to make v2.0

Re: [Dovecot] Dovecot 2.0 beta imap session crash report

2010-01-19 Thread wenjie zheng
On Wed, Jan 13, 2010 at 3:07 AM, Timo Sirainen wrote: > On 12.1.2010, at 20.51, wenjie zheng wrote: > >> Jan 12 12:33:31 mail4a dovecot: imap(testmail...@dev.p4nt5.com): >> open() failed with index file (null): Bad address >> Jan 12 12:33:31 mail4a dovecot: master: service(imap): child 20867 >> ki

Re: [Dovecot] Auto Discard Vacation Sieve in a date

2010-01-19 Thread Pascal Volk
On 01/19/2010 02:39 PM Andrés Yacopino wrote: > I have deploy an environment with pigeon sieve, managesieve, dovecot, > squirrelmail and avelsieve plugin. > The vacation messages are working fine. > I am looking for a method to discard vacation messages in some date, > when the user returns. > > ¿

Re: [Dovecot] Auto discard sieve vacation messages

2010-01-19 Thread Stephan Bosch
Andrés Yacopino wrote: I have deploy an environment with pigeon sieve, managesieve, dovecot, squirrelmail and avelsieve plugin. The vacation messages are working fine. I am looking for a method to discard vacation messages in some date, when the user returns. Has somebody looked in this feature?

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

2010-01-19 Thread Timo Sirainen
On Wed, 2009-12-30 at 06:44 +0100, Matthias Rieber wrote: > 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 co

Re: [Dovecot] virtual mailbox / INTHREAD use case, issues, questions

2010-01-19 Thread Timo Sirainen
On Wed, 2010-01-06 at 11:50 -0500, David Abrahams wrote: > At Wed, 6 Jan 2010 14:17:40 +0200, > Timo Sirainen wrote: > > > > On 4.1.2010, at 20.47, David Abrahams wrote: > > > > > 1. I had to manually create the virtual folder for all my users or > > > they couldn't access their mail at all. I

Re: [Dovecot] Log the virtual email address and not the local account - dovecot 1.2.2 w/ MySQL

2010-01-19 Thread Timo Sirainen
On Tue, 2010-01-19 at 15:54 +0200, Timo Sirainen wrote: > On Wed, 2010-01-06 at 09:38 -0600, Bill wrote: > > I recently started using dovecot and have it working well but I have one > > item I haven't been able to find an answer for. I am using MySQL with > > Dovecot for authentication with my vi

Re: [Dovecot] Log the virtual email address and not the local account - dovecot 1.2.2 w/ MySQL

2010-01-19 Thread Timo Sirainen
On Wed, 2010-01-06 at 09:38 -0600, Bill wrote: > I recently started using dovecot and have it working well but I have one item > I haven't been able to find an answer for. I am using MySQL with Dovecot for > authentication with my virtual email customers. When the user logs in and > checks email

Re: [Dovecot] fts squat non-english search for 2 words

2010-01-19 Thread Timo Sirainen
On Thu, 2010-01-07 at 17:07 +0700, vus...@test123.ru wrote: > Timo, many thanx for this! Finally I installed dovecot 1.2.9 from debian > backports. Your fix have solved the problem. But look, it happens both for > English and Russian emails: > 1) I have testing mailbox with ~27000 emails. Big and

[Dovecot] Auto discard sieve vacation messages

2010-01-19 Thread Andrés Yacopino
I have deploy an environment with pigeon sieve, managesieve, dovecot, squirrelmail and avelsieve plugin. The vacation messages are working fine. I am looking for a method to discard vacation messages in some date, when the user returns. Has somebody looked in this feature? Thanks a lot, -- Andr

[Dovecot] Auto Discard Vacation Sieve in a date

2010-01-19 Thread Andrés Yacopino
I have deploy an environment with pigeon sieve, managesieve, dovecot, squirrelmail and avelsieve plugin. The vacation messages are working fine. I am looking for a method to discard vacation messages in some date, when the user returns. ¿Has somebody looked in this feature? Thanks a lot, -- An

Re: [Dovecot] Oracle SQL driver

2010-01-19 Thread Timo Sirainen
On Wed, 2010-01-06 at 15:09 +0300, Alexander Bukharov wrote: > AFAIK there is no possibility to use C types in PREPARE statement. What about elsewhere? Looking at my old code I see for example: int main(int argc, char *argv[]) .. EXEC SQL CONNECT :*argv; So it looks like in at least some

Re: [Dovecot] virtual namespace question

2010-01-19 Thread Timo Sirainen
On Sun, 2010-01-10 at 11:41 +0100, Josephus wrote: > Hi, > > I'm wondering if it is possible to create a virtual namespace on a > prefix other than "virtual/". Sure. > My goal is to mix IMAP folders with > virtual folders on the same folder level (prefix = ""). This is a different question t

Re: [Dovecot] Corrupted index cache file still occurs with Dovecot 1.2.9

2010-01-19 Thread Timo Sirainen
On Mon, 2010-01-11 at 11:07 +, Stuart Rowan wrote: > Timo Sirainen wrote, on 28/07/09 19:24: > > On Tue, 2009-07-28 at 19:17 +0100, Stuart Rowan wrote: > >> dovecot: 2009-07-28 10:23:16 Error: IMAP(strr): Corrupted index cache file > >> /home/local/strr/Maildir/dovecot.index.cache: record cont

Re: [Dovecot] Best way of dealing with Case-Sensitive Issues in Dovecot

2010-01-19 Thread Timo Sirainen
On Tue, 2010-01-12 at 09:54 -0500, Mario Antonio wrote: > In order to deal with case-sensitive issues, I am thinking to use the > variable %L (adding it to my current configs --as suggested before by > other users in this list) in the configuration files in this way: > > auth default: > use

Re: [Dovecot] expire plugin doesn't find mail location

2010-01-19 Thread Timo Sirainen
On Tue, 2010-01-12 at 17:02 +0100, Roland Rosenfeld wrote: > But the 'mail' attribute from userdb is still ignored by expire. Well, I'm getting a bit tired of fixing all the issues with expire-tool. Since you found a working solution for yourself, I won't do anything about this for now. v2.0 fixes

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

2010-01-19 Thread Timo Sirainen
Does procmail still log the same thing about "error writing to.."? Maybe a slightly different script: #!/bin/sh file=/tmp/deliver.`date +%s`.$$ cd /tmp cat > $file ulimit -c unlimited /opt/dovecot/libexec/dovecot/deliver $* < $file code=$? rm $file if [ $code != 0 ]; then echo 'deliver failed'

Re: [Dovecot] shared namespaces with common prefix prefix

2010-01-19 Thread Timo Sirainen
On Thu, 2010-01-14 at 14:22 -0500, Frank Cusack wrote: > namespace public { > separator = / > prefix = zz/shared/ > } > # to share other employees mailboxes (term'd or admin access) > namespace shared { > separator = / > prefix = zz/shared/%%u/ > } > > Since I added the shared namespace, I

Re: [Dovecot] shared namespaces with common prefix prefix

2010-01-19 Thread Timo Sirainen
On Thu, 2010-01-14 at 14:28 -0500, Frank Cusack wrote: > On January 14, 2010 2:22:08 PM -0500 Frank Cusack > wrote: > ># to share other employees mailboxes (term'd or admin access) > > namespace shared { > > separator = / > > prefix = zz/shared/%%u/ > > location = maildir:/var/maildir/%%n:I

Re: [Dovecot] How can I configure dovecot as gmail imap proxy

2010-01-19 Thread Timo Sirainen
On Fri, 2010-01-15 at 12:07 +0530, Supratik Goswami wrote: > I want to configure dovecot as gmail imap proxy. If any system in my network > wants to connect to imap.gmail.com,993 it has to go through the dovecot > proxy. > > Is it possible to setup such environment with dovecot? If yes, can you >

Re: [Dovecot] LDA and POP3/IMAP user_query

2010-01-19 Thread Timo Sirainen
On Fri, 2010-01-15 at 12:12 +1300, Michael wrote: > How do I get IMAP+POP3 vs. LDA to use different user_query statements? Like Kirill said, you can use %s for it. But sure, it'll make the query bigger and uglier. Hopefully I'll manage to make v2.0 support something like: protocol lda { userdb

Re: [Dovecot] Update Dovecot index files on maildrop delivery?

2010-01-19 Thread Timo Sirainen
On Fri, 2010-01-15 at 14:56 +, Kārlis Repsons wrote: > > In this case, I'd leave things as they are and not worry about > > indexes. When the mail folder is opened next time dovecot will notice > > the new messages and update the indexes. > > But I think, client MUA will not be timely notified

Re: [Dovecot] Socket permission 432/384 and dovecot.conf

2010-01-19 Thread Timo Sirainen
On Tue, 2010-01-19 at 13:29 +0100, Steffen Kaiser wrote: > > and you run "dovecot -n" you'll see > > > > mode: 432 > > > > I'm wondering about the mode "432" - how is this value calculated? > > 432 is the decimal representation (radix 10), 0660 is the octal one (radix > 8). Right. And I finally

Re: [Dovecot] Socket permission 432/384 and dovecot.conf

2010-01-19 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 19 Jan 2010, Seba wrote: Sorry for that question but: when you set in dovecot.conf this for example: mode = 0660 and you run "dovecot -n" you'll see mode: 432 I'm wondering about the mode "432" - how is this value calculated? 432

Re: [Dovecot] Dovecot Proxy and environment variables

2010-01-19 Thread Timo Sirainen
On Fri, 2010-01-15 at 17:27 +0100, BaQs wrote: > Ok, found what happens > > > I only catch public IP when using imap, not pop3. > > Any way to catch public IP using pop3 as well ? No. Hmm. I hadn't thought about this for a while. It would require some new XFORWARD command that sends it. But whe

[Dovecot] Socket permission 432/384 and dovecot.conf

2010-01-19 Thread Seba
Sorry for that question but: when you set in dovecot.conf this for example: socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } and you run "dovecot -n" you'll see client: path: /var/spool/postfix/private/auth mo

Re: [Dovecot] Files Moving From /New to /Cur

2010-01-19 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 18 Jan 2010, Tony Rutherford wrote: We have our own delivery pushing messages to the /new and then /cur folder eventually. When I have an IMAP client attached, there is apparently some sort of race going on. I believe that Dovecot is movin