[Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT

   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another server 
and it's working fine.

I'm out of ideas.

Could someone has managed to use sieve scripts with virtual users ?

Thanks :)

   Guillaume


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Alex

Guillaume HILT wrote:

Hi,


   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another server 
and it's working fine.

I'm out of ideas.



Did you compile dovecot with sieve in USE flag?



Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT



Alex a écrit :

Guillaume HILT wrote:

Hi,


   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.



Did you compile dovecot with sieve in USE flag?


As I said 'm trying to use sieve (which has been compiled with 
Dovecot), yes :)


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Alex

Guillaume HILT wrote:



Alex a écrit :

Guillaume HILT wrote:

Hi,


   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.



Did you compile dovecot with sieve in USE flag?


As I said 'm trying to use sieve (which has been compiled with 
Dovecot), yes :)

:)
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 and 
install; it solve my issue.




Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT



Alex a écrit :

Guillaume HILT wrote:



Alex a écrit :

Guillaume HILT wrote:

Hi,


   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but 
it doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using 
the sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see 
anything about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.



Did you compile dovecot with sieve in USE flag?


As I said 'm trying to use sieve (which has been compiled with 
Dovecot), yes :)

:)
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 and 
install; it solve my issue.


When migrating from 1.1.7 to 1.1.10-r1, did you had any issues or 
configuration update to do ?
Since i'm pretty busy right now, i don't want to create a problem with 
our mailserver :)


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Alex

Guillaume HILT wrote:



Alex a écrit :

Guillaume HILT wrote:



Alex a écrit :

Guillaume HILT wrote:

Hi,


   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but 
it doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using 
the sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see 
anything about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.



Did you compile dovecot with sieve in USE flag?


As I said 'm trying to use sieve (which has been compiled with 
Dovecot), yes :)

:)
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 and 
install; it solve my issue.


When migrating from 1.1.7 to 1.1.10-r1, did you had any issues or 
configuration update to do ?
Since i'm pretty busy right now, i don't want to create a problem with 
our mailserver :)


Can you paste here a grep sieve from your /var/log/dovecot-deliver.log?

==

The upgrade process is quite easy, nothing to change in dovecot config.
Before upgrade I suggest to do this action:

- backup with tar your /etc/dovecot dir;
- emerge -B dovecot (so you have a binary copy for your working version)
- echo net-mail/dovecot ~arch  /etc/portage/package.keywords
- emerge -av dovecot

when merge is finished *don't* do etc-update.

If something goes wrong you will come back to 1.1.7 without problem. 
Just recover your backup.


my2cents
:)


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT



Alex a écrit :

Guillaume HILT wrote:



Alex a écrit :

Guillaume HILT wrote:



Alex a écrit :

Guillaume HILT wrote:

Hi,


   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin 
to manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) 
but it doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using 
the sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see 
anything about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.



Did you compile dovecot with sieve in USE flag?


As I said 'm trying to use sieve (which has been compiled with 
Dovecot), yes :)

:)
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 
and install; it solve my issue.


When migrating from 1.1.7 to 1.1.10-r1, did you had any issues or 
configuration update to do ?
Since i'm pretty busy right now, i don't want to create a problem 
with our mailserver :)


Can you paste here a grep sieve from your /var/log/dovecot-deliver.log?
The fact is, even with log_path and info_log_path enabled in the lda 
section, i don't have anything about sieve in my logs.


==

The upgrade process is quite easy, nothing to change in dovecot config.
Before upgrade I suggest to do this action:

- backup with tar your /etc/dovecot dir;
- emerge -B dovecot (so you have a binary copy for your working version)
- echo net-mail/dovecot ~arch  /etc/portage/package.keywords
- emerge -av dovecot

when merge is finished *don't* do etc-update.

If something goes wrong you will come back to 1.1.7 without problem. 
Just recover your backup.


my2cents
:)


Thanks :)


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Roderick A. Anderson



Guillaume HILT wrote:

   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another server 
and it's working fine.

I'm out of ideas.

Could someone has managed to use sieve scripts with virtual users ?


I have.

CentOS 5.2
dovecot-1.1.11-0_90.el5
postfix-2.3.3-2.1.el5_2
dovecot-sieve-1.1.6-9.el5

What is your plugin {} setting.  I have

plugin {
   sieve = /var/mail/vhosts/%d/%n/dovecot.sieve
}

Rod
--


Thanks :)

   Guillaume


Re: [Dovecot] Autocreate plugin

2009-02-20 Thread Harry Lachanas

Harry Lachanas wrote:
I've tried to use the autocreate plugin in order to autosubscribe 
users  to public namespaces.


namespace public {
   prefix = Public2/
   separator = /
   location = 
maildir:/var/Public2:INDEX=~/Maildir/p-idx:CONTROL=~/Maildir/p-crtl

   hidden=no
   subscriptions=no
   inbox = no
   list=no
}

with

plugin {
 autocreate = Spam
 autosubscribe = Spam
 autosubscribe1 = Public2/News
 autosubscribe2 = Public2/Shorewall
}


the plugin works alright  with the  Spam  maildir,
but not with the namespaces.
Is this possible ???

Thanks
Harry.




