Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stéphane Wartel

Hi,

I get the same error !
Any idea to fix it ?

Regards,
Stephane

Le 17/05/2011 18:03, Wojciech Giel a écrit :

Hi,
I'm configuring postfix with dovecot and roundcube. I'm using flat 
files as passwdb userdb.


Everything works fine except sieve vacation reply. when i send mail 
from ex. user dennis to tytus I get discarding vacation response for 
message implicitly delivered to.


What Am i doing wrong?
thanks




sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script 
/home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled 
script /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: 
msgid=20110517155641.ga3...@badger.example.com: discarding vacation 
response for message implicitly delivered to tytus@badger


/etc/postfix/main.cf
...
mailbox_command = /usr/lib/dovecot/deliver -n -m ${EXTENSION}
...


# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1
log_path: /var/log/dovecot.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps managesieve
listen(default): *
listen(imap): *
listen(managesieve): 127.0.0.1:2000
ssl_ca_file: /etc/postfix/ssl/cacert.pem
ssl_cert_file: /etc/postfix/ssl/servercrt.pem
ssl_key_file: /etc/postfix/ssl/serverkey.pem
ssl_cipher_list: ALL:!LOW:!SSLv2
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_location: maildir:~/Maildir:INDEX=~/Maildir/indexes
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota autocreate
mail_plugins(imap): quota imap_quota autocreate
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
imap_client_workarounds(default): tb-extra-mailbox-sep netscape-eoh 
delay-newmail outlook-idle
imap_client_workarounds(imap): tb-extra-mailbox-sep netscape-eoh 
delay-newmail outlook-idle

imap_client_workarounds(managesieve):
lda:
  postmaster_address: postmaster
  mail_plugins: sieve quota autocreate
  quota_full_tempfail: yes
  deliver_log_format: msgid=%m: %$
  rejection_reason: Your message to %t was automatically rejected:%n%r
  log_path: /var/log/sieve.log
auth default:
  mechanisms: plain login cram-md5
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: pam
  passdb:
driver: passwd-file
args: scheme=cram-md5 /etc/dovecot/passwd
  userdb:
driver: passwd-file
args: /etc/dovecot/passwd
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/dovecot-auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve
  autocreate: INBOX
  autocreate2: Sent
  autocreate3: Trash
  autocreate4: Drafts
  autocreate5: Junk
  autosubscribe: INBOX
  autosubscribe2: Sent
  autosubscribe3: Trash
  autosubscribe4: Drafts
  autosubscribe5: Junk
  quota: maildir:User quota
  quota_rule: Trash:storage=10M
  quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95






Re: [Dovecot] web interface for user creation/vacation

2011-08-02 Thread Claudio Prono


Il 02/08/2011 1.55, Chris Cappuccio ha scritto:
 What are the best web interfaces for user/domain management, perhaps one that 
 also allows individual users to edit vacation msgs?

 Right now I'm using a postfixadmin based mysql control panel.  Curious what 
 is the better stuff out there that people are using with dovecot/sieve these 
 days?

 Are there any decent front-ends to setup/manage per-user sieve filters?


 !DSPAM:1,4e373cec96921343316261!

Horde with Ingo can manage Vacation and filter with sieve, with a little
configuration (i am using it).


-- 

Claudio Prono OPST
System Developer   
  Gsm: +39-349-54.33.258
@PSS Srl  Tel: +39-011-32.72.100
Via San Bernardino, 17Fax: +39-011-32.46.497
10141 Torino - ITALY  http://atpss.net/disclaimer

PGP Key - http://keys.atpss.net/c_prono.asc






Re: [Dovecot] web interface for user creation/vacation

