[Dovecot] Per-user Sieve script location question

Selcuk Yazar selcuk.yazar at gmail.com
Wed May 21 08:58:50 UTC 2014


Hi

my dovecot conf is

 doveconf -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-131.6.1.el6.x86_64 x86_64 Red Hat Enterprise Linux
Server release 6.0 (Santiago) ext4
auth_debug = yes
auth_debug_passwords = yes
auth_default_realm = hostname.domainname.edu.tr
auth_mechanisms = plain login
auth_verbose = yes
debug_log_path = /var/log/dovecot.debug
disable_plaintext_auth = no
first_valid_uid = 97
info_log_path = /var/log/dovecot.info
last_valid_uid = 5000
mail_debug = yes
mail_gid = 1001
mail_location = mbox:/home/vmail/domains/%d/%u
mail_uid = 1001
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-ldap.conf.ext
  driver = ldap
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener auth-userdb {
    mode = 0600
    user = vmail
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  inet_listener sieve_deprecated {
    port = 2000
  }
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  args = /etc/dovecot/conf.d/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lda {
  debug_log_path = /var/log/dovecot-lda-errors.log
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
  mail_plugins = " sieve"
}


you're right we have mail_location ,

should i add mail_home value
mail_home =  /home/vmail/domains/%d/%u

to 10-mail.conf file ?

thanks.




On Wed, May 21, 2014 at 11:43 AM, Steffen Kaiser <
skdovecot at smail.inf.fh-brs.de> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Wed, 21 May 2014, Selcuk Yazar wrote:
>
>  our users stored OpenLdap and users home folder like below:
>>
>
> without seeing your current doveconf -n output and the ldap configuration
> file, I would guess that your users have no home directory:
> http://wiki2.dovecot.org/VirtualUsers/Home
>
>
>
>> /home/vmail/domains/domainname.edu.tr/username/...
>>
>> now when i used default settings for dovecot sieve
>>
>> sieve = ~/.dovecot.sieve
>> sieve_dir = ~/sieve
>>
>> sieve script write and work globaly and stored, /home/vmail/domains/sieve
>>
>> i looked up Dovecot docs for per user but i don't understand clearly
>>
>> can i replace sieve parameters like
>>
>> sieve = /home/vmail/domains/..................edu.tr/%n/.dovecot.sieve
>> sieve_dir = /home/vmail/domains/.........................edu.tr/%n/.sieve
>>
>> for per user scirpt.
>>
>
> Read the link above about why not store Sieve files below an user's mail
> location.
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBU3xnMHz1H7kL/d9rAQIiRAgAmZYxZo1fn/5Iw0WHB2v3FpF1snq1VH4t
> tvyhS/ISj3snMB7dbViUkjvYhzaIsWQKP9eXM3YtOmwpSdlwozqwq/5PvckQgAkU
> cI8UIyXCErsdsvp7/aod/n+Qd+tnjf91b3PY9R7xYd6Qjf/8H7lSmX/xBMBltu7N
> AVqwgHTivR9dwsDyTkIqQIfULWvwcWf5eXbKzP1YxamYzF+lMk6ippK7RebMrspe
> CTg1BLCCLiHMTdSQrOrnfmNjgS/rAZctOEyc3/M98U8HxmEhT6ZFpTjQ4i0T0/17
> +9DQovMUi2/bZ1IhgBpS9u+YkPeuu+y4vAhMqCAT+fcEW1+MgfK2Lg==
> =Sc/m
> -----END PGP SIGNATURE-----
>



-- 
Selçuk YAZAR
http://www.selcukyazar.blogspot.com


More information about the dovecot mailing list