[Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread ldaamandy



hello:

What's the parameter -w for dovecot-auth:   dovecot -w my service of 
dovecot-auth always activing two: one is dovecot-auth   , the other is 
dovecot-auth -w i don't know the diffevent between them
  amandy
   thanks!
  

Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread Darren Pilgrim

On 1/6/2014 1:17 AM, ldaamandy wrote:

What's the parameter -w for dovecot-auth: dovecot -w my service of
dovecot-auth always activing two: one is dovecot-auth, the other
is dovecot-auth -w i don't know the diffevent between them


According to the Dovecot 1.x wiki:

'dovecot-auth -w process is an authentication worker process. It's 
used only with some blocking authentication databases, such as MySQL.'


http://wiki1.dovecot.org/RunningDovecot


Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread ldaamandy



thank you Darren Pilgrim  and  what should I do to not let dovecot -w 
start?  i  want to keep one dovecot-auth . Is it set in the dovecot.conf ? 
 
 Date: Mon, 6 Jan 2014 01:39:21 -0800
 From: list_dove...@bluerosetech.com
 To: amandy_...@outlook.com; dovecot@dovecot.org
 Subject: Re: [Dovecot] What's the parameter -w for dovecot-auth:   dovecot -w
 
 On 1/6/2014 1:17 AM, ldaamandy wrote:
  What's the parameter -w for dovecot-auth: dovecot -w my service of
  dovecot-auth always activing two: one is dovecot-auth, the other
  is dovecot-auth -w i don't know the diffevent between them
 
 According to the Dovecot 1.x wiki:
 
 'dovecot-auth -w process is an authentication worker process. It's 
 used only with some blocking authentication databases, such as MySQL.'
 
 http://wiki1.dovecot.org/RunningDovecot

  

Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread Darren Pilgrim

On 1/6/2014 2:02 AM, ldaamandy wrote:

thank you Darren Pilgrim  and  what should I do to not let
dovecot -w start?  i  want to keep one dovecot-auth . Is it set in
the dovecot.conf ?


You can't make it not start--it's necessary for certain authentication 
databases.  Even if you could, why are you worrying about this?  If you 
really don't want it, you'll need to switch to a different 
authentication database.  I'm pretty sure PostgreSQL doesn't require an 
authentication worker, but can't verify that as I no longer use Dovecot 1.x.


[Dovecot] virtual mailboxes folder structure

2014-01-06 Thread Marco Cusano

Hi, I am trying to find a way to list my virtual mailboxes hiding the 
namespace prefix into my imap client.
 
Fore example now my “All” mailbox is listed under virtual/ as:
 
Inbox
Sent
Drafts
Spam
Trash
virtual
All
 
I would like to list as this:
 
Inbox
Sent
Drafts
Spam
Trash  
All
 
This is my 10-mail.conf: http://pastebin.com/DumEbbmy
and this is my 15-mailboxes.conf: http://pastebin.com/QFzWGzyC
 
I thought that the list = children paramenter would do but it did 
not.
 
Thank you 

[Dovecot] acl, shared folders

2014-01-06 Thread Infoomatic
Hi list,
 
After spending quite some time to figure out how users can share folders I now 
hope someone of you could help me out. I am quite sure its just a stupid 
mistake/misunderstanding ... I am using Ubuntu 12.04 LTS with the shipped 
dovecot 2.0.19
When I login via telnet as user1 I get the following:
1 create folder1
1 OK Create completed.
2 setacl folder1 user2 rli
2 OK Setacl complete.
3 getacl folder1
* ACL folder1 user2 ilr user1 lrwstipekxacd
3 OK Getacl completed.
 
This seems fine. However, there is nothing listed in the account of user2. I 
think the mistake is in the namespace configuration of location or prefix
 
Please help! Thanks!
 
infoomatic
 
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-45-generic x86_64 Ubuntu 12.04.3 LTS ext4
auth_username_format = %n
disable_plaintext_auth = no
mail_debug = yes
mail_gid = vmail
mail_home = /var/lib/vmail/home/%u
mail_location = mdbox:/var/lib/vmail/mail/%u
mail_plugins =  acl zlib fts fts_solr acl
mail_uid = vmail
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 ihave imapflags
mdbox_rotate_size = 64 M
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = mdbox:/var/lib/vmail/mail/%%n/mailboxes/shared/%n
  prefix = shared/%%n/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/lib/vmail/shared-mailboxes
  fts = solr
  fts_solr = break-imap-search url=http://localhost:8080/solr/
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +imapflags
  zlib_save = bz2
  zlib_save_level = 6
}
protocols =  imap sieve pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    user = vmail
  }
}
service managesieve-login {
  inet_listener sieve_deprecated {
    port = 2000
  }
}
ssl_cert = /etc/ssl/certs/dovecot.pem
ssl_key = /etc/ssl/private/dovecot.pem
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lda {
  mail_plugins =  sieve acl
}
protocol imap {
  mail_plugins =  acl imap_acl
}