Problem solved 

Thanks for no replying 

I makes me think of it a bit more 

Harry



Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT


Roderick A. Anderson a écrit :



Guillaume HILT wrote:

   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.

Could someone has managed to use sieve scripts with virtual users ?


I have.

CentOS 5.2
dovecot-1.1.11-0_90.el5
postfix-2.3.3-2.1.el5_2
dovecot-sieve-1.1.6-9.el5

What is your plugin {} setting.  I have

sieve = /home/vmail/%d/%n/.dovecot.sieve


plugin {
   sieve = /var/mail/vhosts/%d/%n/dovecot.sieve
}

Rod


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Roderick A. Anderson

Guillaume HILT wrote:


Roderick A. Anderson a écrit :



Guillaume HILT wrote:

   Hi,

I'm using dovecot 1.1.7 on Gentoo with Postfix and PostfixAdmin to 
manage my virtual users.
I'm trying to use sieve (which has been compiled with Dovecot) but it 
doesn't work.


I added cmusieve in the lda protocol :
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda

My maildir scheme is : /home/vmail/%d/%n/.maildir
The sieve file is in /home/vmail/%d/%n/.dovecot.sieve (i'm using the 
sieve variable in the plugin section).

I also tried in /home/vmail/%d/%n/.maildir/.dovecot.sieve.
Then I tried in /var/sieve-scripts/%u.sieve.
None of these solutions worked :x

I enabled all the debug options in dovecot, and i can't see anything 
about sieve in my logs.


I'm using the same configuration without virtual users on another 
server and it's working fine.

I'm out of ideas.

Could someone has managed to use sieve scripts with virtual users ?


I have.

CentOS 5.2
dovecot-1.1.11-0_90.el5
postfix-2.3.3-2.1.el5_2
dovecot-sieve-1.1.6-9.el5

What is your plugin {} setting.  I have



sieve = /home/vmail/%d/%n/.dovecot.sieve


Did you already send the output from dovecot -n?

Also look for a .dovecot-sieve.err file


Rod
--


plugin {
   sieve = /var/mail/vhosts/%d/%n/dovecot.sieve
}

Rod


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT

I don't have any sieve error file.

# dovecot -n
# 1.1.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.28-gentoo-r1--std-ipv4-64 x86_64 Gentoo Base System 
release 1.12.11.1 ext3

base_dir: /var/run/dovecot/
log_path: /var/log/mail/dovecot.log
info_log_path: /var/log/mail/dovecot.info
protocols: imap imaps pop3 pop3s
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(pop3): *:995
ssl_cert_file: /etc/ssl/dovecot/server.pem
ssl_key_file: /etc/ssl/dovecot/server.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
first_valid_uid: 1001
last_valid_uid: 1001
mail_privileged_group: mail
mail_uid: vmail
mail_gid: mail
mail_location: maildir:/home/vmail/%d/%n/.maildir
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): antispam
mail_plugins(imap): antispam
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
 user: nobody
 gssapi_hostname: mail.myserver.com
 passdb:
   driver: sql
   args: /etc/dovecot/dovecot-sql.conf
 userdb:
   driver: sql
   args: /etc/dovecot/dovecot-sql.conf
 socket:
   type: listen
   client:
 path: /var/spool/postfix/private/auth
 mode: 432
 user: postfix
 group: postfix
   master:
 path: /var/run/dovecot/auth-master
 mode: 432
 user: vmail
 group: mail
plugin:
 quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
 quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80
 quota: maildir
 antispam_signature: X-DSPAM-Signature
 antispam_signature_missing: error
 antispam_trash: Trash
 antispam_spam: Spam
 antispam_dspam_binary: /usr/bin/dspam
 sieve: /home/vmail/%d/%n/.dovecot.sieve
dict:
 quota: mysql:/etc/dovecot/dovecot-dict-quota.conf


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT

Upgrade done and running, but it didn't fixed the problem :x

Alex a écrit :
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 
and install; it solve my issue.


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Alex

Guillaume HILT wrote:

Upgrade done and running, but it didn't fixed the problem :x

Alex a écrit :
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 
and install; it solve my issue.


Do you see anything in your log?


Re: [Dovecot] v1.2 can't set ACL to empty string

2009-02-20 Thread Bernhard Herzog
On 18.02.2009, Sascha Wilde wrote:
 according to RfC4314 the rights argument to the setacl command might be
 an empty string (zero right characters):

 The third argument is a string containing an optional plus (+) or
 minus (-) prefix, followed by zero or more rights characters.

 existing clients (horde in particular) actually use this to remove all
 rights from an user.

 Currently dovecot 1.2 does not accept an empty rights string as argument
 to setacl.  Bernhard Herzog will look into this.

Below is a patch that fixes this.  SETACL with an empty string as rights will 
be equivalent to DELETEACL with the same identifier.

While testing this, I noticed two other problems in the imap-acl plugin, both 
related to negative ACL entries.  If an ACL contains both negative and 
positive entries for the same identifier, no space is output in the the 
GETACL response, leading to something like e.g.

* ACL INBOX/foo someuser lrs-someuser w 

The second problem is that the - is not inside the double quotes.

  Bernhard

