Re: [Dovecot] Automatic expire on post-login

2010-11-24 Thread Antonio Perez-Aranda
Yes, -A is a typo error, because a I copy from cronjob. Really, I do doveadm -u $USER. Well, I use expungestamp if the overload is very high. When I execute doveadm -u $user many times, it's not take much time, lower than 0.1 seconds. 2010/11/24 Timo Sirainen : > On 24.11.2010, at 9.47, Antonio

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Eric Raymond
Noel Butler : > So, do we conclude from this your issue is now resolved? Possible, but not verified. If I mess with the mail system for diagnostic purposes I risk breaking it before my wife has caught up with her week's backlog of email. This would make her more unhappy than the diagnostic inform

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Noel Butler
On Wed, 2010-11-24 at 20:41 -0500, Eric Raymond wrote: > > No, but I found something relevant. I was operating under the mistaken > assumption that dovecot was an inetd plugin, the way imap servers usually > are. It isn't, which means dovecot.conf is not reread as often as I thought. > > I nee

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Stan Hoeppner
Timo Sirainen put forth on 11/24/2010 7:43 PM: > On 25.11.2010, at 1.41, Eric Raymond wrote: > >> I need to redo my diagnostics with more dovecot restarts. Is there an >> incantation analogous to "postfix reload"? > > v2.0 has "dovecot reload", but with v1.2 you need to send HUP signal to > dov

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Timo Sirainen
On 25.11.2010, at 1.41, Eric Raymond wrote: > I need to redo my diagnostics with more dovecot restarts. Is there an > incantation analogous to "postfix reload"? v2.0 has "dovecot reload", but with v1.2 you need to send HUP signal to dovecot process. Maybe Ubuntu also has /etc/init.d/dovecot rel

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Eric Raymond
Timo Sirainen : > It anyway looks to me like any changes done to dovecot.conf get > ignored, so it most likely isn't reading the expected config > file. If dovecot isn't using the default config file, it's been > given -c parameter. Does ps show dovecot process with -c pointing to > different confi

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Timo Sirainen
On 25.11.2010, at 0.53, Eric Raymond wrote: >> If you installed dovecot-postfix package, it actually uses a different >> config file (dovecot-postfix.conf or something). > > r...@grelber:/etc# aptitude search dovecot .. > Nope. In any case, if dovecot -n lies about the configuattion, that's a b

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Eric Raymond
Timo Sirainen : > On 24.11.2010, at 23.01, Eric Raymond wrote: > > > r...@grelber:/home/esr# dovecot -n > > # 1.2.9: /etc/dovecot/dovecot.conf > > # OS: Linux 2.6.32-24-generic x86_64 Ubuntu 10.04.1 LTS > > If you installed dovecot-postfix package, it actually uses a different config > file (do

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Eric Raymond
Noel Butler : > Set mail_debug=yes r...@grelber:/etc# dovecot -n # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-24-generic x86_64 Ubuntu 10.04.1 LTS log_timestamp: %Y-%m-%d %H:%M:%S login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mai

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Noel Butler
On Thu, 2010-11-25 at 00:09 +, Timo Sirainen wrote: > On 24.11.2010, at 23.01, Eric Raymond wrote: > > > r...@grelber:/home/esr# dovecot -n > > # 1.2.9: /etc/dovecot/dovecot.conf > > # OS: Linux 2.6.32-24-generic x86_64 Ubuntu 10.04.1 LTS > > If you installed dovecot-postfix package, it actu

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 23.01, Eric Raymond wrote: > r...@grelber:/home/esr# dovecot -n > # 1.2.9: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-24-generic x86_64 Ubuntu 10.04.1 LTS If you installed dovecot-postfix package, it actually uses a different config file (dovecot-postfix.conf or something)

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Noel Butler
On Wed, 2010-11-24 at 18:47 -0500, Eric Raymond wrote: > Noel Butler : > > You have omitted the INBOX keyword, change it to ... > > > > mbox:~/mail:INBOX=/var/mail/%u > > Doesn't fix the problem. New results: > > o...@grelber:/home/esr# tail /var/log/mail.err > Nov 24 18:35:07 grelber dovecot:

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Eric Raymond
Noel Butler : > You have omitted the INBOX keyword, change it to ... > > mbox:~/mail:INBOX=/var/mail/%u Doesn't fix the problem. New results: o...@grelber:/home/esr# tail /var/log/mail.err Nov 24 18:35:07 grelber dovecot: IMAP(cathy): mail_location not set and autodetection failed: Mail storag