Re: [Dovecot] need assistance migrating between apple servers

2014-01-06 Thread Robert Schetterer
Am 06.01.2014 17:16, schrieb Raymond Norton:
 I am attempting to move imap folders from an Apple Snow Leopard server
 to a new Apple Mavericks server. Dovecot --version is not working , but
 I believe the old server is running dovecot 1.1.2 and can confirm the
 new one is running 2.2.x.
 
 
 I have tried taring and moving folders, but have not been able to get
 the transfered messages and folders to show up in user accounts (new
 messages show up fine). I have attempted to recreate index files, but
 that has not worked either. The last attempt I made to migrate was to
 use dsync, but it does not exist on the old server and I do not see a
 way to install it.
 
 
 What method would work best to migrate or move files and folders from
 the old server and get them to show up for clients on using the new server?
 
 

imapsync should work ever


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


[Dovecot] need assistance migrating between apple servers

2014-01-06 Thread Raymond Norton
I am attempting to move imap folders from an Apple Snow Leopard server 
to a new Apple Mavericks server. Dovecot --version is not working , but 
I believe the old server is running dovecot 1.1.2 and can confirm the 
new one is running 2.2.x.



I have tried taring and moving folders, but have not been able to get 
the transfered messages and folders to show up in user accounts (new 
messages show up fine). I have attempted to recreate index files, but 
that has not worked either. The last attempt I made to migrate was to 
use dsync, but it does not exist on the old server and I do not see a 
way to install it.



What method would work best to migrate or move files and folders from 
the old server and get them to show up for clients on using the new server?



--
Raymond Norton
LCTN
952.955.7766

Sent from My Desktop



[Dovecot] inotify max_user instances

2014-01-06 Thread Charles Marcus

Hello,

Timo, last year when you remoted into our server and performed the 
migration from courier-imap, we ran into this issue, and you solved it 
by doing:


echo 1024  /proc/sys/fs/inotify/max_user_instances

Then you said you were going to solve this permanently by changing the 
init script...


Here is what you said (this is from the skype chat):

[2012-06-04 10:40:43 AM] timosirainen: probably put to dovecot init 
script or something


I guess I could manually modify my init script, but I'm clueless as to 
where.how.


The current (gentoo) init script is:


#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or 
later
# $Header: 
/var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r4,v 1.1 
2012/12/01 10:40:49 eras Exp $


extra_started_commands=reload

depend() {
need localmount
before postfix
after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd 
slapd

use logger net
}

checkconfig() {
DOVECOT_INSTANCE=${SVCNAME##*.}
if [ -n ${DOVECOT_INSTANCE} -a ${SVCNAME} != dovecot ]; then
DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf
else
DOVECOT_CONF=/etc/dovecot/dovecot.conf
fi
if [ ! -e ${DOVECOT_CONF} ]; then
eerror You will need an ${DOVECOT_CONF} first
return 1
fi
if [ -x /usr/sbin/dovecot ]; then
DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} 
-a | grep '^base_dir = ' | sed 's/^base_dir = //')