2011-08-02 Thread Antoine Nguyen
You can take a look at modoboa (http://modoboa.org). It supports per user
sieve filters and vacation message.
Le 2 août 2011 01:55, Chris Cappuccio ch...@nmedia.net a écrit :
 What are the best web interfaces for user/domain management, perhaps one
that also allows individual users to edit vacation msgs?

 Right now I'm using a postfixadmin based mysql control panel. Curious what
is the better stuff out there that people are using with dovecot/sieve these
days?

 Are there any decent front-ends to setup/manage per-user sieve filters?



Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stephan Bosch

On 8/2/2011 12:21 PM, Stéphane Wartel wrote:

Hi,

I get the same error !
Any idea to fix it ?



This situation occurs when the message's To,CC,etc. headers do not 
contain the recipient address (from the envelope). This can be caused by 
a mailing list (to which it must not respond), but also by some 
translation in your mail setup. The former case is intended behavior, 
the latter is problematic. If your final recipient address does not 
match what is in the message's headers due to some translation step in 
the mail setup (e.g. aliasing), you have a problem.


You can add the address listed in the headers to the :addresses argument 
of the vacation command. That is not always a good solution however. 
This problem is a bit old already, but some new solutions have emerged 
for Dovecot v2.


So, what exactly is your situation?

Regards,

Stephan.


Le 17/05/2011 18:03, Wojciech Giel a écrit :

Hi,
I'm configuring postfix with dovecot and roundcube. I'm using flat 
files as passwdb userdb.


Everything works fine except sieve vacation reply. when i send mail 
from ex. user dennis to tytus I get discarding vacation response for 
message implicitly delivered to.


What Am i doing wrong?
thanks

sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script 
/home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled 
script /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: 
msgid=20110517155641.ga3...@badger.example.com: discarding vacation 
response for message implicitly delivered to tytus@badger






Re: [Dovecot] sievec - manual compile of global sieve scripts?

2011-08-02 Thread Thomas Harold

On 8/1/2011 8:43 PM, Stephan Bosch wrote:

On 8/1/2011 10:11 PM, Thomas Harold wrote:

How do you compile global scripts using the sievec command without
making the script directory owned (and group writable) by the vmail user?

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

# cd /etc/dovecot/sieve/before/
# (edit some script like spam.sieve that runs for everyone)
# /usr/local/bin/sievec spam.sieve spam.svbin

sievec(root): Error: sieve: binary save: failed to create temporary
file: open(spam.svbin.hostname.26921.) in directory
/etc/dovecot/sieve/before failed: Permission denied (euid=5000(vmail)
egid=5000(vmail) missing +w perm: /etc/dovecot/sieve/before, euid is
not dir owner)


Why are you executing sievec as vmail in the first place? You should be
able to run it as root or any other user you use to manage global sieve
scripts.



Sorry, I may not have been clear before, I am trying to run sievec as 
root.  So the error is confusing to me because it looks like sievec is 
trying to drop privs and do the compile as the vmail user.  I haven't 
done anything special to the sievec file (like making it run as vmail or 
always run as root, SELinux is in permissive mode until I gather up 
enough entries in the audit log to make an audit2allow run useful).


# ls -la /usr/local/bin
-rwxr-xr-x  1 root root 123989 Aug  1 12:25 sievec
-rwxr-xr-x  1 root root 119415 Aug  1 12:25 sieve-dump
-rwxr-xr-x  1 root root 133592 Aug  1 12:25 sieve-test

As a workaround, I may temporarily alter my Makefile to set the 
directory writable by the vmail group, compile the scripts, then set the 
directory read-only again.  The files end up owned as vmail:vmail when I 
do that, even though I execute the sievec command as root.


# /usr/local/bin/sievec sortspam.sieve sortspam.svbin
-rw-rw-r-- 1 root  root   477 Aug  1 15:33 sortspam.sieve
-rw-rw-r-- 1 vmail vmail  321 Aug  2 08:26 sortspam.svbin

...

My current Makefile.

# cat Makefile
# http://wiki2.dovecot.org/Pigeonhole/Sieve/Usage#scriptcompile
SIEVEC=/usr/local/bin/sievec

SRCS=$(wildcard *.sieve)
OBJS=$(SRCS:.sieve=.svbin)

all: $(OBJS)

%.svbin : %.sieve
$(SIEVEC) $? $@



Re: [Dovecot] sieve vacation reply

2011-08-02 Thread swartel

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there 
anything we can do ?


Thanks,
Stephane



Le 02/08/2011 12:59, Stephan Bosch a écrit :

On 8/2/2011 12:21 PM, Stéphane Wartel wrote:

Hi,

I get the same error !
Any idea to fix it ?



This situation occurs when the message's To,CC,etc. headers do not 
contain the recipient address (from the envelope). This can be caused 
by a mailing list (to which it must not respond), but also by some 
translation in your mail setup. The former case is intended behavior, 
the latter is problematic. If your final recipient address does not 
match what is in the message's headers due to some translation step in 
the mail setup (e.g. aliasing), you have a problem.


You can add the address listed in the headers to the :addresses 
argument of the vacation command. That is not always a good solution 
however. This problem is a bit old already, but some new solutions 
have emerged for Dovecot v2.


So, what exactly is your situation?

Regards,

Stephan.


Le 17/05/2011 18:03, Wojciech Giel a écrit :

Hi,
I'm configuring postfix with dovecot and roundcube. I'm using flat 
files as passwdb userdb.


Everything works fine except sieve vacation reply. when i send mail 
from ex. user dennis to tytus I get discarding vacation response 
for message implicitly delivered to.


What Am i doing wrong?
thanks

sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script 
/home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled 
script /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: 
msgid=20110517155641.ga3...@badger.example.com: discarding 
vacation response for message implicitly delivered to tytus@badger








Re: [Dovecot] sievec - manual compile of global sieve scripts?

2011-08-02 Thread Stephan Bosch

On 8/2/2011 2:32 PM, Thomas Harold wrote:

On 8/1/2011 8:43 PM, Stephan Bosch wrote:

On 8/1/2011 10:11 PM, Thomas Harold wrote:

How do you compile global scripts using the sievec command without
making the script directory owned (and group writable) by the vmail 
user?


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

# cd /etc/dovecot/sieve/before/
# (edit some script like spam.sieve that runs for everyone)
# /usr/local/bin/sievec spam.sieve spam.svbin

sievec(root): Error: sieve: binary save: failed to create temporary
file: open(spam.svbin.hostname.26921.) in directory
/etc/dovecot/sieve/before failed: Permission denied (euid=5000(vmail)
egid=5000(vmail) missing +w perm: /etc/dovecot/sieve/before, euid is
not dir owner)


Why are you executing sievec as vmail in the first place? You should be
able to run it as root or any other user you use to manage global sieve
scripts.



Sorry, I may not have been clear before, I am trying to run sievec as 
root.  So the error is confusing to me because it looks like sievec is 
trying to drop privs and do the compile as the vmail user.  I haven't 
done anything special to the sievec file (like making it run as vmail 
or always run as root, SELinux is in permissive mode until I gather up 
enough entries in the audit log to make an audit2allow run useful).


# ls -la /usr/local/bin
-rwxr-xr-x  1 root root 123989 Aug  1 12:25 sievec
-rwxr-xr-x  1 root root 119415 Aug  1 12:25 sieve-dump
-rwxr-xr-x  1 root root 133592 Aug  1 12:25 sieve-test


What versions of Dovecot (obviously v2.0+) and Pigeonhole are you using 
and what is your config (show dovecot -n output) ?


I suspect there may be a bug.

Regards,

Stephan.





Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stephan Bosch

On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote:

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there 
anything we can do ?




If you can access the original recipient from your MTA, you can use both 
-a and -r (if needed) arguments of dovecot-lda as outlined on this wiki 
page:


http://wiki2.dovecot.org/LDA

This will make the vacation command perform the checks against the 
original recipient.


Please let me know whether this is an adequate solution for you.


Regards,

Stephan.


Re: [Dovecot] Pigeon Sieve, redirect action and SPF

2011-08-02 Thread Stephan Bosch

On 7/29/2011 8:53 AM, Nikita Koshikov wrote:

On Thu, 28 Jul 2011 20:43:45 +0200
Stephan Bosch wrote:

Would the header name need to be configurable, or is 
X-Sieve-Redirected-From good for all purposes? Regards, Stephan. 

I saw this

X-ResentFrom:
X-SRS-Rewrite:
X-Forwarded-(To/For):

So the name is not significant. If it's not so difficult to code - than 
configurable header of course is better. But it's only a matter of taste.


Adding more settings is best to be avoided. I've added the header:

http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/81b37c0055c3
http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/efad75f779de (d'oh)


One thing to note for implementing:
It will be much more simple for setting up srs, if sieve will export to 
environment some variables indicating need for rewrite. And than we will be 
able to write wrapper for sendmail_path that will selectively choose what 
should we do:
For example, I don't want srs to happen if user is forwarding for local domain mailbox, 
or if action that trigger mail sending is - out of office reply.
So, wrapper will analyze need srs or no, and after all invoke srs binary for 
signing, or just call pure mta.


I am not sure Sieve has access to enough information to make such an 
assessment. And I don't think adding SPF/SRS-specific code to Sieve is a 
good idea. It would also not be very straight-forward since the 
low-level mail sending code is part of Dovecot itself.


Regards,

Stephan.


Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stephan Bosch

On 8/2/2011 4:08 PM, Stephan Bosch wrote:

On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote:

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there 
anything we can do ?




If you can access the original recipient from your MTA, you can use 
both -a and -r (if needed) arguments of dovecot-lda as outlined on 
this wiki page:


http://wiki2.dovecot.org/LDA

This will make the vacation command perform the checks against the 
original recipient.


Please let me know whether this is an adequate solution for you.


Hmm, apparently this was not possible yet, so I've added it now:

http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/81f7acac82f2

This also adds support to disable this check completely (as explained in 
doc/vacation.txt). I recommend using that only when all other methods fail.


I've still got some more TODO items about this issue, particularly about 
adding support to check some external aliases database. I am still not 
sure how I should approach that though.


Regards,

Stephan.


Re: [Dovecot] sievec - manual compile of global sieve scripts?

2011-08-02 Thread Patrick Domack

Mine has always behaved like this.

It looks up the root user in the auth database from the dovecot  
config, and attemps to change to that user, and in this type of case  
that would be vmail.


Then it attempts to check the mail_home and kind of fails, unless you  
give vmail permission to that path that would be created using the  
root user.



Quoting Thomas Harold thomas-li...@nybeta.com:


On 8/2/2011 8:45 AM, Stephan Bosch wrote:


What versions of Dovecot (obviously v2.0+) and Pigeonhole are you using
and what is your config (show dovecot -n output) ?

I suspect there may be a bug.



dovecot-2.0-pigeonhole-0.2.3 - downloaded and compiled from source  
this week.  The dovecot package itself comes from ATRPMs and is  
2.0.13.


Name   : dovecot
Arch   : x86_64
Epoch  : 1
Version: 2.0.13
Release: 1_129.el5
Size   : 5.1 M
Repo   : installed
Summary: Dovecot Secure imap server
URL: http://www.dovecot.org/
License: MIT

Name   : dovecot-devel
Arch   : x86_64
Epoch  : 1
Version: 2.0.13
Release: 1_129.el5
Size   : 667 k
Repo   : installed
Summary: Libraries and headers for Dovecot
URL: http://www.dovecot.org/
License: MIT

Output of dovecot -n

# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-274.el5 x86_64 Red Hat Enterprise Linux Server  
release 5.7 (Tikanga)

auth_verbose_passwords = sha1
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = 127.0.0.1, 1.2.3.4
mail_gid = vmail
mail_home = /var/vmail/%d/%n
mail_location = maildir:~/Maildir
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

mbox_write_locks = fcntl
passdb {
  args = /etc/dovecot/conf.d/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_after = /etc/dovecot/sieve/after/
  sieve_before = /etc/dovecot/sieve/before/
  sieve_dir = ~/sieve
  sieve_global_dir = /etc/dovecot/sieve/globalinclude/
}
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = vmail
user = vmail
  }
}
service imap-login {
  process_min_avail = 5
}
service pop3-login {
  inet_listener pop3 {
address = 1.2.3.4
  }
  inet_listener pop3s {
address = 1.2.3.4
  }
}
ssl = required
ssl_cert = /etc/pki/tls/private/certs/example_com.crt
ssl_key = /etc/pki/tls/private/example_com.key
protocol lda {
  log_path = /var/log/dovecot/dovecot-lda
  mail_plugins =  sieve
}






Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stéphane Wartel