Re: [Dovecot] IMAP aggregation and MUPDATE protocolo

2010-11-24 Thread Ernesto Revilla Derksen
Hi. 2010/11/24 Clemens Schrimpe : >> I'm planning on implementing "IMAP client" backend for lib-storage, which >> means you could create namespaces that are proxied to remote IMAP server. Or >> even make Dovecot act as a caching IMAP proxy for your real IMAP server. > > Yes, yes --- Y, p

Re: [Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Noel Butler
On Wed, 2010-11-24 at 18:01 -0500, Eric Raymond wrote: > mail_location: mbox:~/mail:/var/mail/%u You have omitted the INBOX keyword, change it to ... mbox:~/mail:INBOX=/var/mail/%u signature.asc Description: This is a digitally signed message part

[Dovecot] dovecot is confused about mail_location

2010-11-24 Thread Eric Raymond
IMAP logins via fetchmail are failing on my mailserver r...@grelber:/home/esr# tail -f /var/log/mail.err Nov 24 16:56:48 grelber dovecot: IMAP(cathy): mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/cathy Nov 24 16:56:48 grelber dovecot: IMAP(cath

Re: [Dovecot] maildir maintenance?

2010-11-24 Thread Noel Butler
On Tue, 2010-11-23 at 20:55 -0600, Brian Kroth wrote: > > I recently wrote the attached script (could probably be improved) meant > in theory to be run as a nightly cron job to do the follow: > 1) Remove old messages marked as deleted. > (I didn't really like the expunge/trash plugins the last t

[Dovecot] Director

2010-11-24 Thread Diego Damian Garcia
Hi. I am try to setup director in dovecot 2.0.7-1_123 but I don´t unserstand how this work. Have any tutorial with instructions to setup the director to autenticate users and send to the real mail servers? Sincerely Thanks. Diego.

Re: [Dovecot] IMAP aggregation and MUPDATE protocolo

2010-11-24 Thread Clemens Schrimpe
> I'm planning on implementing "IMAP client" backend for lib-storage, which > means you could create namespaces that are proxied to remote IMAP server. Or > even make Dovecot act as a caching IMAP proxy for your real IMAP server. Yes, yes --- Y, please!!! :-) Clemens

Re: [Dovecot] maildir maintenance?

2010-11-24 Thread Brian Kroth
Timo Sirainen 2010-11-24 19:04: > On 24.11.2010, at 18.59, Brian Kroth wrote: > > >>> Hi, I'm running version 1.2.15 (so no doveadm) > >> You could build Dovecot v2.0 and only use doveadm binary from it. > > > > Does it just issue the command via IMAP? No direct filesystem > > operations? > >

Re: [Dovecot] maildir maintenance?

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 18.59, Brian Kroth wrote: >>> Hi, I'm running version 1.2.15 (so no doveadm) >> You could build Dovecot v2.0 and only use doveadm binary from it. > > Does it just issue the command via IMAP? No direct filesystem > operations? It's all direct filesystem operations, no IMAP. But

Re: [Dovecot] maildir maintenance?

2010-11-24 Thread Brian Kroth
Timo Sirainen 2010-11-24 18:01: > On 24.11.2010, at 2.55, Brian Kroth wrote: > > > Hi, I'm running version 1.2.15 (so no doveadm) > > You could build Dovecot v2.0 and only use doveadm binary from it. Does it just issue the command via IMAP? No direct filesystem operations? > > I recently wrot

Re: [Dovecot] maildir maintenance?

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 2.55, Brian Kroth wrote: > Hi, I'm running version 1.2.15 (so no doveadm) You could build Dovecot v2.0 and only use doveadm binary from it. > I recently wrote the attached script (could probably be improved) meant > in theory to be run as a nightly cron job to do the follow: ..

Re: [Dovecot] mdbox nightly cronjob

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 2.29, Daniel L. Miller wrote: > Is 'doveadm expunge -A ALL DELETED' a "safe" command to issue prior to a > 'doveadm purge -A'? The "all" part isn't useful there. Also I think you need to add "mailbox '*'" parameter there to make doveadm happy. Anyway, I wouldn't run that comm

Re: [Dovecot] Managesieve + procmail

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 1.42, Lox wrote: > 2010/11/24 Lox > >> Sticky bit is set: >> >> drwxrwsr-x 4 root mail 4,0K 2010-11-24 11:44 mail >> > > Sorry that was it, chmod a+rwxt /var/mail did the trick. > > Is there any security issue with such a permission set ? Any user can create new files in

Re: [Dovecot] doveadm purge output

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 1.42, Daniel L. Miller wrote: > Hmm...went back to Thunderbird, performed 'Compact' on the INBOX - not the > Trash this time - saw significant changes in index files. Doveadm dump > output now has results too! Tried doveadm purge - I still see no output from > the -D paramet

Re: [Dovecot] zlib + mdbox

2010-11-24 Thread interfaSys sàrl
So I guess it has nothing to do with zlib then and that combination of mdbox + zlib is safe and working as expected. The only error messages I see in the logs are messages about time jumping forward. I'm using these plugins btw: # Mail processes mail_plugins = quota trash zlib fts fts_squat acl

Re: [Dovecot] Automatic expire on post-login

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 9.47, Antonio Perez-Aranda wrote: > This is the content of postlogin.sh > > #!/bin/bash > /usr/local/bin/doveadm -D expunge -A mailbox Trash savedbefore 30d > /usr/local/bin/doveadm -D expunge -A mailbox MarcaSpam savedbefore 1w > exec $* -A means it goes through all users, whi

Re: [Dovecot] dovecot/imap-login TLS?

2010-11-24 Thread Timo Sirainen
On 24.11.2010, at 11.53, Ralf Hildebrandt wrote: > * Timo Sirainen : >> On Sun, 2010-11-21 at 20:23 +0100, Ralf Hildebrandt wrote: >>> # ps auxwww|egrep -i imap-login >>> dovenull 11879 1.4 0.9 83484 77656 ?SNov20 19:12 >>> dovecot/imap-login [822 connections (822 TLS)] >>> >>> W

Re: [Dovecot] zlib + mdbox

2010-11-24 Thread Timo Sirainen
Are you talking about imap-zlib plugin = COMPRESS extension? Just using zlib plugin to compress mails shouldn't be visible to clients in any way. On 24.11.2010, at 13.30, interfaSys sàrl wrote: > I am. > The only issue I'm seeing is Blackberry devices that can't idle after a > while. > It was th

Re: [Dovecot] IMAP aggregation and MUPDATE protocolo

2010-11-24 Thread Willie Gillespie
Timo Sirainen wrote: I'm planning on implementing "IMAP client" backend for lib-storage, which means you could create namespaces that are proxied to remote IMAP server. Or even make Dovecot act as a caching IMAP proxy for your real IMAP server. This would allow for some amazing setups.

Re: [Dovecot] IMAP aggregation and MUPDATE protocolo

2010-11-24 Thread Timo Sirainen
(Second time already within a few days when I accidentally hit reply rather than reply-to-all and then wonder why the message isn't showing up.) On 24.11.2010, at 14.16, Ernesto Revilla Derksen wrote: > We're trying to find a solutions for aggregating data from several > backends which are: > *

Re: [Dovecot] Troube with GSSAPI auth

2010-11-24 Thread Willie Gillespie
asd dsa wrote: Maybe auth_gssapi_hostname should = melchior.td.pmz.com.ua since that's what is in your keytab. Yep, it helps, but ive got another error: auth: Info: gssapi(?,192.168.1.2): While processing incoming data: Unspecified GSS failure. Minor code may provide more information auth: I

[Dovecot] (summarized) wishlist :-)

2010-11-24 Thread Clemens Schrimpe
Hello All (and Timo in particular :-) -- While reading through some of the conversations on this list over the past two weeks or so, I always thought "how would particular problem affect you and how would you address it in your environment?". This results in a few suggestions, or "thing to wis

Re: [Dovecot] IMAP aggregation and MUPDATE protocolo

2010-11-24 Thread Ernesto Revilla Derksen
Thanx Timo. We're trying to find a solutions for aggregating data from several backends which are: * normal mail IMAP * repositories like Alfresco which offer an IMAP view for repository documents * issue trackers (issue + attachmentes + timeline) Credentials would be the same for all backends

[Dovecot] proxy (director) and destination ports

2010-11-24 Thread Oliver Eales
Hello, i am delivering Mail from postfix via LMTP to dovecot. I am using the director also for LMTP. As long as i connect to the dovecot LMTP TCP socket from postfix everything is working. postfix main.cf: virtual_transport= lmtp:localhost:30025 But when i try to switch to the local socket

Re: [Dovecot] zlib + mdbox

2010-11-24 Thread interfaSys sàrl
I am. The only issue I'm seeing is Blackberry devices that can't idle after a while. It was the same with Maildir, so maybe it's a zlib issue or something else all together. > > Message: 2 > Date: Tue, 23 Nov 2010 18:19:18 -0800 > From: "Daniel L. Miller" > Subject: [Dovecot] zlib + mdbox > To:

Re: [Dovecot] dovecot/imap-login TLS?

2010-11-24 Thread Ralf Hildebrandt
* Timo Sirainen : > On Sun, 2010-11-21 at 20:23 +0100, Ralf Hildebrandt wrote: > > # ps auxwww|egrep -i imap-login > > dovenull 11879 1.4 0.9 83484 77656 ?SNov20 19:12 > > dovecot/imap-login [822 connections (822 TLS)] > > > > What exactly is TLS in this context? > > All connectio

[Dovecot] auth on tcp socket?

2010-11-24 Thread Hajo Locke
Hello, is it possible to provide service auth on tcp-socket instead of unix-socket? I changed my conf and dovecot 2.0.5 is restarting but on telnet test it throws: dovecot: auth: Fatal: getsockname(12) failed: Socket operation on non-socket Want to separate smtp and imap to different servers but

Re: [Dovecot] Automatic expire on post-login

2010-11-24 Thread Robert Schetterer
Am 24.11.2010 11:31, schrieb Antonio Perez-Aranda: > I can't use a cronjob because is a customer requeriment and the time > to expunge over 200.000 accounts over nfs can take a log time. whatever, if really use post-login a find rm might be cheaper i.e like, script optimized to your needs http:

Re: [Dovecot] Automatic expire on post-login

2010-11-24 Thread Antonio Perez-Aranda
I can't use a cronjob because is a customer requeriment and the time to expunge over 200.000 accounts over nfs can take a log time. 2010/11/24 Robert Schetterer : > Am 24.11.2010 09:57, schrieb Antonio Perez-Aranda: >> I need to clear two folder from Maildir at login. >> >> Exatly, delete all mail

Re: [Dovecot] change subject with dovecot+sieve

2010-11-24 Thread Esteban Torres Rodríguez
Timo Sirainen wrote: On Tue, 2010-11-23 at 18:05 +0100, Esteban Torres Rodríguez wrote: I'm using to make the filter sieve and would like to reject filter and change the subject of emails that filter. I have created the filter and it works correctly, but reject comes with the following subject:

Re: [Dovecot] Automatic expire on post-login

2010-11-24 Thread Robert Schetterer
Am 24.11.2010 09:57, schrieb Antonio Perez-Aranda: > I need to clear two folder from Maildir at login. > > Exatly, delete all mails older than 30 days on Trash and 1 day on spam folder. > > I'm using dovecot 2.0 and I think about use a post-login script > calling doveadm -u $user expunge but post

Re: [Dovecot] Automatic expire on post-login

2010-11-24 Thread Antonio Perez-Aranda
Well, I jet get a valid config for a post-login script as is shown in http://wiki2.dovecot.org/PostLoginScripting This is the content of dovecot.conf: service imap { executable = imap imap-postlogin } service imap-postlogin { executable = script-login /postlogin.sh user = root unix_l

[Dovecot] Automatic expire on post-login

2010-11-24 Thread Antonio Perez-Aranda
I need to clear two folder from Maildir at login. Exatly, delete all mails older than 30 days on Trash and 1 day on spam folder. I'm using dovecot 2.0 and I think about use a post-login script calling doveadm -u $user expunge but post-login scripts in dovecot 2.0 are very complex Is there possib

Re: [Dovecot] Troube with GSSAPI auth

2010-11-24 Thread asd dsa
>Maybe auth_gssapi_hostname should = melchior.td.pmz.com.ua since that's >what is in your keytab. Yep, it helps, but ive got another error: auth: Info: gssapi(?,192.168.1.2): While processing incoming data: Unspecified GSS failure. Minor code may provide more information auth: Info: gssapi(?,19