Re: [Dovecot] file permissions

2011-03-29 Thread Charles Marcus
On 2011-03-28 4:21 PM, Charles Marcus wrote:
> On 2011-03-28 4:02 PM, David Ford wrote:
>> please make sure this is optional.  dovecot always tries to set the wrong 
>> ownership on our servers.
> 
> Of course I meant a doveadm argument...
> 
> Something like doveadm --fix-perms

and of course it should take take your config into account.

-- 

Best regards,

Charles


[Dovecot] global sieve not working

2011-03-29 Thread Barry Kwok
My global sieve rule is not working and do not compile. But per-user sieve
is working.
Here is my dovecot -n:

log_path: /var/log/dovecot.log
protocols: imap pop3
ssl: 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
mail_uid: 501
mail_gid: 501
mail_location: maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/
mail_debug: 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): quota imap_quota acl imap_acl
mail_plugins(imap): quota imap_quota acl imap_acl
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: shared
  separator: /
  prefix: shared/%%u/
  location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu
  list: children
lda:
  postmaster_address: root
  mail_plugins: sieve quota autocreate expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve_global_path: /var/vmail/sieve/dovecot.sieve
  log_path: /var/log/sieve.log
auth default:
  mechanisms: plain login
  default_realm: mydomain.net
  user: vmail
  username_chars:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@
  passdb:
driver: pam
  passdb:
driver: sql
args: /etc/dovecot-mysql.conf
  userdb:
driver: passwd
  userdb:
driver: sql
args: /etc/dovecot-mysql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/dovecot-auth
  mode: 438
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 438
  user: vmail
  group: vmail
plugin:
  quota: dict:user::proxy::quota
  quota: maildir
  quota_rule: *:storage=0
  acl: vfile
  acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
dict:
  quota: mysql:/etc/dovecot-dict-quota.conf
  expire: db:/var/lib/dovecot/expire.db



By reading sieve.log, it simple ignore sieve_global_path:
/var/vmail/sieve/dovecot.sieve but the per user
sieve  /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working


--barry


Re: [Dovecot] global sieve not working

2011-03-29 Thread Jerry
On Tue, 29 Mar 2011 19:22:44 +0800
Barry Kwok  articulated:

> My global sieve rule is not working and do not compile. But per-user
> sieve is working.

Are you implying that the global dovecot.sieve does not actually
compile or it is not being used? What error message is output when you
run:

sievec /var/vmail/sieve/dovecot.sieve

What are the permissions & ownership on the file?

-- 
Jerry ✌
dovecot.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__