Hi Stephan,

Yep, after some tests you 're right, it's not possible.
So, I use :addresses in sieve script and will try -a or -r arguments in 
LDA command from postfix with the next release.


Bye,
Stephane

Le 02/08/2011 18:02, Stephan Bosch a écrit :

On 8/2/2011 4:08 PM, Stephan Bosch wrote:

On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote:

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is 
there anything we can do ?




If you can access the original recipient from your MTA, you can use 
both -a and -r (if needed) arguments of dovecot-lda as outlined on 
this wiki page:


http://wiki2.dovecot.org/LDA

This will make the vacation command perform the checks against the 
original recipient.


Please let me know whether this is an adequate solution for you.


Hmm, apparently this was not possible yet, so I've added it now:

http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/81f7acac82f2

This also adds support to disable this check completely (as explained 
in doc/vacation.txt). I recommend using that only when all other 
methods fail.


I've still got some more TODO items about this issue, particularly 
about adding support to check some external aliases database. I am 
still not sure how I should approach that though.


Regards,

Stephan.




[Dovecot] $IP not getting set?

2011-08-02 Thread A.L.
Using dovecot 2.0.13.  I went to implement relay-ctrl per directions
on the Wiki, and failed.  After running it down, as best as I can
determine, the problem is that the $IP variable is not getting set (and
thus not re-set in the script wrapper).   I plunked a set  debug
into the script, and the only env var's that are set are as listed below
(slightly sanitized for public display).   Anyone have any ideas?  I
have tried both the Wiki-way, and this way:
http://dovecot.org/list/dovecot/2009-December/045139.html  with
identical results.