else
eerror dovecot not executable
return 1
fi
DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/var/run/dovecot}
DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid
}

start() {
checkconfig || return 1
ebegin Starting ${SVCNAME}
start-stop-daemon --start --exec /usr/sbin/dovecot \
--pidfile ${DOVECOT_PIDFILE} -- -c ${DOVECOT_CONF}
eend $?
}

stop() {
checkconfig || return 1
ebegin Stopping ${SVCNAME}
start-stop-daemon --stop --exec /usr/sbin/dovecot \
--pidfile ${DOVECOT_PIDFILE}
eend $?
}

reload() {
checkconfig || return 1
ebegin Reloading ${SVCNAME} configs and restarting auth/login 
processes

start-stop-daemon --signal HUP --exec /usr/sbin/dovecot \
--pidfile ${DOVECOT_PIDFILE}
eend $?
}


Suggestions?

--

Best regards,

Charles




Re: [Dovecot] inotify max_user instances

2014-01-06 Thread Charles Marcus

On 2014-01-06 1:33 PM, Charles Marcus cmar...@media-brokers.com wrote:
Timo, last year when you remoted into our server and performed the 
migration from courier-imap, we ran into this issue, and you solved it 
by doing:


echo 1024  /proc/sys/fs/inotify/max_user_instances

Then you said you were going to solve this permanently by changing the 
init script...


Here is what you said (this is from the skype chat):

[2012-06-04 10:40:43 AM] timosirainen: probably put to dovecot init 
script or something


Actually found this a but later during the chat, which looks much 
better. I guess when you said 'it looks up a good value from doveconf', 
that one could specify the value in the config file and it would use 
whatever was there?


Anyway, here is what you said (to refresh your memory):


timosirainen: i can do that. btw i've today been building RPMs for dovecot
timosirainen: and in that init.d script i'm also adding this
timosirainen: i'll make it somewhat automatic though
timosirainen:  if [ $INOTIFY_INSTANCES !=  ]; then
   if [ $INOTIFY_INSTANCES = auto ]; then
 INOTIFY_INSTANCES=`$doveadm config -h service/imap/process_limit`
 if [ $INOTIFY_INSTANCES = 0 ]; then
   INOTIFY_INSTANCES=`$doveadm config -h default_process_limit`
 fi
 increase_proc_value /proc/sys/fs/inotify/max_user_watches 
$INOTIFY_INSTANCES
 increase_proc_value /proc/sys/fs/inotify/max_user_instances 
$INOTIFY_INSTANCES

   fi
 fi
timosirainen: it looks up a good value from doveconf




[Dovecot] Dovecot deliver into folder question

2014-01-06 Thread Marc Perkel
If I want to user dovecot deliver into a folder that is not at the root 
level - how do I do that? How do I specify a folder in a folder?




[Dovecot] Question re: filesystem permissions

2014-01-06 Thread Charles Marcus

Hi all,

I want to make sure the filesystems are correct/optimal and secure as 
possible.


This is a virtual hosting setup only (no system users), and dovecot is 
currently running in high performance mode (I'm thinking I want to 
change that too, so wondering if that would affect the permissions)...


/var/vmail (and everything under it) is owned by vmail:vmail.

Current permissions are:

/var/vmail  755

/var/vmail/example1.com  777

/var/vmail/example2.com  777

/var/vmail/example1.com/user1  755  (all other user home dirs are the same)

/var/vmail/example1.com/user1/Maildir  700 (all other user Maildirs and 
all subdirs are the same)


All files are 600, with the exception of the 
dovecot-uidvalidity.blahblah files, which are 444


So... is this right? Anything need to be changed?

Thanks,

--

Best regards,

Charles




Re: [Dovecot] Dovecot deliver into folder question

2014-01-06 Thread Charles Marcus

On 2014-01-06 3:20 PM, Marc Perkel m...@perkel.com wrote:
If I want to user dovecot deliver into a folder that is not at the 
root level - how do I do that? How do I specify a folder in a folder? 