Here's the patch (not an attachment to avoid a mailman bug that breaks 
signatures):


diff -r 13e1c379ab63 src/plugins/imap-acl/imap-acl-plugin.c
--- a/src/plugins/imap-acl/imap-acl-plugin.cThu Feb 19 13:08:50 2009 -0500
+++ b/src/plugins/imap-acl/imap-acl-plugin.cFri Feb 20 17:08:33 2009 +0100
@@ -375,7 +375,7 @@ static bool cmd_setacl(struct client_com
bool negative = FALSE;
 
if (!client_read_string_args(cmd, 3, mailbox, identifier, rights) ||
-   *identifier == '\0' || *rights == '\0') {
+   *identifier == '\0') {
client_send_command_error(cmd, Invalid arguments.);
return TRUE;
}
@@ -414,7 +414,19 @@ static bool cmd_setacl(struct client_com
if (box == NULL)
return TRUE;
 
-   if (negative) {
+   if (update.rights.rights[0] == NULL) {
+   if (negative) {
+   update.modify_mode = 0;
+   update.rights.rights = NULL;
+   update.neg_modify_mode = ACL_MODIFY_MODE_CLEAR;
+   update.rights.neg_rights = NULL;
+   } else {
+   update.modify_mode = ACL_MODIFY_MODE_CLEAR;
+   update.rights.rights = NULL;
+   update.neg_modify_mode = 0;
+   update.rights.neg_rights = NULL;
+   }
+   } else if (negative) {
update.neg_modify_mode = update.modify_mode;
update.modify_mode = ACL_MODIFY_MODE_REMOVE;
update.rights.neg_rights = update.rights.rights;



-- 
Bernhard Herzog  |  ++49-541-335 08 30  |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


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


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Roderick A. Anderson



Guillaume HILT wrote:

I don't have any sieve error file.


Do you have and messages in the dovecot (or postfix) log files that 
relate to 'sieve'?


Here is the one I got when I'd forgotten to install dovecot-sieve (yum 
or rpm)


deliver(i...@mydomain.com): Feb 03 08:39:27 Fatal: Plugin
 cmusieve not found from directory /usr/lib/dovecot/lda

And this after I installed dovecot-sieve and it was working for another 
account.


deliver(raand...@mydomain.com): Feb 20 08:47:25 Info: cmusieve: 
Executing script /var/mail/vhosts/mydomain.com/raanders/dovecot.sievec


And then this if there is no dovecot.sieve file (I don't hide mine like 
in the examples as this is a virtual mailbox server.)


deliver(i...@aesoft-sbcs.com): Feb 17 13:42:42 Info: cmusieve:
/var/mail/vhosts/mydomain.com/info/dovecot.sieve doesn't exist


Rod
--


# dovecot -n
# 1.1.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.28-gentoo-r1--std-ipv4-64 x86_64 Gentoo Base System 
release 1.12.11.1 ext3

base_dir: /var/run/dovecot/
log_path: /var/log/mail/dovecot.log
info_log_path: /var/log/mail/dovecot.info
protocols: imap imaps pop3 pop3s
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(pop3): *:995
ssl_cert_file: /etc/ssl/dovecot/server.pem
ssl_key_file: /etc/ssl/dovecot/server.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
first_valid_uid: 1001
last_valid_uid: 1001
mail_privileged_group: mail
mail_uid: vmail
mail_gid: mail
mail_location: maildir:/home/vmail/%d/%n/.maildir
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): antispam
mail_plugins(imap): antispam
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
 user: nobody
 gssapi_hostname: mail.myserver.com
 passdb:
   driver: sql
   args: /etc/dovecot/dovecot-sql.conf
 userdb:
   driver: sql
   args: /etc/dovecot/dovecot-sql.conf
 socket:
   type: listen
   client:
 path: /var/spool/postfix/private/auth
 mode: 432
 user: postfix
 group: postfix
   master:
 path: /var/run/dovecot/auth-master
 mode: 432
 user: vmail
 group: mail
plugin:
 quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
 quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80
 quota: maildir
 antispam_signature: X-DSPAM-Signature
 antispam_signature_missing: error
 antispam_trash: Trash
 antispam_spam: Spam
 antispam_dspam_binary: /usr/bin/dspam
 sieve: /home/vmail/%d/%n/.dovecot.sieve
dict:
 quota: mysql:/etc/dovecot/dovecot-dict-quota.conf


Re: [Dovecot] over quota + antispam crash

2009-02-20 Thread Johannes Berg
Thanks for the patch, can you check whether it works with just the if
(dest_mail)?

johannes


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


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume HILT

# /etc/init.d/dovecot restart
* Service dovecot stopping
* Service dovecot stopped
* Service dovecot starting
ILoading modules from directory: /usr/lib/dovecot/imap
IModule loaded: /usr/lib/dovecot/imap/lib90_antispam_plugin.so
IEffective uid=65534, gid=65534, home=/tmp
* Service dovecot started

Why don't I see cmusieve ?

Still nothing about sieve in the logs ...

Roderick A. Anderson a écrit :



Guillaume HILT wrote:

I don't have any sieve error file.


Do you have and messages in the dovecot (or postfix) log files that 
relate to 'sieve'?


Here is the one I got when I'd forgotten to install dovecot-sieve (yum 
or rpm)


deliver(i...@mydomain.com): Feb 03 08:39:27 Fatal: Plugin
 cmusieve not found from directory /usr/lib/dovecot/lda

And this after I installed dovecot-sieve and it was working for 
another account.


deliver(raand...@mydomain.com): Feb 20 08:47:25 Info: cmusieve: 
Executing script /var/mail/vhosts/mydomain.com/raanders/dovecot.sievec


And then this if there is no dovecot.sieve file (I don't hide mine 
like in the examples as this is a virtual mailbox server.)


deliver(i...@aesoft-sbcs.com): Feb 17 13:42:42 Info: cmusieve:
/var/mail/vhosts/mydomain.com/info/dovecot.sieve doesn't exist


Rod


Re: [Dovecot] over quota + antispam crash

2009-02-20 Thread Stéphane Cottin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johannes Berg a écrit :
 Thanks for the patch, can you check whether it works with just the if
 (dest_mail)?
 

It doesn't work

the return -1 is inspired from the end of quota_save_init function (in
src/plugins/quota/quota-storage.c)

the if(dest_mail) is not in quota_save_init.
it may be unnecessary.

Stéphane

 johannes

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkme5AcACgkQNgQUYqHIqqs7vACgjNp27Pf+Hc+9v2GK0NKRXyKC
BjUAn0MApH6xBjw+FHCOCT693rhGYduT
=kAgf
-END PGP SIGNATURE-
begin:vcard
fn;quoted-printable:St=C3=A9phane Cottin
n;quoted-printable:Cottin;St=C3=A9phane
org:VIXNS
adr:;;172 avenue de toulon;Marseille;;13010;France
email;internet:stephane.cot...@vixns.com
x-mozilla-html:FALSE
url:http://www.vixns.com
version:2.1
end:vcard



Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Guillaume Hilt


Alex a écrit :

Guillaume HILT wrote:

Upgrade done and running, but it didn't fixed the problem :x

Alex a écrit :
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 
and install; it solve my issue.


Do you see anything in your log?

Nothing about sieve.


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Roderick A. Anderson



Guillaume Hilt wrote:


Alex a écrit :

Guillaume HILT wrote:

Upgrade done and running, but it didn't fixed the problem :x

Alex a écrit :
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 
and install; it solve my issue.


Do you see anything in your log?

Nothing about sieve.


Interestingly enough there appear to be some values in the dovecot.conf 
that don't show up with (when I try in on my system) a dovecot -n.  I 
must admit I'm surprised everything _seems_ to be working as I've had 
some formatting issues in the dovecot.conf file


Anyway; specifically the lda stuff.

Here's mine slightly munged.

protocol lda {
  log_path = /var/log/dovecot/dovecot-deliver.log
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = postmas...@mydomain.com
  hostname = mx0.mydomain.com
  mail_plugins = cmusieve
  mail_plugin_dir = /usr/lib/dovecot/lda
}


Rod
--



Re: [Dovecot] over quota + antispam crash

2009-02-20 Thread Allan Cassaro
On Thu, Feb 19, 2009 at 8:57 AM, Stéphane Cottin
stephane.cot...@vixns.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Stéphane Cottin a écrit :
 Hi,

 I am using dovecot 1.1.11 , quota, imap_quota  antispam plugins.

 Dovecot crashes when saving a message to the Sent maildir and the
 account is over quota.

 gdb trace attached.


 Stéphane Cottin

All day long without segfaults!!! :D
Many thanks!!


[Dovecot] GUI/WUI for creating (common) sieve scripts?

2009-02-20 Thread Roderick A. Anderson
Anyone aware of a Web User Interface or GUI to allow users to create 
simple/common-type sieve scripts?


I found the sieve testing and have used it as I play; plus mangesieve 
(and Net:ManageSieve.pm) but want to allow users to build so some 
clicking and maybe a little typing and then end up with some filters.


So before I go invent this wheel I'd like to know what others are doing?


TIA,
Rod
--


Re: [Dovecot] GUI/WUI for creating (common) sieve scripts?

2009-02-20 Thread Peter Lindgren

Roderick A. Anderson skrev:
Anyone aware of a Web User Interface or GUI to allow users to create 
simple/common-type sieve scripts?

So before I go invent this wheel I'd like to know what others are doing?


For Thunderbird, there's a plugin (I haven't tested):