CLIENT_LIMIT='1000'
CONFIG_FILE='/my_path/config'
DOVECOT_CHILD_PROCESS='1'
DOVECOT_PRESERVE_ENVS='TZ'
DOVECOT_VERSION='2.0.13'
GENERATION='7690'
IFS='
'
LOG_SERVICE='1'
OPTIND='1'
PATH='my_path'
PPID='1'
PS1='# '
PS2=' '
PS4='+ '
PWD='my_pwd'
SOCKET_COUNT='1'
SSL_SOCKET_COUNT='0'



[Dovecot] shared mailboxes

2011-08-02 Thread Vasil Mikhalenya
Hi all,

I've read all documentation that I could find, but I can not
understand 2 simple things

1. How to create a public mailbox - with per user seen flag. In my
configuration this flag is shared
2. How to share one user mailbox with other users and set up acl. In
Cyrus it was very easy( cyradm sam mailbox user1 lrs or  sam mailbox
user2 all ). What way there is to do this in dovecot.

It was no problem with shared mailboxes in cyrus, but I need maildir support.


Thank you.

# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.2 ext3
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = plain
first_valid_uid = 8
last_valid_uid = 8
mail_debug = yes
mail_location = mdbox:/var/mail/%1n/%n
mail_plugins = acl
mail_privileged_group = mail
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
mdbox_preallocate_space = yes
namespace {
  hidden = no
  inbox = yes
  list = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = mdbox:/var/mail/%%1n/%%n
  prefix = shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace {
  location = maildir:/var/mail/public
  prefix = public/
  separator = /
  subscriptions = no
  type = public
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
passdb {
  driver = pam
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols =  imap sieve pop3
service auth {
  unix_listener auth-client {
group = mail
mode = 0660
user = Debian-exim
  }
  unix_listener auth-userdb {
group = mail
mode = 0600
user = mail
  }
  user = $default_internal_user
}
service imap-login {
  process_min_avail = 6
  service_count = 0
}
ssl_ca = /etc/ssl/private/CA.crt
ssl_cert = /etc/ssl/private/w.crt
ssl_key = /etc/ssl/private/w.key
syslog_facility = local0
userdb {
  args = uid=mail gid=mail home=/var/mail/%1n/%n allow_all_users=yes
  driver = static
}
userdb {
  args = uid=mail gid=mail home=/var/mail/%1n/%n dovecot
  driver = passwd
}
protocol lda {
  mail_plugins = acl sieve
}
protocol imap {
  mail_plugins = acl acl imap_acl
}



-- 
Best regards,
Vasil Mikhalenya


Re: [Dovecot] Using Dovecot with ZFS

2011-08-02 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 07/29/11 11:30, roberto giuliani wrote:
 Hi all,
 
 I'm testing Dovecot version 1.2.17 on FreeBSD 8.2-RELEASE using ZFS
 as filesystem. Searching on google I've ridden about some problem
 concerning indexes and mmap.
 
 I wold like to know if this problem persists on the latest releases.

I use Dovecot 2.0.12 on FreeBSD 8.2-RELEASE and didn't see any index
corruption in log so far.  Admittedly the setup is relatively new, and
have been running for only 63 days now, but my understanding is that I
shouldn't be that lucky.  Also, FreeNAS uses both mmap and sendfile and
we didn't see data corruption either nor see any reports about that.

Note that my instance is running a heavily modified version (with some
driver updates, ZFSv28, etc) though, the latest 8-STABLE have most of
the ZFS changes I had in my own tree but I don't think these changes are
related to data corruption.

If, however, you could reproduce a data corruption on your installation
on a recent unmodified FreeBSD 8.2-RELEASE system, please do let me know
or post your complain on freebsd-sta...@freebsd.org, as that would be a
pretty serious problem and we will get it fixed as soon as possible.

Cheers,
- -- 
Xin LI delp...@delphij.nethttps://www.delphij.net/
FreeBSD - The Power to Serve!   Live free or die
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (FreeBSD)

iQEcBAEBCAAGBQJOOI6ZAAoJEATO+BI/yjfBjoYH/1ZTWC3a9kGvUSOvfcSEzL+0
77jHolvQVmWQTCQy8+bKCae3qvD2PNPl3eSz5L1gydKJf8YfM6HdF++0V81yCptd
qqIKXXlWyWT5g7u0jF47MQOizYIr4rQXXLToG+DuB6HdHUYP9XG1nnwJne0NkvrR
oeHgEVMV4mWIHW1jQfgmkeGrI2SOJVRyDxtc0+miP+pzrPleDXjAg8zETaypNfPA
+JKhzLrucctp35D3dM/cTenVH0D8eP8md5CllFOvCYR9RPQJ4xajfca5yxpIDtUG
mX373vBjToqGxfpaYa+iDXzP+morTOrif3JUBmuV8JjBeBibnDsovEnvHFhO4fY=
=OEZi
-END PGP SIGNATURE-