[Dovecot] service auth { client_limit=4096 } is lower than required under max. load (5720

2011-03-29 Thread Frank Bonnet
Hello

Since I started up dovecot2 this morning
I get this kind of warning message when I start Dovecot

Help appreciated

thanks


doveconf: Warning: service auth { client_limit=4096 } is lower than
required under max. load (5720)
Stopping dovecot.
Waiting for PIDS: 79978, 79978.
doveconf: Warning: service auth { client_limit=4096 } is lower than
required under max. load (5720)
Starting dovecot.
doveconf: Warning: service auth { client_limit=4096 } is lower than
required under max. load (5720)
Warning: service auth { client_limit=4096 } is lower than required under
max. load (5720)




Re: [Dovecot] global sieve not working

2011-03-29 Thread Tom Hendrikx
On 29/03/11 13:22, Barry Kwok wrote:
> My global sieve rule is not working and do not compile. But per-user sieve
> is working.
> Here is my dovecot -n:
> 
> log_path: /var/log/dovecot.log
> protocols: imap pop3
> ssl: 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
> mail_uid: 501
> mail_gid: 501
> mail_location: maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/
> mail_debug: 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): quota imap_quota acl imap_acl
> mail_plugins(imap): quota imap_quota acl imap_acl
> mail_plugins(pop3):
> mail_plugin_dir(default): /usr/lib/dovecot/imap
> mail_plugin_dir(imap): /usr/lib/dovecot/imap
> mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
> pop3_client_workarounds(default):
> pop3_client_workarounds(imap):
> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
> namespace:
>   type: private
>   separator: /
>   inbox: yes
>   list: yes
>   subscriptions: yes
> namespace:
>   type: shared
>   separator: /
>   prefix: shared/%%u/
>   location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu
>   list: children
> lda:
>   postmaster_address: root
>   mail_plugins: sieve quota autocreate expire
>   auth_socket_path: /var/run/dovecot/auth-master
>   sieve_global_path: /var/vmail/sieve/dovecot.sieve
>   log_path: /var/log/sieve.log
> auth default:
>   mechanisms: plain login
>   default_realm: mydomain.net
>   user: vmail
>   username_chars:
> abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@
>   passdb:
> driver: pam
>   passdb:
> driver: sql
> args: /etc/dovecot-mysql.conf
>   userdb:
> driver: passwd
>   userdb:
> driver: sql
> args: /etc/dovecot-mysql.conf
>   socket:
> type: listen
> client:
>   path: /var/spool/postfix/dovecot-auth
>   mode: 438
>   user: postfix
>   group: postfix
> master:
>   path: /var/run/dovecot/auth-master
>   mode: 438
>   user: vmail
>   group: vmail
> plugin:
>   quota: dict:user::proxy::quota
>   quota: maildir
>   quota_rule: *:storage=0
>   acl: vfile
>   acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db
>   expire: Trash 7 Trash/* 7 Junk 30
>   expire_dict: proxy::expire
>   sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
> dict:
>   quota: mysql:/etc/dovecot-dict-quota.conf
>   expire: db:/var/lib/dovecot/expire.db
> 
> 
> 
> By reading sieve.log, it simple ignore sieve_global_path:
> /var/vmail/sieve/dovecot.sieve but the per user
> sieve  /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working
> 


I had to do some searching for your sieve_global_path setting, as it is
not in the 'plugin' section, but under 'lda'. Seems to me that this is
your problem.

This ofcourse raises the question why doveconf -n lists the directive
when it is misplaced...


--
Regards,
Tom



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] global sieve not working

2011-03-29 Thread Jim Knuth

am 29.03.11 14:04 schrieb Tom Hendrikx :


On 29/03/11 13:22, Barry Kwok wrote:

My global sieve rule is not working and do not compile. But per-user sieve
is working.
Here is my dovecot -n:

log_path: /var/log/dovecot.log
protocols: imap pop3
ssl: 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
mail_uid: 501
mail_gid: 501
mail_location: maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/
mail_debug: 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): quota imap_quota acl imap_acl
mail_plugins(imap): quota imap_quota acl imap_acl
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
   type: private
   separator: /
   inbox: yes
   list: yes
   subscriptions: yes
namespace:
   type: shared
   separator: /
   prefix: shared/%%u/
   location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu
   list: children
lda:
   postmaster_address: root
   mail_plugins: sieve quota autocreate expire
   auth_socket_path: /var/run/dovecot/auth-master
   sieve_global_path: /var/vmail/sieve/dovecot.sieve
   log_path: /var/log/sieve.log
auth default:
   mechanisms: plain login
   default_realm: mydomain.net
   user: vmail
   username_chars:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@
   passdb:
 driver: pam
   passdb:
 driver: sql
 args: /etc/dovecot-mysql.conf
   userdb:
 driver: passwd
   userdb:
 driver: sql
 args: /etc/dovecot-mysql.conf
   socket:
 type: listen
 client:
   path: /var/spool/postfix/dovecot-auth
   mode: 438
   user: postfix
   group: postfix
 master:
   path: /var/run/dovecot/auth-master
   mode: 438
   user: vmail
   group: vmail
plugin:
   quota: dict:user::proxy::quota
   quota: maildir
   quota_rule: *:storage=0
   acl: vfile
   acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db
   expire: Trash 7 Trash/* 7 Junk 30
   expire_dict: proxy::expire
   sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
dict:
   quota: mysql:/etc/dovecot-dict-quota.conf
   expire: db:/var/lib/dovecot/expire.db



By reading sieve.log, it simple ignore sieve_global_path:
/var/vmail/sieve/dovecot.sieve but the per user
sieve  /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working




I had to do some searching for your sieve_global_path setting, as it is
not in the 'plugin' section, but under 'lda'. Seems to me that this is
your problem.


I think, that`s right

plugin/sieve_global_path = /etc/dovecot/sieve/global/global.sieve
plugin/sieve_global_dir = /etc/dovecot/sieve/global/



This ofcourse raises the question why doveconf -n lists the directive
when it is misplaced...


--
Regards,
Tom




--
Mit freundlichen Grüßen,
Jim Knuth
P.S.: Bitte senden Sie KEINE HTML-Mails!
Zufallszitat:
Erfolg hört nur auf Applaus. Für alles andere
ist er taub. (Elias Canetti)


Re: [Dovecot] global sieve not working

2011-03-29 Thread Barry Kwok
On Tue, Mar 29, 2011 at 8:27 PM, Jim Knuth  wrote:

> am 29.03.11 14:04 schrieb Tom Hendrikx :
>
>
>  On 29/03/11 13:22, Barry Kwok wrote:
>>
>>> My global sieve rule is not working and do not compile. But per-user
>>> sieve
>>> is working.
>>> Here is my dovecot -n:
>>>
>>> log_path: /var/log/dovecot.log
>>> protocols: imap pop3
>>> ssl: 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
>>> mail_uid: 501
>>> mail_gid: 501
>>> mail_location:
>>> maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/
>>> mail_debug: 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): quota imap_quota acl imap_acl
>>> mail_plugins(imap): quota imap_quota acl imap_acl
>>> mail_plugins(pop3):
>>> mail_plugin_dir(default): /usr/lib/dovecot/imap
>>> mail_plugin_dir(imap): /usr/lib/dovecot/imap
>>> mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
>>> pop3_client_workarounds(default):
>>> pop3_client_workarounds(imap):
>>> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
>>> namespace:
>>>   type: private
>>>   separator: /
>>>   inbox: yes
>>>   list: yes
>>>   subscriptions: yes
>>> namespace:
>>>   type: shared
>>>   separator: /
>>>   prefix: shared/%%u/
>>>   location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu
>>>   list: children
>>> lda:
>>>   postmaster_address: root
>>>   mail_plugins: sieve quota autocreate expire
>>>   auth_socket_path: /var/run/dovecot/auth-master
>>>   sieve_global_path: /var/vmail/sieve/dovecot.sieve
>>>   log_path: /var/log/sieve.log
>>> auth default:
>>>   mechanisms: plain login
>>>   default_realm: mydomain.net
>>>   user: vmail
>>>   username_chars:
>>> abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@
>>>   passdb:
>>> driver: pam
>>>   passdb:
>>> driver: sql
>>> args: /etc/dovecot-mysql.conf
>>>   userdb:
>>> driver: passwd
>>>   userdb:
>>> driver: sql
>>> args: /etc/dovecot-mysql.conf
>>>   socket:
>>> type: listen
>>> client:
>>>   path: /var/spool/postfix/dovecot-auth
>>>   mode: 438
>>>   user: postfix
>>>   group: postfix
>>> master:
>>>   path: /var/run/dovecot/auth-master
>>>   mode: 438
>>>   user: vmail
>>>   group: vmail
>>> plugin:
>>>   quota: dict:user::proxy::quota
>>>   quota: maildir
>>>   quota_rule: *:storage=0
>>>   acl: vfile
>>>   acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db
>>>   expire: Trash 7 Trash/* 7 Junk 30
>>>   expire_dict: proxy::expire
>>>   sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
>>> dict:
>>>   quota: mysql:/etc/dovecot-dict-quota.conf
>>>   expire: db:/var/lib/dovecot/expire.db
>>>
>>>
>>>
>>> By reading sieve.log, it simple ignore sieve_global_path:
>>> /var/vmail/sieve/dovecot.sieve but the per user
>>> sieve  /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working
>>>
>>>
>>
>> I had to do some searching for your sieve_global_path setting, as it is
>> not in the 'plugin' section, but under 'lda'. Seems to me that this is
>> your problem.
>>
>
> I think, that`s right
>
> plugin/sieve_global_path = /etc/dovecot/sieve/global/global.sieve
> plugin/sieve_global_dir = /etc/dovecot/sieve/global/
>
>
>
>> This ofcourse raises the question why doveconf -n lists the directive
>> when it is misplaced...
>>
>>
>> --
>> Regards,
>>Tom
>>
>>
>
>
I have set
 sieve_global_dir: /var/vmail/sieve/
  sieve_global_path: /var/vmail/sieve/dovecot.sieve
in plugin section. But it still not working.

sievec have no compile error and I also set mail_debug on. But there is no
info regarding this global sieve.

--barry


[Dovecot] doveadm

2011-03-29 Thread Walt Shekrota
Hi

Where does this utility reside for installation. I use Ubuntu and installed 
dovecot-imapd and dovecot-pop3d so far. Does it now ship in the regular dovecot 
installation packages?

Thanks.
-Walt


Re: [Dovecot] global sieve not working

2011-03-29 Thread Tom Hendrikx
On 29/03/11 15:50, Barry Kwok wrote:
> On Tue, Mar 29, 2011 at 8:27 PM, Jim Knuth  wrote:
> 
>> am 29.03.11 14:04 schrieb Tom Hendrikx :
>>
>>
>>  On 29/03/11 13:22, Barry Kwok wrote:
>>>
 My global sieve rule is not working and do not compile. But per-user
 sieve
 is working.
 Here is my dovecot -n:

 log_path: /var/log/dovecot.log
 protocols: imap pop3
 ssl: 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
 mail_uid: 501
 mail_gid: 501
 mail_location:
 maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/
 mail_debug: 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): quota imap_quota acl imap_acl
 mail_plugins(imap): quota imap_quota acl imap_acl
 mail_plugins(pop3):
 mail_plugin_dir(default): /usr/lib/dovecot/imap
 mail_plugin_dir(imap): /usr/lib/dovecot/imap
 mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
 pop3_client_workarounds(default):
 pop3_client_workarounds(imap):
 pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
 namespace:
   type: private
   separator: /
   inbox: yes
   list: yes
   subscriptions: yes
 namespace:
   type: shared
   separator: /
   prefix: shared/%%u/
   location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu
   list: children
 lda:
   postmaster_address: root
   mail_plugins: sieve quota autocreate expire
   auth_socket_path: /var/run/dovecot/auth-master
   sieve_global_path: /var/vmail/sieve/dovecot.sieve
   log_path: /var/log/sieve.log
 auth default:
   mechanisms: plain login
   default_realm: mydomain.net
   user: vmail
   username_chars:
 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@
   passdb:
 driver: pam
   passdb:
 driver: sql
 args: /etc/dovecot-mysql.conf
   userdb:
 driver: passwd
   userdb:
 driver: sql
 args: /etc/dovecot-mysql.conf
   socket:
 type: listen
 client:
   path: /var/spool/postfix/dovecot-auth
   mode: 438
   user: postfix
   group: postfix
 master:
   path: /var/run/dovecot/auth-master
   mode: 438
   user: vmail
   group: vmail
 plugin:
   quota: dict:user::proxy::quota
   quota: maildir
   quota_rule: *:storage=0
   acl: vfile
   acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db
   expire: Trash 7 Trash/* 7 Junk 30
   expire_dict: proxy::expire
   sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
 dict:
   quota: mysql:/etc/dovecot-dict-quota.conf
   expire: db:/var/lib/dovecot/expire.db



 By reading sieve.log, it simple ignore sieve_global_path:
 /var/vmail/sieve/dovecot.sieve but the per user
 sieve  /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working


>>>
>>> I had to do some searching for your sieve_global_path setting, as it is
>>> not in the 'plugin' section, but under 'lda'. Seems to me that this is
>>> your problem.
>>>
>>
>> I think, that`s right
>>
>> plugin/sieve_global_path = /etc/dovecot/sieve/global/global.sieve
>> plugin/sieve_global_dir = /etc/dovecot/sieve/global/
>>
>>
>>
>>> This ofcourse raises the question why doveconf -n lists the directive
>>> when it is misplaced...
>>>
>>>
>>> --
>>> Regards,
>>>Tom
>>>
>>>
>>
>>
> I have set
>  sieve_global_dir: /var/vmail/sieve/
>   sieve_global_path: /var/vmail/sieve/dovecot.sieve
> in plugin section. But it still not working.
> 
> sievec have no compile error and I also set mail_debug on. But there is no
> info regarding this global sieve.

Last time I read up on this, the global sieve script was only executed
when no per-user script was available.

If you want to run both scripts, look into 'sieve_before' for the global
script. See http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration

--
Regards,
Tom



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] global sieve not working

2011-03-29 Thread Barry Kwok
On Tue, Mar 29, 2011 at 10:04 PM, Tom Hendrikx  wrote:

> On 29/03/11 15:50, Barry Kwok wrote:
> > On Tue, Mar 29, 2011 at 8:27 PM, Jim Knuth  wrote:
> >
> >> am 29.03.11 14:04 schrieb Tom Hendrikx :
> >>
> >>
> >>  On 29/03/11 13:22, Barry Kwok wrote:
> >>>
>  My global sieve rule is not working and do not compile. But per-user
>  sieve
>  is working.
>  Here is my dovecot -n:
> 
>  log_path: /var/log/dovecot.log
>  protocols: imap pop3
>  ssl: 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
>  mail_uid: 501
>  mail_gid: 501
>  mail_location:
>  maildir:/var/vmail/%u/Maildir/:INDEX=/var/vmail/%u/Maildir/
>  mail_debug: 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): quota imap_quota acl imap_acl
>  mail_plugins(imap): quota imap_quota acl imap_acl
>  mail_plugins(pop3):
>  mail_plugin_dir(default): /usr/lib/dovecot/imap
>  mail_plugin_dir(imap): /usr/lib/dovecot/imap
>  mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
>  pop3_client_workarounds(default):
>  pop3_client_workarounds(imap):
>  pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
>  namespace:
>    type: private
>    separator: /
>    inbox: yes
>    list: yes
>    subscriptions: yes
>  namespace:
>    type: shared
>    separator: /
>    prefix: shared/%%u/
>    location: maildir:%%Lh/Maildir:INDEX=%Lh/Maildir/shared/%%Lu
>    list: children
>  lda:
>    postmaster_address: root
>    mail_plugins: sieve quota autocreate expire
>    auth_socket_path: /var/run/dovecot/auth-master
>    sieve_global_path: /var/vmail/sieve/dovecot.sieve
>    log_path: /var/log/sieve.log
>  auth default:
>    mechanisms: plain login
>    default_realm: mydomain.net
>    user: vmail
>    username_chars:
>  abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_+@
>    passdb:
>  driver: pam
>    passdb:
>  driver: sql
>  args: /etc/dovecot-mysql.conf
>    userdb:
>  driver: passwd
>    userdb:
>  driver: sql
>  args: /etc/dovecot-mysql.conf
>    socket:
>  type: listen
>  client:
>    path: /var/spool/postfix/dovecot-auth
>    mode: 438
>    user: postfix
>    group: postfix
>  master:
>    path: /var/run/dovecot/auth-master
>    mode: 438
>    user: vmail
>    group: vmail
>  plugin:
>    quota: dict:user::proxy::quota
>    quota: maildir
>    quota_rule: *:storage=0
>    acl: vfile
>    acl_shared_dict: file:/var/spool/dovecot/shared-mailboxes.db
>    expire: Trash 7 Trash/* 7 Junk 30
>    expire_dict: proxy::expire
>    sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
>  dict:
>    quota: mysql:/etc/dovecot-dict-quota.conf
>    expire: db:/var/lib/dovecot/expire.db
> 
> 
> 
>  By reading sieve.log, it simple ignore sieve_global_path:
>  /var/vmail/sieve/dovecot.sieve but the per user
>  sieve  /var/vmail/sieve/%Ld/%Ln/dovecot.sieve is working
> 
> 
> >>>
> >>> I had to do some searching for your sieve_global_path setting, as it is
> >>> not in the 'plugin' section, but under 'lda'. Seems to me that this is
> >>> your problem.
> >>>
> >>
> >> I think, that`s right
> >>
> >> plugin/sieve_global_path = /etc/dovecot/sieve/global/global.sieve
> >> plugin/sieve_global_dir = /etc/dovecot/sieve/global/
> >>
> >>
> >>
> >>> This ofcourse raises the question why doveconf -n lists the directive
> >>> when it is misplaced...
> >>>
> >>>
> >>> --
> >>> Regards,
> >>>Tom
> >>>
> >>>
> >>
> >>
> > I have set
> >  sieve_global_dir: /var/vmail/sieve/
> >   sieve_global_path: /var/vmail/sieve/dovecot.sieve
> > in plugin section. But it still not working.
> >
> > sievec have no compile error and I also set mail_debug on. But there is
> no
> > info regarding this global sieve.
>
> Last time I read up on this, the global sieve script was only executed
> when no per-user script was available.
>
> If you want to run both scripts, look into 'sieve_before' for the global
> script. See http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
>
> --
> Regards,
> Tom
>
> Thank you. It work now after I change
sieve_global_path parameter to
sieve_before = /var/vmail/sieve/dovecot.sieve


--barry


Re: [Dovecot] Upgrade to v2.0 conf file fails

2011-03-29 Thread Nikolaos Milas

On 28/3/2011 12:51 μμ, Nikolaos Milas wrote:

Hi,

I am trying to use the command:
doveconf -n -c dovecot-1.conf > dovecot-2.conf
to upgrade my dovecot.conf file, but it fails (see below).

Judging from the message that vsz_limit is the new setting for 
login_process_size, I have retried using login_process_size=256 rather 
than login_process_size=64 (which was the initial value), but the 
error persists.



OK, I figured this out, thanks to: 
http://dovecot.org/pipermail/dovecot-cvs/2010-November/018340.html


I used login_process_size=1024 in the initial dovecot.conf and doveconf 
-n -c completed without errors.


Is there a minimum suggested value for this parameter? Judging from 
here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606646, it seems 
that vsz_limit should be 64M. Any advice?


Nick




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] Dovecot-2.0.11 searches in all LDAP directory

2011-03-29 Thread Басов Евгений
28.03.2011 15:19, Joseba Torre пишет:
>
> If not needed, remove the pam passdb and the passwd userdb and check again.
>
> HTH
Yes you are quite right. Dovecot uses LDAP over pam. I'm disabled this
feature and works fine.

Thanks.


[Dovecot] dovecot-lda can not find home dir

2011-03-29 Thread Pete
Hello,

Running dovecot 2.0.11 and pigeonhole on Fedora 14 x86_64.  The lda
can not seem to find the user's home directory, yet other parts of
dovecot (pop3, imap, managesieve) can.

Grepping "Effective uid" from /var/log/maillog:
Mar 29 11:21:34 new-eagle dovecot: pop3(pete): Debug: Effective
uid=726, gid=726, home=/home/pete
Mar 29 11:23:18 new-eagle dovecot: imap(pete): Debug: Effective
uid=726, gid=726, home=/home/pete
Mar 29 11:23:52 new-eagle dovecot: managesieve(pete): Debug: Effective uid=726,
gid=726, home=/home/pete
Mar 29 11:24:53 new-eagle dovecot: managesieve(pete): Debug: Effective uid=726,
gid=726, home=/home/pete
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: Effective
uid=726, gid=726, home=

Although mail does get delivered, the .dovecot.lda-dupes file can not
be created because of this:
Mar 29 11:26:15 new-eagle dovecot: lda: Debug: Loading modules from
directory: /usr/lib64/dovecot
Mar 29 11:26:15 new-eagle dovecot: lda: Debug: Module loaded:
/usr/lib64/dovecot/lib90_sieve_plugin.so
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: Effective
uid=726, gid=726, home=
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: fs:
root=/home/pete/mail, index=, control=, inbox=/var/spool/mail/pete
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: userdb lookup
skipped, username taken from passwd lookup for process euid
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: none: root=,
index=, control=, inbox=
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Error: User pete doesn't
have home dir set, disabling duplicate database
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: sieve: using
sieve path for user's script: /home/pete/.dovecot.sieve
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: sieve: opening
script /home/pete/.dovecot.sieve
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: sieve: script
/home/pete/.dovecot.sieve successfully compiled
Mar 29 11:26:15 new-eagle dovecot: lda(pete): Debug: sieve: executing
script from /home/pete/.dovecot.sieve
Mar 29 11:26:15 new-eagle dovecot: lda(pete): sieve:
msgid=: stored mail into
mailbox 'INBOX'

Dovecot seems to be able to determine the user's home directory, but I
do not know how to tell dovecot-lda where it is.

Running "doveadm user pete" produces:
userdb: pete
  system_groups_user: pete
  uid   : 726
  gid   : 726
  home  : /home/pete

In /home/pete, the .forward file is:
| "/usr/libexec/dovecot/dovecot-lda"

Entry from /etc/passwd:
pete:x:726:726:Peter:/home/pete:/bin/false

Output of dovecot -n:
# 2.0.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.35.11-83.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) ext4
auth_cache_size = 10 M
auth_debug = yes
auth_mechanisms = login plain
auth_verbose = yes
disable_plaintext_auth = no
listen = *
mail_debug = yes
mail_location = mbox:/home/%u/mail:INBOX=/var/spool/mail/%u:INDEX=MEMORY
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date
mbox_write_locks = fcntl
passdb {
  driver = pam
}
plugin/sieve = /home/%u/.dovecot.sieve
plugin/sieve_dir = /home/%u/sieve
protocols = pop3 imap sieve
rejection_reason = Sorry, your message was automatically rejected:%n%r
rejection_subject = failure notice re: %s
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
ssl = no
userdb {
  driver = passwd
}
protocol lda {
  mail_plugins = sieve

I did update from dovecot-2.0.9 (which the lda could find the home
directory) but I also had to change the mail_location from:
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u:INDEX=MEMORY
to:  mail_location = mbox:/home/%u/mail:INBOX=/var/spool/mail/%u:INDEX=MEMORY

Also had to change:
plugin/sieve = ~/.dovecot.sieve
plugin/sieve_dir = ~/sieve

To:
plugin/sieve = /home/%u/.dovecot.sieve
plugin/sieve_dir = /home/%u/sieve

... in order for 2.0.11 to function.

Any thoughts on how to get the home dir passed correctly to lda ?

Thanks,
Pete


Re: [Dovecot] doveadm

2011-03-29 Thread Patrick Domack

It doesn't exist.

doveadm belongs in dovecot 2.x, but ubuntu only has 1.x versions.

Quoting Walt Shekrota :


Hi

Where does this utility reside for installation. I use Ubuntu and  
installed dovecot-imapd and dovecot-pop3d so far. Does it now ship  
in the regular dovecot installation packages?


Thanks.
-Walt







Re: [Dovecot] doveadm

2011-03-29 Thread Patrick Ben Koetter
* Patrick Domack :
> It doesn't exist.
> 
> doveadm belongs in dovecot 2.x, but ubuntu only has 1.x versions.

Try Christians builds:



p@rick

-- 
state of mind
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15  Telefon +49 89 3090 4664
81669 München  Telefax +49 89 3090 4666

Amtsgericht MünchenPartnerschaftsregister PR 563



[Dovecot] migrating to dovecot

2011-03-29 Thread Alexandre Chapellon
Hello,

I am trying to setup a migration scenario from an proprietary solution
to dovecot IMAP/POP3.
Whereas am only at the strating point, things appear quite complicated
because of the following reasons:

- The proprietary solution uses special/own/proprietary mailbox format
(wich is more like maildir but is not maildir)
- I don't have direct access to the filesystem where the mails are
stored. The best I could do would be a snapshots of the filesystem
- I have about 1,5TB of mail data.
- Having users to be forced to empty their mailbox before migration or
re-download their whole mailbox after migration would be something hard
for me to present as a correct option.

Am looking for advices that would avoid me loosing time searching in bad
directions. Or even point me to a miraculous tool thatdoes all magic
while i have a beer :)

Best regards.

-- 
horoa: la voie est libre


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


Re: [Dovecot] migrating to dovecot

2011-03-29 Thread Jim Lawson
Does the proprietary solution allow IMAP access?  If so, I would use
imapsync.

http://www.linux-france.org/prj/imapsync/

Jim

On 3/29/11 18:26 , Alexandre Chapellon wrote:
> Hello,
>
> I am trying to setup a migration scenario from an proprietary solution
> to dovecot IMAP/POP3.
> Whereas am only at the strating point, things appear quite complicated
> because of the following reasons:
>
> - The proprietary solution uses special/own/proprietary mailbox format
> (wich is more like maildir but is not maildir)
> - I don't have direct access to the filesystem where the mails are
> stored. The best I could do would be a snapshots of the filesystem
> - I have about 1,5TB of mail data.
> - Having users to be forced to empty their mailbox before migration or
> re-download their whole mailbox after migration would be something hard
> for me to present as a correct option.
>
> Am looking for advices that would avoid me loosing time searching in bad
> directions. Or even point me to a miraculous tool thatdoes all magic
> while i have a beer :)
>
> Best regards.
>


Re: [Dovecot] migrating to dovecot

2011-03-29 Thread Fabio Catunda

Also:
imapcopy - IMAP backup, copy and migration tool


On 03/29/2011 08:04 PM, Jim Lawson wrote:

Does the proprietary solution allow IMAP access?  If so, I would use
imapsync.

http://www.linux-france.org/prj/imapsync/

Jim

On 3/29/11 18:26 , Alexandre Chapellon wrote:

Hello,

I am trying to setup a migration scenario from an proprietary solution
to dovecot IMAP/POP3.
Whereas am only at the strating point, things appear quite complicated
because of the following reasons:

- The proprietary solution uses special/own/proprietary mailbox format
(wich is more like maildir but is not maildir)
- I don't have direct access to the filesystem where the mails are
stored. The best I could do would be a snapshots of the filesystem
- I have about 1,5TB of mail data.
- Having users to be forced to empty their mailbox before migration or
re-download their whole mailbox after migration would be something hard
for me to present as a correct option.

Am looking for advices that would avoid me loosing time searching in bad
directions. Or even point me to a miraculous tool thatdoes all magic
while i have a beer :)

Best regards.



[Dovecot] dovecot.conf settings vs 'dovecot-n' output

2011-03-29 Thread Walt Shekrota
I am curious why these do not seem to match?
It especially bothers me that the modes set are different.
Am I missing something?

Thanks.
-Walt



Re: [Dovecot] doveadm

2011-03-29 Thread Walt Shekrota
On Tuesday 29 March 2011 13:38:23 Patrick Ben Koetter wrote:
> * Patrick Domack :
> > It doesn't exist.
> > 
> > doveadm belongs in dovecot 2.x, but ubuntu only has 1.x versions.
> 
> Try Christians builds:
> 
> 
> 
> p@rick

Ok I see that setup and added the PPA. Its worth a shot.
This add process appears to be clean. I see that 'dovecot' contains a 
collection of 2.x packages

I did the update now what do you install? 'dovecot' (I assume dovecot is the 
PPA name and apt won't know that?)
my 'apt-get install dovecot' found nothing.
Trying to install the old package names still gets the 1.2 stuff.

I've poked around w/ aptitude and see some of your desktop stuff but no 
dovecot :(

Thanks.
-Walt


[Dovecot] 1.2 problem 'dovecot -n' vs dovecot.conf

2011-03-29 Thread Walt Shekrota
To elaborate, if there is a database associated with this setup it is really 
fubar.
note: tail of dovecot -n

lda:
  postmaster_address: postmaster
  mail_plugins: sieve
  quota_full_tempfail: yes
  deliver_log_format: msgid=%m: %$
  rejection_reason: Your message to <%t> was automatically rejected:%n%r
auth default:
  mechanisms: plain login
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 504
  socket:
type: listen
client:
  path: /var/spool/postfix/private/dovecot-auth
  mode: 432
  user: postfix
  group: postfix
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve

This in no way represents the settings in my dovecot.conf. It seems to have 
rembered old .conf settings and mixed them.
At no time was mode 504 set or even 432.
What am I doing wrong?

Thanks.
-Walt
I'm also toying with the idea of loading 2.x if I can figure out the PPA stuff.


Re: [Dovecot] 1.2 problem 'dovecot -n' vs dovecot.conf

2011-03-29 Thread Pascal Volk
On 03/30/2011 02:12 AM Walt Shekrota wrote:
> To elaborate, if there is a database associated with this setup it is really 
> fubar.
> note: tail of dovecot -n
> …
> client:
>   path: /var/run/dovecot/auth-client
>   mode: 504
>   socket:
> type: listen
> client:
>   path: /var/spool/postfix/private/dovecot-auth
>   mode: 432
> …
> 
> This in no way represents the settings in my dovecot.conf. It seems to have 
> rembered old .conf settings and mixed them.
> At no time was mode 504 set or even 432.
> What am I doing wrong?

Octal vs. decimal.
,--[ bc ]--
| obase=8
| 504
| 770
| 432
| 660
`--


Regards,
Pascal
-- 
The trapper recommends today: c01dcafe.1108...@localdomain.org