http://sieve.mozdev.org/

/Peter
--
Peter Lindgren
http://www.norrskenkonsult.com


Re: [Dovecot] GUI/WUI for creating (common) sieve scripts?

2009-02-20 Thread Seth Mattinen
Peter Lindgren wrote:
 Roderick A. Anderson skrev:
 Anyone aware of a Web User Interface or GUI to allow users to create
 simple/common-type sieve scripts?
 So before I go invent this wheel I'd like to know what others are doing?
 
 For Thunderbird, there's a plugin (I haven't tested):
 
 http://sieve.mozdev.org/
 

It doesn't do hand-holding, it's just an interface to managesieve.

~Seth


Re: [Dovecot] LDA dovecot with Postfix not workin :-(

2009-02-20 Thread Romer Ventura
enable auth debug in dovecot.conf. then check the logs for more  
detailed info.


On Feb 20, 2009, at 2:11 AM, Thorsten Reiser wrote:


Hi, tried to use postfix with virtual users and dovecot
imaps/imap pop3/pop3s workin fine lokal smtp too,

but a remote host is not able to send mail

Debian Etch
uname -a Linux mail 2.6.18-6-xen-amd64

#virtual user
vmail:x:5000:8::/home/vmail:/bin/sh

#master.cf added
dovecot   unix  -   n   n   -   -   pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $ 
{recipient}


#/var/log/mail.info
Feb 19 12:37:51 mail postfix/master[6082]: daemon started --  
version 2.3.8,

configuration /etc/postfix
Feb 19 12:37:58 mail postfix/smtpd[6106]: connect from XXX [XXX]
Feb 19 12:37:58 mail postfix/smtpd[6106]: 9D150107C3C4: client=XXX  
[XXX],

sasl_method=LOGIN, sasl_username=usern...@email.com
thats all ..

here are my logs


telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Postfix (Debian/GNU)
ehlo localhost.com
250-localhost
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN aW5mb0BseC1ob3N0aW5nLmRlAGluZm9AbHgtaG9zdGluZy5kZQB0ZXN0
235 2.0.0 Authentication successful

#master.cf added
dovecot   unix  -   n   n   -   -   pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $ 
{recipient}


#postconf -n
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
debug_peer_level = 10
debug_peer_list = 127.0.0.1
inet_interfaces = all
mailbox_size_limit = 0
mydestination = mail.server.de, mail, localhost.localdomain, localhost
myhostname = localhost
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = Mail ESMTP
smtpd_helo_required = no
smtpd_helo_restrictions = permit_mynetworks,
reject_invalid_hostname,permit
smtpd_recipient_restrictions = reject_unauth_pipelining,
permit_sasl_authenticated,permit_mynetworks,
reject_non_fqdn_recipient,reject_unknown_recipient_domain,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated,
reject_non_fqdn_sender,reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/ 
smtpd_scache

smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:8
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = /etc/postfix/vhosts.txt
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_transport = dovecot
virtual_uid_maps = static:5000


#dovecot -n
# /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot.info
info_log_path: /var/log/dovecot.info
log_timestamp: %d-%m-%Y %H:%M:%S
protocols: imap pop3 imaps pop3s
listen(default): *:10143
listen(imap): *:10143
listen(pop3): *
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_greeting: Mail POP3/IMAP
verbose_proctitle: yes
first_valid_uid: 5000
last_valid_uid: 5000
first_valid_gid: 8
last_valid_gid: 8
mail_privileged_group: mail
mail_location: maildir:/home/vmail/%d/%n
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh  
outlook-idle

imap_client_workarounds(imap): delay-newmail netscape-eoh outlook-idle
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: passwd-file
args: /etc/dovecot/userdb
  userdb:
driver: passwd-file
args: /etc/dovecot/userdb
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
   

Re: [Dovecot] v1.2 can't set ACL to empty string

2009-02-20 Thread Timo Sirainen
On Fri, 2009-02-20 at 17:48 +0100, Bernhard Herzog wrote:
 On 18.02.2009, Sascha Wilde wrote:
  according to RfC4314 the rights argument to the setacl command might be
  an empty string (zero right characters):
 
  The third argument is a string containing an optional plus (+) or
  minus (-) prefix, followed by zero or more rights characters.
 
  existing clients (horde in particular) actually use this to remove all
  rights from an user.
 
  Currently dovecot 1.2 does not accept an empty rights string as argument
  to setacl.  Bernhard Herzog will look into this.
 
 Below is a patch that fixes this.  SETACL with an empty string as rights will 
 be equivalent to DELETEACL with the same identifier.

Committed.

 While testing this, I noticed two other problems in the imap-acl plugin, both 
 related to negative ACL entries.  If an ACL contains both negative and 
 positive entries for the same identifier, no space is output in the the 
 GETACL response, leading to something like e.g.
 
 * ACL INBOX/foo someuser lrs-someuser w 

Fixed.

 The second problem is that the - is not inside the double quotes.

Fixed.


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


Re: [Dovecot] ACL plugin when file in Maildir is not a directory

2009-02-20 Thread Timo Sirainen
On Fri, 2009-02-13 at 12:55 +0100, Thomas Hummel wrote:
 Hello Timo, 
 
 On a production (by that I mean many users) dovecot-1.1.8/Maidir server where
 ACL plugin has been enabled, I ran on a log verbosity problem :
 
 For some reason (in fact, due to mbox - Maildir migration script), some 
 people
 have in their Maildir a .procmail.logfile file.
 
 The problem is that dovecot (or the ACL plugin) wants to find a dovecot-acl
 file in what it would like to be a directory, and then complains :
 
   dovecot: IMAP(): 
 open(/courriel/boites//.procmail.logfile/dovecot-acl) failed: Not a 
 directory

maildir_stat_dirs=yes probably fixes this?

 One more thing : would I have a log (or in what verbosity setup would I have
 one) line complaining about no-acl in the system wide acl directory :
 
   acl = vfile:/opt/dovecot/dovecot-acls:cache_secs=300
 
 as a matter of fact, /opt/dovecot/dovecot-acls is empty for me (I don't need 
 it
 for now).

What do you mean? Complain about what? Missing global ACL files? That
wouldn't really make sense.


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


Re: [Dovecot] GUI/WUI for creating (common) sieve scripts?

2009-02-20 Thread Roderick A. Anderson

Seth Mattinen wrote:

Peter Lindgren wrote:

Roderick A. Anderson skrev:

Anyone aware of a Web User Interface or GUI to allow users to create
simple/common-type sieve scripts?
So before I go invent this wheel I'd like to know what others are doing?

For Thunderbird, there's a plugin (I haven't tested):

http://sieve.mozdev.org/



It doesn't do hand-holding, it's just an interface to managesieve.


I was thinking so.  I did spot this while searching but it didn't look 
too promising.  Besides I need/want something that can be used from a 
Webmail interface.



Rod
--


~Seth


Re: [Dovecot] IMAP ACLs and global ACLs in v1.2

2009-02-20 Thread Timo Sirainen
On Thu, 2009-01-15 at 17:48 +0100, Sascha Wilde wrote:
  But should it just internally convert owner to username when
  replying?
 
 From our experience this would be a very good idea.  Many clients
 recognize the username and handle those ACLs differently in there UI
 (for example they don't offer them for editing).  But they don't
 understand owner.

GETACL now converts owner to username when ACLs contain owner right, but
no username right.



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


Re: [Dovecot] Maildir with INBOX and other folders at same level

2009-02-20 Thread Timo Sirainen
On Fri, 2009-02-20 at 07:18 -0500, Seth Rhudy wrote:
 ~/Maildir
 INBOX
 cur
 new
 tmp
 Otherfolder1
..
 Anyway, I am using Dovecot 1.0.15 on Debian Lenny and can't seem to
 get Dovecot to recognize this folder structure and display it in my
 MUA.  

Dovecot v1.0 supports only Maildir++ layout:
http://wiki.dovecot.org/MailboxFormat/Maildir#maildir++

So you can't get Dovecot v1.0 to recognize such structure. With v1.1 you
could add :LAYOUT=fs to mail_location.


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


Re: [Dovecot] deliver

2009-02-20 Thread Timo Sirainen
On Thu, 2009-02-19 at 15:53 -0500, Il Neofita wrote:
 I am new and for sure I did something stupid
 
 I trying to use dovecot with sendmail
 but I am receiving this error
 
 teststat deliver(usertest): net_connect(/var/run/dovecot/auth-master)
 failed: Permission denied

deliver doesn't have enough permissions to connect to this. Easiest way
to fix it is to set

 master:
   path: /var/run/dovecot/auth-master
   mode: 384

mode = 0666



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


Re: [Dovecot] auth-worker always opens PAM session

2009-02-20 Thread Timo Sirainen
On Thu, 2009-02-19 at 13:59 -0300, Miguel Di Ciurcio Filho wrote:
 But I suspect that dovecot should not be opening sessions, because there 
 is no session=yes on my passdb configuration.

Why do you think it is opening sessions?

 /* -session for backwards compatibility */
   if (strcmp(t_args[i], -session) == 0 ||
   strcmp(t_args[i], session=yes) == 0)
   module-pam_session = TRUE;
 
 It seams to me that the session is going to be opened anyway, since 
 pam_session is always TRUE.

Why? That code sets it to TRUE only when -session or session=yes
parameter is seen.


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


Re: [Dovecot] dict quota

2009-02-20 Thread Timo Sirainen
On Thu, 2009-02-19 at 09:18 +0100, Osvaldo Alvarez Pozo wrote:
 Hi
 Actually I use quota. But I would like to use dict quota car with dict
 quota it is possible to view the used quota.
 
 But I do not understand the configuration off dict quota.
 if the quota is stored in mysql wich do I have to specify quota values
 in plugin section as chown in the dovecot web site? exemples:

With dict quota the current quota usage is stored to dict. The quota
limits are still configured the normal way. You don't have to specify
the limits in plugin section, you can just always have your userdb
return the quota (the wiki explains it).

Are you using Dovecot v1.1? Dict quota is pretty broken with v1.0.



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


Re: [Dovecot] CMUSieve with virtual users

2009-02-20 Thread Alex

Roderick A. Anderson wrote:



Guillaume Hilt wrote:


Alex a écrit :

Guillaume HILT wrote:

Upgrade done and running, but it didn't fixed the problem :x

Alex a écrit :
I had been the same issue with 1.1.7. Try to unmask the 1.1.10-r1 
and install; it solve my issue.


Do you see anything in your log?

Nothing about sieve.


Interestingly enough there appear to be some values in the dovecot.conf 
that don't show up with (when I try in on my system) a dovecot -n.  I 
must admit I'm surprised everything _seems_ to be working as I've had 
some formatting issues in the dovecot.conf file


Anyway; specifically the lda stuff.

Here's mine slightly munged.

protocol lda {
  log_path = /var/log/dovecot/dovecot-deliver.log
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = postmas...@mydomain.com
  hostname = mx0.mydomain.com
  mail_plugins = cmusieve
  mail_plugin_dir = /usr/lib/dovecot/lda
}


Rod


Did you defined sieve_global_path = /etc/dovecot/sieve/default.sieve?
Remeber to change ownership to default.sieve file with your vmail user 
and group.




Re: [Dovecot] v1.2.beta1 released

2009-02-20 Thread Timo Sirainen
On Thu, 2009-02-12 at 13:10 +0100, Sascha Wilde wrote:
 - cyrus imapd actually tries[1] to implement a variant of this
   possibility in that it does not allow to remove the 'a' right from the
   owner: 

I implemented this to Dovecot now too.

  I think the owner ACLs are usually in global ACL files, so
  it's probably not possible to remove or change it, only add a new
  user=x.
 
 I think that it would be best to always map the owners user name to
 the keyword owner and vice versa between the IMAP front end and the
 acl back end.  This way user=x where x is the owners user name should
 never appear in an dovecot-acl file.

I did consider this too, but then I thought that it could cause wrong
results in some special situations. For example if another user's
mailbox is symlinked to your private namespace and you change your own
rights, it really should change them and not the owner's.

 So it boils down to the question
 if the individual acl-files should take precedence over the global one
 -- without having checked I assume this decision already has been made.

IIRC in v1.1 mailbox ACL files take precedence, but in v1.2 globals take
precedence. I changed it because users shouldn't be able to override
admin's decisions.


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


Re: [Dovecot] Different protocols with different auth-types

2009-02-20 Thread Timo Sirainen
On Wed, 2009-02-18 at 10:47 -0800, Morton.Trust wrote:
 Hello, 
 
 I have installed dovecot with MySQL in which the users are stored. Now I
 want to separate IMAP-Users from POP3-Users. So I added two columns to the
 user table (imap / pop3) which indicates, whether the user has access to
 IMAP or not.
 
 In order to get dovecot recognizing this separation I put the auth-config
 into the two protocol-sections and wrote two different
 dovecot-sql.conf-files. In the dovecot-sql-pop3.conf the query searches for
 pop3=1 and in the dovecot-sql-imap.conf it searches for imap=1. 

That doesn't work. But luckily for you, there's a simple way to
implement this: Replace the imap=1 or pop3=1 with %s=1. %s gets expanded
to imap or pop3.



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


Re: [Dovecot] GUI/WUI for creating (common) sieve scripts?

2009-02-20 Thread Andrew Roberts

On Fri, 20 Feb 2009, Roderick A. Anderson wrote:

Anyone aware of a Web User Interface or GUI to allow users to create 
simple/common-type sieve scripts?


Horde/ingo works well for my purposes, but it's only works if it's the 
users' only means of editing sieve scripts.  If the users can manipulate 
their scripts by other means, the edits they make will be lost if and when 
they use ingo again since those changes somehow make it into horde's 
datastore and ingo doesn't parse existing scripts, it just generates a new 
one and overwrites the old.  Its configuration is fairly flexible and I 
was able to make it work via an ftp backend back in the days before the 
managesieve patch.




Re: [Dovecot] NFS error, device busy

2009-02-20 Thread Timo Sirainen
On Thu, 2009-02-19 at 10:19 +0800, Grandy Fu wrote:
 dovecot: Feb 19 10:07:02 Error: IMAP(user): 
 nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy

It needs to flush the /var/mail/'s file handle cache, but it can't. Do
you need to use dotlocks? If not, this error goes away by disabling
them. http://wiki.dovecot.org/MboxLocking



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


Re: [Dovecot] Broken dovecot-uidlist files

2009-02-20 Thread Timo Sirainen
On Tue, 2009-01-27 at 08:30 +0100, Ulrich Zehl wrote:
 On Mon, Jan 26, 2009 at 10:02:19AM -0500, Timo Sirainen wrote:
  Perhaps the NFS cache flushing doesn't work then for some reason. What
  OS (kernel) are you using on the Dovecot servers? How big values have
  you set to attribute cache?
 
 On the client side, it's Linux 2.6.23.16. All attribute cache related
 values are at their default, as far as I can tell. The entry in fstab
 reads:
 
 nfs-server:/srv/storage /srv/storage nfs 
 rw,nfsvers=3,hard,intr,nosuid,noexec,nodev,noatime 0 0

Setting actimeo=0 probably fixes this, but also probably increases the
load a lot. actimeo=1 might work ok and reduce how often these problems
happen, but not eliminate them completely.

Dovecot's nfs settings should avoid this problem though. You could see
if upgrading your kernel helps. Some kernels have somewhat broken NFS
code.

  I was just thinking that when you said there was no concurrent access
  did you also consider deliver processes and not just imap/pop3?
 
 I just checked again. See below for an example of the logs for one mailbox.
 
 $ grep 123...@example.net mail.log
 Jan 27 08:00:17 allina dovecot: pop3-login: Login: user=123...@example.net, 
 method=PLAIN, rip=80.x.x.x, lip=10.x.x.x
 Jan 27 08:00:19 allina dovecot: POP3(123...@example.net): Disconnected: 
 Logged out top=0/0, retr=1/1283428, del=0/1, size=1283408
 Jan 27 08:00:57 laura deliver(123...@example.net): 
 msgid=497eb077.09.01...@ernesto: saved mail to INBOX

So allina modified dovecot-uidlist and soon afterwards laura probably
was using a cached dovecot-uidlist and corrupted it.


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


Re: [Dovecot] Quota not reporting with getquotaroot

2009-02-20 Thread Timo Sirainen
On Tue, 2009-02-10 at 21:21 -0500, dove...@corwyn.net wrote:
 I'm running squirrelmail on top of dovecot, and noticed that some of 
 my users display the quota (using the squirrelmail plugin 
 check_quota) and some don't.
 
 So I did some digging. For those that do not display the quota, their 
 account also doesn't provide any data with:
 . getquotaroot inbox
 * QUOTAROOT inbox
 . OK Getquotaroot completed.
 
 
 When I check the account /Maildir folder it has info in maildirsize
 0S

There are no limits, so GETQUOTAROOT doesn't return anything. Although..

 plugin:
quota: maildir
quota_rule: *:storage=10240
quota_rule2: Trash:storage=100M

Dovecot should be using these values or the ones returned by userdb, so
having 0S in the header shouldn't make a difference. Or is it possible
that your userdb could override quota_rule in a way that it doesn't
specify storage at all?


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


Re: [Dovecot] trash plugin and LDA

2009-02-20 Thread Timo Sirainen
On Fri, 2009-02-13 at 11:43 -0500, dove...@corwyn.net wrote:

 The wiki references the trash plugin with imap. Can I also enable 
 trash with the lda?

Yes, that should work.



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


Re: [Dovecot] quota and dict quota

2009-02-20 Thread Timo Sirainen
On Wed, 2009-02-18 at 17:06 +0100, Osvaldo Alvarez Pozo wrote:

 Now  I want to see the users's use of quota in postfixadmin, wich
 demende the use of dict quota. That is wath I do not understang.
 
 Can I have dict quota and mail_plugins=quota  at the same time?

You have to use mail_plugins=quota to get dict quota working. Since you
didn't post your entire config (use dovecot -n), I'm assuming you're
currently using Maildir++ quota. You can't really use both Maildir++
quota and dict quota at the same time. But there's really no point in
doing that anyway.

You also didn't specify your Dovecot version. If you're using v1.1 you
could enable dict quota pretty easily by just changing the quota=maildir
to quota=dict and setting up other dict quota settings right. With v1.0
you don't really want to use dict quota, it's pretty broken.



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


Re: [Dovecot] location of temporary files in deliver

2009-02-20 Thread Timo Sirainen
On Wed, 2009-02-04 at 01:24 +, Stuart Henderson wrote:
 /* After buffer grows larger than this, create a temporary file to /tmp
where to read the mail. */
..
 Would it be appropriate to make this a configurable option instead?

No, but what would make sense is for deliver to write it under the mail
directory, at least with maildir. With mbox I'm not really sure.



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


Re: [Dovecot] dovecot 1.2 virtual folders Virtual mailbox loops: INBOX

2009-02-20 Thread Timo Sirainen
On Sun, 2009-02-01 at 08:50 +0100, Robert Schetterer wrote:
 /etc/dovecot/virtual/dovecot-virtual/INBOX
 *
 Junk
 
 or
 
 INBOX
 Junk
 
 i get a
 Virtual mailbox loops: INBOX

This is because INBOX points to the virtual INBOX, which is itself.

 with namespaces
 
 
 namespace private {
   separator = /
   prefix = 
 location =
 maildir:/usr/local/virtual/%d/%u/:CONTROL=/usr/local/virtual/%d/%u/:INDEX=/usr/local/virtual/%d/%u/
 :INBOX=/usr/local/virtual/%d/%u/
 inbox = no
subscriptions = yes
list = yes
 }

This configuration wouldn't give the error message. My guess is that
you're overriding this configuration from userdb. You could set
mail_debug=yes to make it log the exact namespace configuration Dovecot
is seeing.



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


Re: [Dovecot] v1.2.beta1 virtual plugin raw trace

2009-02-20 Thread Timo Sirainen
On Wed, 2009-02-11 at 07:14 +0100, Robert Schetterer wrote:
 Hi Timo,
  using 1.2 beta with virtual plugin
 testing parallel imap/pop3 download
 
 with
 dovecot-virtual
 
 virtual/INBOX
 -Trash
 -Trash/*
   all

This doesn't really make any sense. You only list virtual/INBOX, so
Trash of course doesn't match it.

 dovecot: Feb 11 07:03:08 Panic: POP3(.@.): file mailbox-list.c:
 line 420 (mailbox_list_iter_init_multiple): assertion failed: (*patterns
 != NULL)

Fixed anyway the crash.


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


Re: [Dovecot] dovecot 1.2 virtual folders Virtual mailbox loops: INBOX

2009-02-20 Thread Timo Sirainen
http://wiki.dovecot.org/Plugins/Virtual now has a hopefully working
example of how it should be set up.



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