For *all* messages? Or for certain messages?

Kind of an incomplete question.

--

Best regards,

Charles




Re: [Dovecot] Dovecot deliver into folder question

2014-01-06 Thread Marc Perkel


On 1/6/2014 12:27 PM, Charles Marcus wrote:

On 2014-01-06 3:20 PM, Marc Perkel m...@perkel.com wrote:
If I want to user dovecot deliver into a folder that is not at the 
root level - how do I do that? How do I specify a folder in a folder? 


For *all* messages? Or for certain messages?

Kind of an incomplete question.



Certain messages. I'm talking about the deliver utility - the -m option.

Usage: dovecot-lda [-c config file] [-a address] [-d username] [-p 
path]

   [-f envelope sender] [-m mailbox] [-e] [-k]

when specifying the mailbox - how do you specify a subfolder? Do you use 
a / separator?




Re: [Dovecot] Dovecot deliver into folder question

2014-01-06 Thread Charles Marcus

On 2014-01-06 3:33 PM, Marc Perkel m...@perkel.com wrote:


On 1/6/2014 12:27 PM, Charles Marcus wrote:

On 2014-01-06 3:20 PM, Marc Perkel m...@perkel.com wrote:
If I want to user dovecot deliver into a folder that is not at the 
root level - how do I do that? How do I specify a folder in a folder? 


For *all* messages? Or for certain messages?

Kind of an incomplete question.



Certain messages. I'm talking about the deliver utility - the -m option.

Usage: dovecot-lda [-c config file] [-a address] [-d username] 
[-p path]

   [-f envelope sender] [-m mailbox] [-e] [-k]

when specifying the mailbox - how do you specify a subfolder? Do you 
use a / separator?


Yeesh, no...

Use sieve and plus-addressing.

http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples

--

Best regards,

Charles




[Dovecot] using OR in doveadm search query

2014-01-06 Thread W. de Hoog

Hi,

I am trying to create an OR query but no success yet:

$ doveadm search mailbox shared/* OR SUBJECT a SUBJECT b
doveadm(neil): Fatal: Use parenthesis when mixing ANDs and ORs

$ doveadm search mailbox shared/* OR \(SUBJECT a\) \(SUBJECT b\)
doveadm(neil): Fatal: Unknown argument (SUBJECT

$ doveadm search mailbox shared/* \(OR \(SUBJECT a\) \(SUBJECT b\)\)
doveadm(neil): Fatal: Unknown argument (OR

What is the correct syntax for such a query?

--
Willem-Jan de Hoog


Re: [Dovecot] using OR in doveadm search query

2014-01-06 Thread Michael M Slusarz

Quoting W. de Hoog wdeh...@exalondelft.nl:


Hi,

I am trying to create an OR query but no success yet:

$ doveadm search mailbox shared/* OR SUBJECT a SUBJECT b
doveadm(neil): Fatal: Use parenthesis when mixing ANDs and ORs

$ doveadm search mailbox shared/* OR \(SUBJECT a\) \(SUBJECT b\)
doveadm(neil): Fatal: Unknown argument (SUBJECT


This works for me (at least with tcsh):

$ doveadm search mailbox shared/* OR (SUBJECT a) (SUBJECT b)

michael



[Dovecot] Dovecot LMTP does not pass envelope recipient +detail to sieve

2014-01-06 Thread Greg Rivers
I found this[1] thread that describes the same problem with dovecot-LDA, 
but the solution (add X-Original-To: header) has no effect with LMTP.


My sendmail LMTP configuration:
FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/dovecot/lmtp')

Sendmail's address test indicates that sendmail is providing user+detail 
to LMTP (see below).  Except for this problem, dovecot, LMTP, and sieve 
are all working perfectly.  Is there something I'm missing, or is this a 
bug?


[1] http://dovecot.org/pipermail/dovecot/2012-July/136987.htm


Script started on Sun Jan  5 23:25:04 2014
$ doveconf -n
# 2.2.9: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 9.2-STABLE amd64 
auth_verbose = yes

mail_debug = yes
mail_location = mdbox:~/.mdbox
mail_plugins =  quota
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 ihave editheader 
vnd.dovecot.debug vnd.dovecot.duplicate imapflags notify vnd.dovecot.pipe 
vnd.dovecot.filter vnd.dovecot.execute
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Sent Messages {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = 
}

passdb {
  args = %s
  driver = pam
}
plugin {
  quota = fs:%n@%{hostname} %h %Us %{pid}:
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_execute_bin_dir = ~/sieve/sieve-execute
  sieve_execute_socket_dir = sieve-execute
  sieve_extensions = +notify +imapflags +editheader +vnd.dovecot.duplicate 
+vnd.dovecot.pipe +vnd.dovecot.filter +vnd.dovecot.execute +vnd.dovecot.debug
  sieve_filter_bin_dir = ~/sieve/sieve-filter
  sieve_filter_socket_dir = sieve-filter
  sieve_global_dir = /usr/local/etc/dovecot/sieve
  sieve_max_actions = 0
  sieve_max_redirects = 16
  sieve_max_script_size = 0
  sieve_pipe_bin_dir = ~/sieve/sieve-pipe
  sieve_pipe_socket_dir = sieve-pipe
  sieve_plugins = sieve_extprograms
}
postmaster_address = postmas...@tharned.org
protocols = imap lmtp sieve
quota_full_tempfail = yes
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = dovecot
  }
  user = dovecot
}
ssl_cert = /etc/ssl/certs/dovecot.pem
ssl_key = /etc/ssl/private/dovecot.pem
userdb {
  driver = passwd
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins =  quota sieve
}
protocol lda {
  mail_plugins =  quota sieve
}
protocol imap {
  mail_max_userip_connections = 100
  mail_plugins =  quota imap_quota
}

$ sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter ruleset address

=M

mailer 0 (prog): P=/bin/sh S=EnvFromL/HdrFromL R=EnvToL/HdrToL M=0 U=-1:-1 
F=9DFMeloqsu L=0 E=\n T=X-Unix/X-Unix/X-Unix r=100 A=sh -c $u
mailer 1 (*file*): P=[FILE] S=parse/parse R=parse/parse M=0 U=-1:-1 
F=9DEFMPloqsu L=0 E=\n T=X-Unix/X-Unix/X-Unix r=100 A=FILE $u
mailer 2 (*include*): P=/dev/null S=parse/parse R=parse/parse M=0 U=-1:-1 F=su L=0 E=\n 
T=undefined/undefined/undefined r=100 A=INCLUDE $u
mailer 3 (local): P=[IPC] S=EnvFromSMTP/HdrFromL R=EnvToL/HdrToL M=0 U=-1:-1 
F=/59:@ADFMPSXlmnqswz| L=0 E=\r\n T=DNS/RFC822/SMTP r=100 A=FILE 
/var/run/dovecot/lmtp
mailer 4 (smtp): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 
U=-1:-1 F=DFMXmu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
mailer 5 (esmtp): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 
U=-1:-1 F=DFMXamu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
mailer 6 (smtp8): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 
U=-1:-1 F=8DFMXmu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
mailer 7 (dsmtp): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 
U=-1:-1 F=%DFMXamu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
mailer 8 (relay): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=MasqSMTP/MasqSMTP M=0 
U=-1:-1 F=8DFMXamu L=2040 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h

/try local gcr+det...@tharned.org

Trying envelope recipient address gcr+det...@tharned.org for mailer local
canonify   input: gcr + DeTaIl @ tharned . org
Canonify2  input: gcr + DeTaIl  @ tharned . org 
Canonify2returns: gcr + DeTaIl  @ tharned . org . 
canonify returns: gcr + DeTaIl  @ tharned . org . 
2  input: gcr + DeTaIl  @ tharned . org . 
2returns: gcr + DeTaIl  @ tharned . org . 
EnvToL input: gcr + DeTaIl  @ tharned . org . 
EnvToL   returns: gcr + DeTaIl
final  input: gcr + DeTaIl
finalreturns: gcr + DeTaIl
Rcode = 0, addr = gcr+DeTaIl

^D


$ cat .dovecot.sieve
require [envelope, subaddress, variables, vnd.dovecot.debug];
if envelope :matches to * { set to 

[Dovecot] Dovecot quoting problem?

2014-01-06 Thread Gerhard Wiesinger

Hello Timo,

I think the following commit makes problems:
http://hg.dovecot.org/dovecot-2.2/rev/68a8b650578e

# Doesn't work
A01 LIST  ~/Mail/Gesendet
# OK with quoted mailbox
A02 LIST  ~/Mail/Gesendet

Details:
imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID 
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS 
THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN 
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH 
ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY 
MOVE] Logged in as user

A01 LIST  ~/Mail/Gesendet
A01 BAD Error in IMAP command LIST: literal8 not allowed here
A02 LIST  ~/Mail/Gesendet
* LIST (\NoInferiors \UnMarked) / ~/Mail/Gesendet
A02 OK List completed.
A03 STATUS ~/Mail/Gesendet (MESSAGES UNSEEN RECENT)
A03 BAD Error in IMAP command STATUS: literal8 not allowed here
A04 STATUS ~/Mail/Gesendet (MESSAGES UNSEEN RECENT)
* STATUS ~/Mail/Gesendet (MESSAGES 0 RECENT 0 UNSEEN 0)
A04 OK Status completed.

Is this a bug of dovecot or a bug of the IMAP client (roundcube mail)?

Thank you

Ciao,
Gerhard



[Dovecot] [SIEVE] Locking Errors with vnd.dovecot.duplicate Extension

2014-01-06 Thread Daniel Parthey

Hi,

we are running a 4 host setup which each hosts a director+mailbox which is 
mounted
via NFSv4 from a DRBD cluster.

* Dovecot upstream release 2.1.16
* Doveadm batch subcommand fix - 
http://hg.dovecot.org/dovecot-2.1/raw-rev/850b5d8bbcc9
* Pigeonhole release 0.3.4

Now we would like to remove duplicate Mails using the vnd.dovecot.duplicate 
extension
using a SIEVE script like this:

require [vnd.dovecot.duplicate, fileinto, mailbox, regex, vacation, 
variables];

if duplicate {
fileinto :create Trash;
}

But as soon as we start delivering duplicate mails, we're sometimes getting 
locking
errors from the mailbox (which is responsible for the user) according to the 
director:

Dec 27 16:36:30 10.129.3.213 dovecot: lmtp(27975, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:33 10.129.3.213 dovecot: lmtp(27987, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:35 10.129.3.213 dovecot: lmtp(27994, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:36 10.129.3.213 dovecot: lmtp(28011, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:36 10.129.3.213 dovecot: lmtp(28013, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:38 10.129.3.213 dovecot: lmtp(28017, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:39 10.129.3.213 dovecot: lmtp(28025, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:42 10.129.3.213 dovecot: lmtp(28037, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs
Dec 27 16:36:43 10.129.3.213 dovecot: lmtp(27973, user...@example.org): Error: Creating lock file for 
/mail/dovecot/example.org/user001/.dovecot.lda-dupes timed out in 20 secs


Configs and Error log is attached.

Any idea how to mitigate these locking issues?

Regards
Daniel
# 2.1.16: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-56-generic x86_64 Ubuntu 12.04.3 LTS 
auth_cache_negative_ttl = 0
auth_cache_size = 10 M
auth_cache_ttl = 1 mins
auth_verbose = yes
auth_verbose_passwords = sha1
deliver_log_format = mailbox: deliver: msgid=%m from=%f: %$
dict {
  quota = mysql:/etc/dovecot/conf.d/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = secret
instance_name = dovecot-mailbox
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_greeting = Mailbox
login_log_format = mailbox: login: %$: %s
login_trusted_networks = 10.129.3.0/24
mail_debug = yes
mail_fsync = always
mail_gid = vmail
mail_home = /mail/dovecot/%d/%n
mail_location = mdbox:~/mail
mail_log_prefix = mailbox: mail: %s(%u): %{session}: 
mail_plugins = quota stats
mail_privileged_group = vmail
mail_uid = vmail
managesieve_implementation_string = Sieve
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 ihave 
vnd.dovecot.duplicate
mdbox_rotate_interval = 1 weeks
mdbox_rotate_size = 50 M
mmap_disable = yes
namespace {
  inbox = yes
  location = 
  mailbox Archives {
special_use = \Archive
  }
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = 
  separator = /
  type = private
}
passdb {
  args = /etc/dovecot/conf.d/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = dict:User quota::proxy::quota
  quota_rule = *:storage=10G
  quota_rule2 = Trash:storage=+100M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +vnd.dovecot.duplicate
  stats_refresh = 30 secs
  stats_track_cmds = yes
}
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener auth-userdb {
group = dovecot
user = dovecot
  }
}
service dict {
  unix_listener dict {
group = vmail
mode = 0660
  }
}
service doveadm {
  inet_listener doveadm-server {
port = 19000
  }
}
service imap-login {
  inet_listener imap {
port = 19143
  }
}
service imap-postlogin {
  executable = script-login /usr/local/bin/dovecot-postlogin
  user = $default_internal_user
}
service imap {
  executable = imap imap-postlogin
}
service lmtp {
  inet_listener lmtp-without-quota {
address = *
port = 19025
  }
  

[Dovecot] virtual mailboxes folder structure

2014-01-06 Thread Marco Cusano
Hi, I am trying to find a way to list my virtual mailboxes hiding the namespace 
prefix into my imap client.

Fore example now my “All” mailbox is listed under virtual/ as:

Inbox
Sent
Drafts
Spam
Trash
virtual
All

I would like to list as this:

Inbox
Sent
Drafts
Spam
Trash  
All

This is my 10-mail.conf: http://pastebin.com/DumEbbmy
and this is my 15-mailboxes.conf: http://pastebin.com/QFzWGzyC

I thought that the list = children paramenter would do but it did not.

Thank you

Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread ldaamandy
ok  thanks for your answer . I'will  be using Dovecot 2.x  myself  soon  after 
i get 1.x .
 
thanks   
   
amandy
 
 Date: Mon, 6 Jan 2014 05:05:15 -0800
 From: list_dove...@bluerosetech.com
 To: amandy_...@outlook.com; dovecot@dovecot.org
 Subject: Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w
 
 On 1/6/2014 2:02 AM, ldaamandy wrote:
  thank you Darren Pilgrim  and  what should I do to not let
  dovecot -w start?  i  want to keep one dovecot-auth . Is it set in
  the dovecot.conf ?
 
 You can't make it not start--it's necessary for certain authentication 
 databases.  Even if you could, why are you worrying about this?  If you 
 really don't want it, you'll need to switch to a different 
 authentication database.  I'm pretty sure PostgreSQL doesn't require an 
 authentication worker, but can't verify that as I no longer use Dovecot 1.x.
  

Re: [Dovecot] acl, shared folders

2014-01-06 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 6 Jan 2014, Infoomatic wrote:


After spending quite some time to figure out how users can share folders I now 
hope someone of you could help me out. I am quite sure its just a stupid 
mistake/misunderstanding ... I am using Ubuntu 12.04 LTS with the shipped 
dovecot 2.0.19


I'm using v2.2, but it should apply to v2.0 as well.


This seems fine.


ACLs look fine.

However, there is nothing listed in the account of user2. I think the 
mistake is in the namespace configuration of location or prefix

 
mail_home = /var/lib/vmail/home/%u
mail_location = mdbox:/var/lib/vmail/mail/%u



namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = mdbox:/var/lib/vmail/mail/%%n/mailboxes/shared/%n
  prefix = shared/%%n/
  separator = /
  subscriptions = no
  type = shared
}


First note, that you use %u in the default location, but %n in the shared 
namespace definition. IMHO, you must stick to one, as only one is correct 
in your setup.


Second, reread http://wiki2.dovecot.org/SharedMailboxes/Shared
Say user1 is sharing to user2, then your second namespace tells Dovecot to 
look for user1's mailboxes in 
/var/lib/vmail/mail/user1/mailboxes/shared/user2, you most likely need to 
replicate the default mail_location there with %'s doubled. Then you must 
decide, where each user's INDEX and CONTROL information is stored, or if 
flags are shared as well.


- From your current definition I would say, you need:

location = mdbox:/var/lib/vmail/mail/%%u:INDEX=~/shared/%%u

First part points to the directory of the user sharing the mailboxes, 
INDEX= places user-specific files of the user accessing shared mailboxes 
into his/her own hierarchie.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUsuqhV3r2wJMiz2NAQK+lAgAu46HGrSz3h8JGGM7hJpLHsuDkypHD8Xr
ThbicfUC5CVOBk1xs3FkXM1gDecb8820f6JrDSe24slg6Lf7WWPdZdGEzc4f0Dnr
btL4+ePrRrI+UyuRXtmm7hZu6JaUwJj+h8AOmpzg+swJokHWUGkY73vcFri+O2bt
Dfd+HbZqmuCjJ+aauLKclEEGCQ45JHKC/LavxnBFPix48PoCEOrfaVrC3R9mFjGD
7CJbzgi2T2xJIdYzl+pvFRgEu8aT6AtgQo+4BE51PaLz/8XUE4NX5usV/kcLgu9O
iz5VQcgKXFFoJ1HD37kcwNVkkAx67yDTVdDyLgvH9j0CYBpvnxDM4g==
=WVlL
-END PGP SIGNATURE-

Re: [Dovecot] Dovecot deliver into folder question

2014-01-06 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 6 Jan 2014, Marc Perkel wrote:


On 1/6/2014 12:27 PM, Charles Marcus wrote:

On 2014-01-06 3:20 PM, Marc Perkel m...@perkel.com wrote:
If I want to user dovecot deliver into a folder that is not at the root 
level - how do I do that? How do I specify a folder in a folder? 


For *all* messages? Or for certain messages?

Kind of an incomplete question.



Certain messages. I'm talking about the deliver utility - the -m option.

Usage: dovecot-lda [-c config file] [-a address] [-d username] [-p 
path]

  [-f envelope sender] [-m mailbox] [-e] [-k]

when specifying the mailbox - how do you specify a subfolder? Do you use a / 
separator?


You have to experiment a bit. As far as I remember, there had been bug 
reports in some versions that maybe a mixture of / and the configured 
separator must be used, e.g.


prefix = shared.
separator = .

try:
- -m shared.sub1.sub2.sub3
- -m shared.sub1/sub2/sub3
- -m shared/sub1/sub2/sub3

When I used Dovecot LDA, the first variant worked.

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUsusll3r2wJMiz2NAQKBqwf+KzT/ZtFMH77EowG9q+dz6eTFnoenDa4C
pGIaDhLBVNJlqYZnbQP61HJHnKxXqIvx/zcnPaVbdsXDL+yjAVsY91/fENieQDwv
JmG7hvcUeRQxAdi5oqwLm50chvpbNMMmovXcaM55D12/qDwrmS/I/miJEKN8fNNp
FMG+aePFcrWDq+zWzXG8wAkMGQOCvLSGy4U470aRWUpaxEBpDd0D2Vh4aG2ovdGE
tXaBTA6DiLOdh4ZgoocfFeCiQKbXR0gHkDGo8di9geKmBwad2rZg9rrIUm5JRW0v
C++BhpW3o/w0vhZmKNK9U6C1T38m99e5XWGm6GXtAWir5dZIyJdD3w==
=2m49
-END PGP SIGNATURE-